blob: 4a92d227ff204ea2c602da3a007227e6edef8ccc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#it { display: inline-table; }
</style>
</head>
<body>
<p>a<span id="it">b</span>d</p>
<script>
document.body.offsetWidth;
document.getElementById("it").appendChild(document.createTextNode("c"));
</script>
</body>
</html>
|