第一天的學習
<html>
<head>
<meta charset="utf-8">
<title>田字格</title>
<style>
body{
margin: 0px;
padding:0px;
}
.uni{
width:200px;
height: 200px;
float: left;
}
#first{
background: red;
}
#second{
background: blue;
}
#third{
background: yellow;
}
#forth{
background: black;
}
</style>
</head>
<body>
<div style="width: 400px;height: 200px;margin: 0 auto">
<div id="first" class="uni"></div>
<div id="second" class="uni"></div>
<div id="third" class="uni"></div>
<div id="forth" class="uni"></div>
</div>
</body>
</html>>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.