作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试制作一个带有圆 Angular 的表格,其页眉和页脚的颜色都与主表格不同。理想情况下,页眉和页脚都将从父表继承,但能够单独舍入页脚/页眉对我的目的来说没问题。
当前问题在此处突出显示:http://jsfiddle.net/VfVx9/
tfoot{
background: #ff0000;
border-radius: 20px;
}
在我看来,直接给页脚一个边框半径应该是圆 Angular 的,但这似乎不太奏效。有什么想法吗?
最佳答案
你为什么不这样做:
<div id="table">
<div class="head">
Table head
</div>
<div class="tablerow">
Table row content
</div>
<div class="tablerow">
Table row content
</div>
<div class="footer">
Table footer
</div>
然后:
#table {
background-color: blue;
width:200px;
border-radius: 10px;
}
#table div {
padding: 5px;
}
#table .head {
background-color: green;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
#table .footer {
background-color: red;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
这是一个 fiddle :http://jsfiddle.net/VfVx9/
关于html - 表格页脚上的边框半径属性中断,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18294756/
我是一名优秀的程序员,十分优秀!