css - Ionic 1.2.4 和按钮栏边框透明

标签 css ionic-framework

在 Ionic 1.2.4 中,我添加了一个按钮栏,但该按钮没有任何边框(相反,在官方文档中它们有边框)。

我有:

<div class="button-bar bar-stable">
   <a class="button">First</a>
   <a class="button">Second</a>
   <a class="button">Third</a>
</div>

我在 CSS 中看到了这一点:

.bar-stable .button {
   border-color: transparent;
   background-color: #f8f8f8;
   color: #444; }

为什么 Ionic 团队做出了

border-color: transparent ?

在 Ionic Creator 中我看到以下 css 代码:

.bar-stable .button {
  border-color: #b2b2b2;
  background-color: #f8f8f8;
  color: #444; }

但它使用 css 版本 1.1.1

最佳答案

不幸的是,在 ionic 1.2.0 中,按钮的边框被删除了,似乎没有通用的解决方案。

看这里Defaulting all button borders to transparent #4861

我目前正在解决同样的问题。

关于css - Ionic 1.2.4 和按钮栏边框透明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34857388/

相关文章:

javascript - JQuery Mobile ui-overlay 隐藏元素

javascript - 焦点 : How to stop it prompting IE security box?

javascript - 如何制作动画 svg 饼图

reactjs - Uncaught ReferenceError : process is not defined (yes I tried all the solutions internet says should solve this)

javascript - 使用 angular JS 和 ionic 从 select 中获取选定的选项

javascript - 自动化和简化跨浏览器支持

html - Bootstrap 4 卡图像不对齐

ionic-framework - Ionic 中的动态环境变量 - 找不到模块

javascript - 如何将文本字段中的填充值保存到 Ionic 6/Capacitor 中的 SQLite 数据库?

android - 获取 ionic 存储中的所有存储 key