去除元素最外层的边线
outline: none;
-webkit-animation:
animation:
background:
<style type="text/css">
#example:before {
content: "‘我是before’";
color: red;
}
#example:after {
content: "‘我是after’";
color:blue;
}
</style>
<p id="example">before and after</p>
</div>
:target实现元素的切换
<style type="text/css">
#btn{
80px;
height:40px;
border:0px;
background-color: red;
border-radius:5px;
outline: none;
}
#btn:target{
background-color:blue;
}
</style>
<div id="ttttt">
<a id="aaaaa" href="#btn">1231231231231</a>
<button id="btn">提交</button>
高度控制
rem vh vw vmin vmax ex ch height:calc(100vh-30px);