html - 不应用边界半径。我尝试在 tr 标签上应用边框半径,但它不起作用
问题描述
不应用边界半径。我尝试在 tr 标签上应用边框半径,但它不起作用
<table align="center" border="0" cellspacing="0" cellpadding="0" width="80%" >
<h2>Let the borders collapse</h2>
<tr class="border">
<th class="side">Firstname</th>
<th>Lastname</th>
<th class="side">Lastname</th>
</tr>
</table>
</td></tr>
</table>
解决方案
https://codepen.io/turbo_baguettes/pen/gOmzGNN
对我来说很好
.border {
/* margin: auto; */
border-style: hidden;
border-spacing: 0;
overflow: auto;
border-collapse: separate !important;
/* border-spacing: 0; */
-moz-border-radius: 6px;
/* -webkit-border-radius: 6px; */
border-radius: 10px;
max-width: 100%;
/* border-right: none;
border-left: none; */
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
/* TR BORDER HERE */
border: 5px solid pink;
}
推荐阅读
- html - HTML 嵌套表结构
- ruby-on-rails - Rails - 在配置块内加载自定义异常处理程序时出现问题
- android - 通过下载 URL 显示来自 firebase cloud firestore 的图像
- opencv - 使用航拍多幅图像通过拼接创建马赛克
- c++ - 3D碰撞检测:凸包与凸包,需要位置和法线
- angular - 在角度 8 中调用导出类的问题
- android - 我应该选择哪个视图来预览带有 Kotlin 的 Camera 的真实图片?
- angular - Angular - 从辅助路径刷新浏览器时如何始终登陆起始页面
- android - Android Webview 字体比例受系统字体比例设置影响
- android - 为什么我的 RecyclerView 没有显示在 Fragment 中?