.nav{border-radius: 5px;box-shadow:5px 5px 0 #cc1725;}
.nav li:after{content: "";width: 2px; height: 15px; background: linear-gradient(to bottom,#dd2926,#a82724,#dd2926);
display: block; top: 19px; right: -3px; position: absolute;}
.nav li:last-child:after{background: none;}
.nav li:after{content: "";width: 2px; height: 15px; background: linear-gradient(to bottom,#dd2926,#a82724,#dd2926);
display: block; top: 19px; right: -3px; position: absolute;}
.nav li:last-child:after{background: none;}
2018-08-21
word-wrap:break-word和word-break:break-all的区别详见:http://www.cnblogs.com/2050/archive/2012/08/10/2632256.html
2018-08-13
<style>
div:empty {
border: 1px solid green;
}
</style>
div:empty {
border: 1px solid green;
}
</style>
2018-08-11
有关border-image的详细解释
http://www.zhangxinxu.com/wordpress/2010/01/css3-border-image/
http://www.tuicool.com/articles/EJZnUnm
http://www.zhangxinxu.com/wordpress/2010/01/css3-border-image/
http://www.tuicool.com/articles/EJZnUnm
2018-08-10
这三种不同写法可作参考
.wrapper > div:nth-of-type(2n+1),
.wrapper > p:nth-of-type(2n){
background: orange;
}
/*或者*/
.wrapper > div:nth-first-child(4n+1),
.wrapper > p:nth-of-type(2n){
background: orange;
}
/*或者*/
.wrapper > div:nth-last-child(2n+1),
.wrapper > p:nth-of-type(even){
background: orange;
}
.wrapper > div:nth-of-type(2n+1),
.wrapper > p:nth-of-type(2n){
background: orange;
}
/*或者*/
.wrapper > div:nth-first-child(4n+1),
.wrapper > p:nth-of-type(2n){
background: orange;
}
/*或者*/
.wrapper > div:nth-last-child(2n+1),
.wrapper > p:nth-of-type(even){
background: orange;
}
2018-08-08
/*使用伪元素制作导航列表项分隔线*/
.nav li:after{content:"";position:absolute;right:-2px;height:15px;width:1px;
top:18px;background-image:linear-
gradient(rgba(255,255,255,0.1),rgba(000,000,000,0.3),rgba(255,255,255,0.1));
}
/*删除第一项和最后一项导航分隔线*/
.nav li:last-child:after{content:"";background-image:none;}
.nav li:after{content:"";position:absolute;right:-2px;height:15px;width:1px;
top:18px;background-image:linear-
gradient(rgba(255,255,255,0.1),rgba(000,000,000,0.3),rgba(255,255,255,0.1));
}
/*删除第一项和最后一项导航分隔线*/
.nav li:last-child:after{content:"";background-image:none;}
2018-08-08
h2,p:nth-child(2n+1){
-webkit-column-span:all;
-moz-column-span:all;
-o-column-span:all;
-ms-column-span:all;
column-span:all;
}
-webkit-column-span:all;
-moz-column-span:all;
-o-column-span:all;
-ms-column-span:all;
column-span:all;
}
2018-08-07
真是,要实战的话有付费的啊,免费的讲的已经不错了,难道以后自己做网页还要别人告诉你吗?拜托,学人家的就是学生,说这种话真的是······呵呵了。
2018-07-13
这里的h2和p:nth-child(2n)才是并列关系,也就是说是对h2进行跨越所有的列,而不是对h2:nth-child(2n)
2018-07-13
.wrapper div:hover
.wrapper:hover div的区别在于鼠标点击div之外,wrapper之内的区域时,会不会发生放缩的变化,这也就是会闪烁的原因。前者当鼠标放在该区域时,会发生闪烁的效果;后者则不会产生什么变化。
.wrapper:hover div的区别在于鼠标点击div之外,wrapper之内的区域时,会不会发生放缩的变化,这也就是会闪烁的原因。前者当鼠标放在该区域时,会发生闪烁的效果;后者则不会产生什么变化。
2018-07-13
这里的主要思想就是通过target伪类去获取相应的id,并在CSS中进行样式设定,和直接应用id进行样式设定的区别在于这里要加上链接,而且链接里的href里的内容是在id里内容的基础上添加一个#
2018-07-12