blob: 29186fac1c4746db5db92f271c94b0b79d3182c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<!DOCTYPE html>
<style>
.x { color: blue; }
</style>
<div class=x>hello</div>
<script>
document.body.offsetWidth;
var x = document.querySelector(".x");
x.className = "";
x.remove();
document.body.offsetWidth;
</script>
|