<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
*{ margin:0 padding:0}
#wrap{ width:290px height:290px background-color:#CC9
padding:10px 10px}
#div1{ width:100px height:100px background-color:#C3C}
-->
</style>
</head>
<body>
<div id="wrap">
<div id="div1"></div>
</div>
</body>
</html>
大盒子设置内边距 ,代码如上,效果如下: