CSS设置表格外边框加粗的方法
可以利用border属性设置table外边框的宽度,border 简写属性在一个声明设置所有的边框属性。
示例代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<style type="text/css">
.mytable{
width:400px;
height:150px;
border:10px solid #000;
}
</style>
<table border="1" class="mytable">
<tr><td>aaa</td><td>bbb</td></tr>
<tr><td>ccc</td><td>ddd</td></tr>
</table>
</body>
</html>
输出结果:


