html - 标题按钮是方形的而不是圆形的

标签 html css jquery-mobile jquery-mobile-button

我原以为页眉中的按钮是圆形的,但结果却是方形的。查看屏幕截图中的主页按钮:

enter image description here

我的 CSS:

#main {
   text-overflow: ellipsis;
   overflow: visible;
   white-space: normal;
}
a {
    text-decoration: none;
}
.ui-header .ui-title {
    overflow: visible !important; 
}
.ui-header {
    min-height: 40px;
}

声明标题的 html 片段:

  <div data-role="page" id="settings">
       <div data-role="header" data-position="fixed">
          <a href="#home"  data-icon="home" data-iconpos="notext">Home</a>
          <h1>App</h1>
       </div>
       ...

我期待看到类似于这些的圆形按钮:

enter image description here

感谢任何指点......

最佳答案

对于圆 Angular ,我希望是这样的:

#home {
border-radius: 5px;
}

不幸的是,这也因 CSS 的实现而异,所以如果这不起作用,请提供有关您使用的工具版本的更多信息。

关于html - 标题按钮是方形的而不是圆形的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28506666/

相关文章:

css - 阻止 jQuery Mobile 样式覆盖我的样式?

html - flex fill + overflow MS-Edge 问题

javascript - 在网页上使用 CMYK

html - HTML 输入字段的标准名称

javascript - 如何在滚动时更新 URL 哈希值(带目录)

html - 水平导航栏问题

javascript - 在 React 的按键上应用按钮 'Active' 样式

javascript - 如何调试 PhoneGap 应用程序中的内存使用量攀升?

单页模板中的 JQuery Mobile Ajax 导航

jquery-ui - 如何确定 jQuery toggle() 的当前状态