简体   繁体   English

折叠的桌子边框上的圆角

[英]Rounded corners on collapsed table border

I've figured out exactly how to make a thinner border for a table, but am struggling to make the borders perfect. 我已经弄清楚了如何使桌子的边框变细,但是努力使边框变得完美。 I want rounded corners but it doesn't seem to help when I collapse the borders (to make them thin and one), and it works perfectly fine without collapsing, but then the table looks off. 我想要圆角,但是当我折叠边框(使边框变细和一个边框)时,它似乎无济于事,并且可以很好地工作而不塌陷,但是桌子看起来很平整。 Help? 救命?

JSFiddle: http://jsfiddle.net/Yx865/ JSFiddle: http : //jsfiddle.net/Yx865/

The main focus lies here: 主要重点在于:

.myData .myTable table{
   border-collapse:collapse;
   border-top-right-radius:20px;
   border-top-left-radius:20px;
   border:1px solid black;
}

If you want to keep the border, just make sure to hide the overflow 如果要保留边框,只需确保隐藏溢出即可

overflow: hidden;

http://jsfiddle.net/n2hB3/ http://jsfiddle.net/n2hB3/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM