主要属性:border-radius:5px;
任意一角也可以:
border-top-left-radius:5em;
border-top-right-radius:5em;
border-bottom-right-radius:5em;
border-bottom-left-radius:5em;
下面这种写法:“/”前是指圆角的水平半径,而“/”后是指圆角的垂直半径,他们两都遵循TRBL(上右下左)的顺序原则。
border-radius:
10px
15px
20px
30px
/
20px
30px
10px
15px
;
也可以换成这样写:
border-top-left-radius: 10px 20px;
border-top-right-radius: 15px 30px;
border-bottom-right-radius: 20px 10px;
border-bottom-left-radius: 30px 15px;
下面这个是例子。
<html>
<head>
<style type="text/css">
.table{border-radius: 8px;border:1px solid #F00;}
</style>
</head>
<body>
<table class="table">
<tbody>
<tr>
<td> 啊啊啊 </td>
<td> 啊啊啊 </td>
<td> 啊啊啊 </td>
</tr>
<tr>
<td> 啊啊啊 </td>
<td> 啊啊啊 </td>
<td> 啊啊啊 </td>
</tr>
</tbody>
</table>
</body>
</html>