目标伪类选择器
:target
一般与锚点结合使用,当点击时候,target就会触发,显示出样式
body{
background-color: black;
}
.box{
width: 750px;
margin: 50px auto;
padding: 5px;
background-color: gray;
}
a{
display: block;
text-decoration: none;
width: 100%;
height: 50px;
background: linear-gradient(#cbcbcb, #8f8f8f);
font: 22px/50px "微软雅黑";
border-radius:8px;
position: relative;
color: black;
padding-left: 10px;
box-sizing: border-box;
}
i{
position: absolute;
border: 8px solid;
border-color: #fff transparent transparent transparent;
top: 22px;
right: 5px;
}
p{
height: 0;
overflow:hidden;
font-size: 8px;
}
.box div:target a{
color: wheat;
background: linear-gradient(#67aefc, #2488dd);
}
.box div:target i{
border: transparent #fff transparent transparent;
position: absolute;
top: 5px;
right: 5px;
}
.box div:target p{
height: 150px;
color:black;
overflow-y: scroll;
background-color: gray;
}
文本阴影:
text-shadow:水平 垂直 模糊 颜色 ,水平垂直 模糊 颜色.....
边框阴影
box-shadow:水平位置 垂直位置 模糊距离 阴影大小 颜色 inset/默认外边
水平、垂直可以是负值
浏览器前缀
-webkit- 谷歌浏览器 、国内浏览器
-o- Opera浏览器
-moz- 火狐浏览器
-ms- IE浏览器