<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
div{
border-color: red;
border-width: 1px;
border-style: solid;
}
#one{
width: 200px;
height: 300px;
/*
内边距:
注意,内边距会改变自身的宽高.

*/
padding-left: 100px;
}
#two{
width: 100px;
height: 100px;
/*
外边距
margin-left: 100px;
*/
}
</style>
</head>
<body>
<div >
</div>
</div>
</body>
</html>

盒子标签div嵌套

 

盒子标签div嵌套

 

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-06-10
  • 2021-11-02
  • 2021-06-20
  • 2021-12-31
猜你喜欢
  • 2022-12-23
  • 2021-11-04
  • 2019-08-12
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2022-01-01
相关资源
相似解决方案