<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
div{
width: 300px;
height: 300px;
background: red;
color: #fff;
padding: 0 20px;
border: 10px solid red;
}
</style>
</head>
<body>
<div>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat blanditiis vitae repellat deleniti mollitia ab consequatur exercitationem obcaecati tenetur ea dolores totam nesciunt magnam, itaque repudiandae in harum quos optio.</div>
</body>
</html>为什么这两个不同? 不是都是div吗?
- 1 回答
- 0 关注
- 1251 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消