日期:2014-05-16  浏览次数:20589 次

怎样用css画出ˇ?
可参考淘宝网
需兼容IE6以上浏览器

------解决方案--------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Gb2312" />
<title>无标题文档</title>
<style>
span.left{
position: relative;
left:0px;
}
span.top{
position: relative;
left:50px;
}
span.right{
position: relative;
left:100px;
}
span.bottom{
position: relative;
left:150px;
}
span.left em, span.left i{
position: absolute;
left: 0;
border-color: rgba(255,255,255,0);
border-style: solid;
border-width: 13px 13px 15px 0px;
}
span.left em{
border-right-color: #6c6c6c;
}
span.left i{
border-right-color: #fefefe;left: 5px;
}

span.right em, span.right i{
position: absolute;
left: 0;
border-color: rgba(255,255,255,0);
border-style: solid;
border-width: 13px 0px 15px 13px ;
}
span.right em{
border-left-color: #6c6c6c;left: 5px;
}
span.right i{
border-left-color: #fefefe;
}
span.top em, span.top i{
position: absolute;
left: 0;
border-color: rgba(255,255,255,0);
border-style: solid;
border-width: 0px 13px 13px;
}
span.top em{
border-bottom-color: #6c6c6c;
}
span.top i{
border-bottom-color: #fefefe;top: 5px;
}
span.bottom em, span.bottom i{
position: absolute;
left: 0;
border-color: rgba(255,255,255,0);
border-style: solid;
border-width: 13px 13px 0px;
}
span.bottom em{
border-top-color: #6c6c6c;
top: 5px;
}
span.bottom i{
border-top-color: #fefefe;
}
</style>
<body>
<span class = "left">
<em></em><i></i>
</span>
<span class = "top">
<em></em><i></i>
</span>
<span class = "right">
<em></em><i></i>
</span>
<span class = "bottom">
<em></em><i></i>
</span>
</body>
</html>


之前也试过。。。。看看呗