0
當我在<li>
中使用圖像時,內容被壓下。它假設與圖像對齊。 http://jsbin.com/epayo5列表圖像將內容壓低
.services-info ul li {
background: #fff;
margin: 39px 0;
width: 266px;
padding: 15px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
.services-info ul li:nth-of-type(1) {
list-style-image: url(http://dl.dropbox.com/u/31659128/fb-icon.png);
}
.services-info ul li:nth-of-type(2) {
list-style-image: url(http://dl.dropbox.com/u/31659128/twitter-icon.png);
}
.services-info ul li:nth-of-type(3) {
list-style-image: url(http://dl.dropbox.com/u/31659128/yt-icon.png);
}
我不能改變背景顏色,但。 – nowayyy 2011-06-16 00:00:15
當然可以。只需添加一個顏色標記,如'background:blue url(...)no-repeat;'或添加一個'background-color:blue;'聲明。 – melhosseiny 2011-06-16 00:02:50
在代碼中,我有背景:#fff;在ul裏。我正在黑暗的背景下工作。當我在li上使用背景時,它不起作用。 – nowayyy 2011-06-16 00:39:49