<!-- 购物车图标编程 -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>jd-car</title>
<style type="text/css">
#main{
150px;
border: 1px #ddd solid;
background: #f1f1f1;
font-size: 12px;
color:gray;
text-indent: 3.8em;
line-height: 40px;
/*sprite img*/
background-image: url('http://misc.360buyimg.com/jdf/1.0.0/unit/globalImages/1.0.0/jd2015img.png');
background-repeat: no-repeat;
background-position: 20px -46px;
}
#num{
color:white;
font-weight: bold;
background:red;
text-indent: 0px;
text-align: center;
/*行内块*/
display: inline-block;
16px;
line-height: 16px;
border-radius: 8px 8px 8px 0px;
position: relative;
top: -17px;
}
</style>
</head>
<body>
<div id="main">
<span>我的购物车</span>
<span id="num">0</span>
<span id="spinner">></span>
</div>
</body>
<ml>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>jd-car</title>
<style type="text/css">
#main{
150px;
border: 1px #ddd solid;
background: #f1f1f1;
font-size: 12px;
color:gray;
text-indent: 3.8em;
line-height: 40px;
/*sprite img*/
background-image: url('http://misc.360buyimg.com/jdf/1.0.0/unit/globalImages/1.0.0/jd2015img.png');
background-repeat: no-repeat;
background-position: 20px -46px;
}
#num{
color:white;
font-weight: bold;
background:red;
text-indent: 0px;
text-align: center;
/*行内块*/
display: inline-block;
16px;
line-height: 16px;
border-radius: 8px 8px 8px 0px;
position: relative;
top: -17px;
}
</style>
</head>
<body>
<div id="main">
<span>我的购物车</span>
<span id="num">0</span>
<span id="spinner">></span>
</div>
</body>
<ml>