若想运用在table的边框,可直接在table的css样式中写入,
例如:
<style>
table {
border-radius: 10px 10px 10px 10px;
/*圆形边框*/
}
</style>
若是table中的td单元格,可以这样写,
例如
<style>
table td{
border-radius:10px 10px 10px 10px ;/*圆形边框*/
}
</style>
下面是我作业实际的实际效果代码
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<style>
table{
width: 1000px;
border-collapse: separate;
border-spacing: 10px;
}
table td{
border-radius:10px 10px 10px 10px ;/*圆形边框,上,右 ,下,左*/
background-color: #ff9;
border: 1px dashed #006;
}
img{
padding: 8px 10px 10px 100px;
width: 200px;
height: 130px;
}
</style>
<body>
<table >
<tr>
<td><img src="code1/2/1.jpg"/></td>
<td><img src="code1/2/2.jpg"/></td>
<td><img src="code1/2/4.jpg"/></td>
</tr>
<tr>
<td><img src="code1/2/5.jpg"/></td>
<td><img src="code1/2/6.jpg"/></td>
<td><img src="code1/2/7.jpg"/></td>
</tr>
<tr>
<td><img src="code1/2/8.jpg"/></td>
<td><img src="code1/2/9.jpg"/></td>
<td><img src="code1/2/10.jpg"/></td>
</tr>
<tr>
<td><img src="code1/2/11.jpg"/></td>
<td><img src="code1/2/12.jpg"/></td>
<td><img src="code1/2/u=1832127004,2310975935&fm=21&gp=0.jpg"/></td>
</tr>
</table>
</body>
</html>