<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd <meta http-equiv= " Content-type "content=" text/html; charset= "Utf-8″/> <title> pure CSS make breadcrumbs, compatible ie6</title> <style type=" Text/css " *{margin:0;padding:0;list-style-type:none;} a,img{border:0;} body{font:12px/180% Arial, Helvetica, Sans-serif, "new song Body";} /* Demo */ . demo{width:600px;margin:100px auto;background: #f0f0f0;p osition:relative; . Demo Ul{height:32px;overflow:hidden;} . Demo Li{float:left;width:200px;text-align:center;position:relative;z-index:2;font-weight:bold;font-size : 14px;line-height:32px;} . 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;} . Demo Li.current{background: #f60; color: #fff; z-index:1; . demo Li.current i{border-color:transparent transparent transparent #f60;} </style> <body> <div class= "Demo" <ul class= "Clearfix" <li> bread crumbs one <em></em><i></i></li> <li class= "current" > Crumb two <em></em><i></i></li> <li> bread crumbs two <em></em><i></i></li> </ul> </div> </body> |