blob: 7b6ed2cecf89bec57aa4213f6744035fd3f0b71b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<!DOCTYPE html>
<html>
<head>
<style>
body {
width: 5em;
font-family: monospace;
border: 1px solid yellow;
}
body:first-letter {
color: blue;
}
</style>
</head>
<body>
<span><span><span id="sss">Aaa </span></span>Bbbbbbbbbbbbbb<span></span></span>
<script>
document.body.offsetWidth;
sss = document.getElementById("sss");
sss.remove();
</script>
</body>
</html>
|