①当标题前的图标是很长的一绺而不是单独的一个点或者类似图标时,在定义背景图background要定义在
- 里。因为很长,所以放在
- 的外边
- 里
- 里
A
复制代码代码如下:
.test1 { width:100px; height:265px; background:url(http://www.86image.cn/statics/images/show/li.jpg) no-repeat scroll 0 8px; }
.test1 li {padding-left:30px; line-height:27px; list-style-type:none;}
- one
- two
- three
- four
- five
- six
- seven
- eight
- nine
- ten
如图示:
B
复制代码代码如下:
.test1 li { padding-left:15px; background:url("http:www.86image.cn/statics/images/tpl1/images/icon_fk.gif" ) no-repeat scroll 1px 8px; line-height:22px; list-style-type:none;}
- 1
- 2
- 3
如图示:
②当标题前的图标时单独的一个点儿或者方块或者其他类似图标时,定义背景图background要放在 - 里


