如果要在文字前加上固定的小圖,可以利用如下的 CSS 技巧:
參考樂多的 CSS 檔
/* 文章標題 */
.title {
FONT-WEIGHT: bold;
FONT-SIZE: 18px;
BORDER-BOTTOM: #C3AC99 1px solid; /* 加底線*/
background-image: url(title4.gif);
background-repeat: no-repeat;
height: 20px;padding-top: 5px;
padding-bottom: 2px;
padding-right: 50px;
padding-left: 25px;}
上面的範例中紅字部份就是相關的程式碼
其中的 tilte4.gif 就是標題小圖。