我有一个标准的链接,我想在一个页脚中像我自己的样式:
<div data-role="page"> <div id="footer" data-role="footer" data-position="fixed"> <a href="somelink.html>some link</a> </div>
我想要< a>标签保持原样,不能转移到这个:
<a href="somelink.html" data-theme="a" class="ui-btn ui-btn-corner-all ui-shadow ui-btn-up-a"> <span class="ui-btn-inner ui-btn-corner-all"> <span class="ui-btn-text">some link</span> </span> </a>
有没有某种属性我可以添加到链接来停止JQM生成这个主题代码?我需要类似于data-role =“none”类的内容,解释为here(但不适用于表单元素)
解决方法@H_403_12@
正如你所说,将anchor-tag =“none”属性添加到锚标签中.
> live example w / data-role =“none”:http://jsfiddle.net/CrBdX/2/
> Live Example wo / data-role =“none”:http://jsfiddle.net/CrBdX/1/
HTML:
<div data-role="page">
<div id="footer" data-role="footer" data-position="fixed">
<a href="somelink.html" data-role="none">some link</a>
</div>
</div>
> live example w / data-role =“none”:http://jsfiddle.net/CrBdX/2/
> Live Example wo / data-role =“none”:http://jsfiddle.net/CrBdX/1/
HTML:
<div data-role="page"> <div id="footer" data-role="footer" data-position="fixed"> <a href="somelink.html" data-role="none">some link</a> </div> </div>