简体   繁体   English

HTML中的表格边框

[英]Table border in html

I'm Trying to create a table with a rounded border, but only in the bottom. 我正在尝试创建一个带有圆角边框的表,但只能在底部。 I'm using this CSS coder: 我正在使用此CSS编码器:

#table_rounded_white{
            border-style: solid; 
            /*border-top-style: none;*/
            border-width: 1px;
            border-color: #8E8C8C;
            border-radius: 15px;
            -moz-border-radius: 15px;
            -webkit-border-radius: 15px;
            background-color: #FFFFFF;
            padding: 10px;
        }

What I need is to do the top borders without rounding them. 我需要做的是顶部边界而不要四舍五入。

Someone have an idea about how to do this? 有人对如何执行此操作有想法吗?

Thank You 谢谢

rather than defining all radii for each corner: 而不是为每个角定义所有半径:

border-radius: 15px;
-moz-border-radius: 15px;

only define the radii you need: 只定义您需要的半径:

-webkit-border-bottom-right-radius: 15px;
-webkit-border-bottom-left-radius: 15px;
-moz-border-radius-bottomright: 15px;
-moz-border-radius-bottomleft: 15px;
border-bottom-right-radius: 15px;
border-bottom-left-radius: 15px;

here's a handy-dandy tool to generate styles quickly: http://border-radius.com/ 这是一个快速生成样式的便捷工具: http : //border-radius.com/

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

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