1.实现,下面布局:A,B,C每个标签100像素宽,100像素高,并排排列,标签D300像素宽,100像素高,另起一行排列。
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>test01</title>
<style type="text/css">
.A,.B,.C{float:left;width:100px;height:100px}
.D{width:300px;height:100px}
.clear{clear:both;}
/*给div设置背景颜色*/
.A{background: red;}
.B{background: green;}
.C{background: blue;}
.D{background: yellow;}
</style>
</head>
<body>
<div class="A"></div>
<div class="B"></div>
<div class="C"></div>
<div class="clear"></div>
<div class="D"></div>
</body>
</html>
2.用js实现随机选取10–100之间的10个数字,存入一个数组&#x