css - 基础透明台

标签 css zurb-foundation

我正在尝试使用 Foundation 框架创建一个透明表。我在没有框架的情况下实现了这一目标,但似乎我无法使用它。任何建议都很好。

table {
    text-align: center;
}
table thead th{
    text-align: center;
}
tbody tr th{
    font-weight: normal;
}
th{ 
    background-color: rgba(251,169,17,0.5);
}
td{ 
    vertical-align: top;
    height: 10em;
    outline: 3px solid #e3e3e3;
    /*border: 1px solid rgba(251,169,17,.5);*/
    background-color: rgba(0,0,0,0);
}
td:hover{
    background-color: #CEE3F6;
}

最佳答案

在 Foundation 中,背景色被赋予 theadtbody 元素。要覆盖这些,只需使用以下命令:

table thead,
table tbody {
  background: transparent;
}

关于css - 基础透明台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40382511/

相关文章:

html - 使用 mix-blend-mode 从它的父级中删除一个形状,同时保持同级文本正常

javascript - 隐藏 html 元素在不同浏览器中的不同行为

javascript - 在分区中切换图像。使用 javascript 背景图像 : url(id ="demo");

ruby-on-rails - 如何在 Rails Engine 4.1.5 中安装 Foundation

html - 如何使 zurb Foundation 打印在浏览器中显示的内容

html - 绝对位置和溢出属性

css - 仅使用 css 根据浏览器大小显示/隐藏 div?

javascript - Foundation 5 与 IE8 完全不一致

javascript - 是否可以将多个模式中的多个打印按钮绑定(bind)到每个模式中的特定 div?

html - CSS - 将 div 拉到另一个下方,在小屏幕上不起作用