最终效果图:
代码:
1 2 3 4 5 6 *{ margin:0; padding:0;} 7 .box{ width:350px; height:500px; background:#999; padding-top:60px; padding-left:60px;} 8 .box li{ float:left; list-style:none} 9 .box li a{ border:5px solid #aaa; display:block; width:100px; height:60px; text-decoration:none; margin:0 0 -5px -5px; position:relative; z-index:0; text-align:center; line-height:60px; color:#fff; font-size:30px;}10 .box li a:hover{ border:5px solid #333; z-index:1;}11 12 13 14 15 1 16 2 17 3 18 4 19 5 20 6 21 7 22 8 23 9 24 10 25 11 26 12 27 13 28 14 29 15 30 31 32
不妨copy下来实践一下哦-.-
查看更多关于css技巧之如何实现ulli边框重合_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did104870