<! 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 to make bread crumbs, 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; . 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> Crumb One <em></em><i></i></li> <li class= "Current" > breadcrumbs two <em></em><i></i></li> <li> bread crumbs Two <em></em><i></i></li> </ul> </div> </body> |