我想添加不同的顏色在跨度裏面的href鏈接。但由於某些原因,他們沒有反映。請告訴我我在這裏做了什麼錯誤?不同的顏色在跨度裏面href鏈接
這裏是Fiddle
HTML:
<div class="map_view_buttons">
<a href="draw"><span></span>Draw From Scratch</a>
<a href="add"><span></span>Add Area</a>
<a href="edit"><span></span>Edit Area</a>
CSS:
.map_view_buttons{
float:left;
}
.map_view_buttons a{
display:inline-block;
padding:3px 10px;
border-radius:4px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
border:1px solid #a8a8a8;
font-weight:bold;
color:#000;
font-size:12px;
}
.map_view_buttons a span{
display:inline-block;
width:18px; height:18px;
vertical-align:middle;
margin-right:5px;
border:1px solid #ccc;
}
.map_view_buttons a.draw span{background:red;}
.map_view_buttons a.draw span{background:orange;}
.map_view_buttons a.draw span{background:green;}