.nav li::before{content: "";position:absolute;top:17px;height: 15px;width: 1px;left:0px;background-image: linear-gradient(to top,#999,#000,#999);}
/*删除第一项和最后一项导航分隔线*/
.nav li:first-child::before{background-image: none;}
/*删除第一项和最后一项导航分隔线*/
.nav li:first-child::before{background-image: none;}
2014-12-22
/*使用伪元素制作导航列表项分隔线*/
.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
我看到大家都在任务七里面使用了这一句:
.bg:not(:target)
我之前写的是.bg:not:target 是失败的,请告诉我这里面的区别。
.bg:not(:target)
我之前写的是.bg:not:target 是失败的,请告诉我这里面的区别。
2014-12-19