【问题标题】:Foundation, How to set an button like onclick?Foundation,如何设置像onclick这样的按钮?
【发布时间】:2013-09-16 21:19:16
【问题描述】:

我在 Rails 应用程序中使用了基础,现在我想为普通按钮设置样式:

  <a href="#" class="button">Default Button</a>

就像它被点击时一样!问题是我在基础代码中找不到任何类,例如“活动”或“悬停”。

【问题讨论】:

    标签: css sass zurb-foundation


    【解决方案1】:

    foundation.css 文件中应该有 :hover 的样式 - 大约在 1300 行标记的一半左右。

      button:hover, button:focus, .button:hover, .button:focus {
        background-color: #1968e7; }
      button:hover, button:focus, .button:hover, .button:focus {
        color: white; }
    

    如果您愿意,也可以在自己的样式表中添加 :active 选择器,因为基础样式中没有 :active 状态。

    【讨论】:

      猜你喜欢
      • 2014-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-24
      • 1970-01-01
      • 2022-01-05
      相关资源
      最近更新 更多