雪碧圖中第一、二幅長寬:
width:180px;
height:42px;
背景位置大約是:
background-position:0 -35px;
width:180px;
height:42px;
背景位置大約是:
background-position:0 -35px;
*{
margin:0;
padding:0;
}
ul{list-style: none}
li{
width:100px;
display: block;
height:30px;
line-height: 30px;
overflow: hidden;
border-bottom:1px solid #dedede;
margin:0 auto;
}
margin:0;
padding:0;
}
ul{list-style: none}
li{
width:100px;
display: block;
height:30px;
line-height: 30px;
overflow: hidden;
border-bottom:1px solid #dedede;
margin:0 auto;
}
li h3{
font-size: 14px;
font-weight: 400
}
.cat{
width: 150px;
text-align:center;
background:#f8f8f8;
border: 1px solid #bbb;
}
font-size: 14px;
font-weight: 400
}
.cat{
width: 150px;
text-align:center;
background:#f8f8f8;
border: 1px solid #bbb;
}
若把style樣式單獨一個文件,圖片運行的結果就會不穩定,有時正常,有時都是小紅裙,哪位高手知道解決的方法,再次謝過
2015-08-04