我使用jQuery Mobile构建移动网站,并且我有一个列表视图,显示着陆页上每个菜单的图标。jQuery Mobile在图像背景周围显示边框/轮廓
我显示经由与背景位置背景图像的图标上IMG标记(使用子画面图标):
.ui-li-icon {top:10px;left:25px;}
.iconhome {background: transparent url(../images/icons.png) no-repeat;margin:7px 15px 0 0;width:21px;height:22px;}
#i-travel {background-position:-4px -3px;}
而对于列表视图:
<ul data-theme="c" data-role="listview">
<li><a href="step1.html"><img class="iconhome ui-li-icon" id="i-travel"></img>Travel and Fly<br><span class="small gray">Buy Travel Insurance</span></a></li>
</ul>
问题:它有一个轮廓我无法摆脱它虽然我添加了边框:0/border:none/outline:none ..令我惊讶的是,当我改变并用border-radius查看时,它已经改变了,但没有改变为正常的边框CSS属性。
如何删除我的背景图像周围的边框/轮廓?
*补充:我意识到它只发生在背景图片属性img标签。对于div标记(使用背景图像)或img标记(没有背景图像),它不显示任何边框/轮廓。
我做到了,但它仍然显示边框。 – 2012-01-17 02:30:20