зеркало из https://github.com/mozilla/pjs.git
19 строки
324 B
HTML
19 строки
324 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
div#x::first-letter { color: blue; float: left; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="x">Need at least two letters here</div>
|
|
<script>
|
|
document.body.offsetWidth;
|
|
var div = document.getElementById("x");
|
|
div.id = "y";
|
|
div.firstChild.data = "Text";
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|