用css样式,为表格加入边框
怎样显示表格边框的颜色呢?
怎样显示表格边框的颜色呢?
2017-06-09
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>边距</title>
<style type="text/css">
div{
width:300px;
height:300px;
border:1px solid red;
}
#box1{margin-bottom:30px;}
</style>
</head>
<body>
<div id="box1">box1</div>
<div id="box2">box2</div>
</body>
</html>
11-10这一节课的代码,你可以自己编辑试试。希望有用。
举报