CSS 样式 : Curvature of the table's edge (top only)

标签 css

我正在尝试使表格的左上角和右上角呈圆形,但应用以下代码也会使左下角和右下角呈圆形。知道如何解决吗?

/* sets the curvature of the box */
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-o-border-radius: 10px;

最佳答案

仅指定左上角和右上角:

-webkit-border-top-left-radius: 10px;
-webkit-border-top-right-radius: 10px;
-moz-border-radius-topleft: 10px;
-moz-border-radius-topright: 10px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;

border-radius.com是以这种方式创建边界半径的有用的快速工具。

关于CSS 样式 : Curvature of the table's edge (top only),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15087163/

相关文章:

jquery - 使用 row-eq-height 的 Bootstrap 等列高度不适用于我的页面

jquery - 列表标签重叠

android - 在 XDK 的中心放置一行

html - 当我单击复选框时不显示标记为选中,反之亦然

html - 嵌套导航列表中的 CSS3 列大小和对齐问题

html - 悬停按钮时文本移动

javascript - 如何使用 jQuery 隐藏桌面上的汉堡菜单?

jquery - 如何根据屏幕大小调整页面上的 Div 大小?

javascript - 更改动态添加元素的字体大小

javascript - jQuery 在缓存中预加载图像并在其他功能继续之前获取原始图像大小