css去掉LI前面的小图标,发现border-bottom:dashed下划线也没有了

html-css014

css去掉LI前面的小图标,发现border-bottom:dashed下划线也没有了,第1张

 .aa ul li

        {

            line-height: 30px

            width: 610px

            min-height: 30px

            border-bottom: dashed 1px #999999

            background:url(libg.gif) 5px 10px no-repeat

            text-align: -webkit-match-parent

        }

去掉display: list-item即可。

写一个div,用绝对定位的方式如:b相对于a的绝对定位,b的位置是相对于a来说的

所以a里一定要加一个position:relative,b里就一定要加一个 position: absolute,top和right是位置的距离如图:

.a

{

  width: 968px

  margin: auto

  position: relative

}

.b

{

  width: 288px

  height: 263px

  background: url(../images/foot_pic.gif) no-repeat center center

  position: absolute

  top: -20px

  right: -33px

}