【发布时间】:2013-09-16 21:19:16
【问题描述】:
我在 Rails 应用程序中使用了基础,现在我想为普通按钮设置样式:
<a href="#" class="button">Default Button</a>
就像它被点击时一样!问题是我在基础代码中找不到任何类,例如“活动”或“悬停”。
【问题讨论】:
标签: css sass zurb-foundation
我在 Rails 应用程序中使用了基础,现在我想为普通按钮设置样式:
<a href="#" class="button">Default Button</a>
就像它被点击时一样!问题是我在基础代码中找不到任何类,例如“活动”或“悬停”。
【问题讨论】:
标签: css sass zurb-foundation
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 状态。
【讨论】: