將圖片作為文章欄目的背景
找到以下這段代碼:
/*=======欄目=======*/
div#category{
……
在它的最后面加一句話:
background-image: url(圖片網(wǎng)址);
比如:
/*=======欄目=======*/
div#category{
margin-left:12px;
margin-right:12px;
color: #636563;
height: 30px;
padding-top:12px;
margin: 5px;
background-image: url(http://bimzcy.blogchina.com/inc/xiaonvhai.jpg);
}
(友情提示:根據(jù)筆者的經(jīng)驗,圖片的寬度以<=540象素合適,如果超過這個寬度的話可以用ACDSEE來裁剪、來重調(diào)圖片大小,很方便的)