css - 在 Yii2 gridview 中更改边框颜色

标签 css twitter-bootstrap colors yii2 border

如何更改 Yii2 GridView 中的边框颜色?我尝试搜索,但一无所获。我已经设法改变了背景颜色,但我无法改变里面的边框颜色。

enter image description here

最佳答案

边框颜色由 bootstrap css 设置。你可以在你的 css 中添加这样的东西来覆盖它:

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
    border: 1px solid #00a65a;
}

关于css - 在 Yii2 gridview 中更改边框颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42465495/

相关文章:

c++ - 使用 ICC 配置文件将 L*a*b* 转换为 RGB

javascript - Angular 模型更新时查询 ListView 样式不适用

javascript - Angularjs 动态对象更新

css - 条件继承字体、大小和颜色

html - 将 Bootstrap 网格系统添加到 HTML5

twitter-bootstrap - 媒体 div 内的 Bootstrap 3 标签 + 按钮组

r - 设置颜色以显示清晰的数字

colors - 如果我有调色板,找到最接近的网络安全颜色

javascript - 随机渐变背景色

html - 忽略父级的侧边距但尊重垂直滚动条来填充 100% 的视口(viewport)