61,112
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<style type="text/css">
body
{
padding: 0px;
margin: 0px;
}
</style>
</head>
<body>
<input type="text" value="距离底部滴黄色区域 20px;" />
<div style="margin: 20px; padding: 50px;background-color: yellow;">
<div style="background-color: green;">margin: 20px; padding: 50px;</div>
</div>
<input type="text" value="距离上部滴黄色区域 20px;" />
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<style type="text/css">
body
{
padding: 0px;
margin: 0px;
}
</style>
</head>
<body>
<input type="text" value="margin: 50px;" />
<div style="margin: 20px; padding: 50px;background-color: yellow;">
<div style="background-color: green;">margin: 20px; padding: 50px;</div>
</div>
<input type="text" value="margin: 50px;" />
</body>
</html>