css - 在 jquery mobile 中显示平面按钮

标签 css jquery-mobile

我想在 jqm 中有一个平面样式的按钮。我尝试过如下,但底部仍然有一条细线。

.flat-btn,.flat-btn > .ui-btn-inner {
  border-top:0 !important;
  border-bottom:0 !important;
  border:0 !important;
  background:transparent !important;
  -webkit-border-radius:0 !important;
  border-radius:0 !important;
  text-shadow:0 !important
}
<a data-role="button" href="" class="flat-btn">text</a>

最佳答案

向按钮添加 data-shadow="false" 属性以消除阴影。

Demo

<a data-role="button" href="#" class="flat-btn" data-shadow="false">text</a>

关于css - 在 jquery mobile 中显示平面按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19030420/

相关文章:

html - 通过导航显示背景

css - 相对定位和可点击 anchor

jquery - 我需要在 DIV 中插入 append jquery 的结果,只是 css 不能正常工作

javascript - 获取列表项 id 内的标签 id

javascript - 混合使用 JQuery Mobile 和 JQuery UI

javascript - 尝试动态分割字符串不断出现错误?

css - 是否有相当于 float : down 的 CSS

html - 如何在wordpress中显示博客文章?

javascript - 来自 XML 文件问题的分页 jQuery 结果集

javascript - 使用 jquery mobile 克隆一个页面