我目前在使用 jQuery-Mobile 背后的 css 时遇到问题。我在 html 中有这样定义的按钮:
<div data-role="footer" data-position="fixed" data-tap-toggle="false" data-theme="a">
<a href="#" class="previous" data-role="cus-button" data-shadow="false"></a>
<a href="#" class="play playpause" data-role="cus-button" data-shadow="false"></a>
<a href="#" class="stop" data-role="cus-button" data-shadow="false"></a>
<a href="#" class="forward" data-role="cus-button" data-shadow="false"></a>
</div>
编辑:还尝试了 data-iconshadow,但没有效果。
通过使用以下 css,我能够删除我的个人背景图像周围的正方形:
background-size: 100% !important;
background-repeat: no-repeat;
background-color: transparent;
display: inline-block !important;
height: 62%;
width: 10%;
margin-top: 2% !important;
border: 0;
border-radius: 0 !important;
outline: none !important;
text-decoration: none;
这会删除图标周围的方块,但是每次单击按钮时,我仍然会在背景中看到一个框,该框被蓝色阴影突出显示:
奇怪的是,一个类似的按钮,不在站点的页脚区域并且具有相同的 css,没有提到的阴影。
它们的定义如下:
<div id="controls-left">
<a href="#" id="repeat" class="repeat" data-role="cus-button"></a>
<a href="#" id="repeat-all" class="repeat-all" data-role="cus-button"></a>
<a href="#" id="random" class="random" data-role="cus-button"></a>
</div>
这是他们的CSS:
#controls-left a[data-role="cus-button"]{
position: relative;
background-size: 95% !important;
background-repeat: no-repeat;
background-color: transparent;
display: block !important;
height: 40px;
width: 40px;
left: 0;
right: 0;
margin: auto;
border: 0px !important;
border-radius: 0 !important;
outline: none !important;
text-decoration: none;
}
是否有任何 jquery-mobile 特定的 css 可以删除该框?