зеркало из https://github.com/mozilla/pjs.git
27 строки
386 B
HTML
27 строки
386 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style type="text/css">
|
|
|
|
#tablecell {
|
|
display: table-cell;
|
|
}
|
|
.border { border: 1px solid blue; }
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<span class="border">
|
|
<span id="tablecell">x</span>
|
|
</span>
|
|
|
|
<script>
|
|
|
|
document.body.offsetWidth;
|
|
document.getElementById("tablecell").removeAttribute("id");
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|