html是l面包屑效果,CSS制作面包屑 |
您所在的位置:网站首页 › html面包屑导航代码 › html是l面包屑效果,CSS制作面包屑 |
面包屑是Web中常见的一个元件,早前在《CSS3制作Breadcrumbs》和案例《css3面包屑设计》使用CSS3制作了各式各样的面包屑效果,今天@逆天使用上原始的CSS配合一定的标签制作了一款兼容多浏览器的面包屑案例,感兴趣的可以看看: HTML 面包屑一面包屑二面包屑二CSS .demo{ width:600px; margin:100px auto; background:#f0f0f0; height:32px; overflow:hidden; line-height:32px; position:relative; } .demo li{ float:left; width:200px; text-align:center; position:relative; z-index:2; font-weight:bold; font-size:14px; } .demo li em{ position:absolute; right:-24px; top:-8px; width:0; height:0; line-height:0; border-width:24px 0 24px 24px; border-color:transparent transparent transparent #fff; border-style:dashed dashed dashed solid; } .demo li i{ position:absolute; right:-16px; top:0; width:0; height:0; line-height:0; border-width:16px 0 16px 16px; border-color:transparent transparent transparent #f0f0f0; border-style:dashed dashed dashed solid; } .demo li.current{ background:#f60; color:#fff; z-index:1; } .demo li.current i{ border-color:transparent transparent transparent #f60; } |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |