画矩形很简单啦,定义宽高就行
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.square {
width: 300px;
height: 300px;
background-color: green;
}
</style>
</head>
<body>
<div class="square"></div>
</body>
</html>