伪元素:让HTML更干净;把不重要的放到微元素里面;伪元素本质就是模拟一个元素;
比如放一些箭头,小图标,小装饰
#div2{
width:120px;height:120px;
border:5px #273fie solid;
top:90px;
}
#div::before{
content:'9999'
}
<div id="div1">A</div>
<div id="div2">A<span>66666</span></div>
var div1 = document.getElementById("div1");
var css = document.defaultView.getComputedStyle(div1,null);
docuemnt.write(css["stop"]);