/*使用伪元素制作导航列表项分隔线*/
.nav li:before{ content:"|"; color:#666; position:absolute; left:-1px; }
/*删除第一项和最后一项导航分隔线*/
.nav li:first-child:before{content:"";}
.nav li:before{ content:"|"; color:#666; position:absolute; left:-1px; }
/*删除第一项和最后一项导航分隔线*/
.nav li:first-child:before{content:"";}
2014-12-22
在看了前面两位的基础上想好久才做出来效果。。。
.nav li::before{content: "";position: absolute;top: 17px;height: 15px;width: 1px;left:0px;background-image: linear-gradient(to top,#B0483F,#B0483F);}
.nav li:first-child::before{background-image: none;}
.nav li::before{content: "";position: absolute;top: 17px;height: 15px;width: 1px;left:0px;background-image: linear-gradient(to top,#B0483F,#B0483F);}
.nav li:first-child::before{background-image: none;}
2014-12-20
<style>
div:not([id="footer"]){
background-color:orange;
}
</style>
为啥提示不对呢 ?哪里有问题?
div:not([id="footer"]){
background-color:orange;
}
</style>
为啥提示不对呢 ?哪里有问题?
2014-12-19
text-shadow:x-offset y-offset blur color
x:水平偏移距离
y:垂直偏移距离
blur:模糊距离,不能为负值,注意要加px单位!!!
color:阴影颜色
x:水平偏移距离
y:垂直偏移距离
blur:模糊距离,不能为负值,注意要加px单位!!!
color:阴影颜色
2014-12-19