margin负值的使用

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta content="all" name="robots" />
<title>margin负值的使用</title>
<meta name="keywords" content="DIV+CSS培训,上海DIV+CSS培训,北京DIV+CSS培训,北京Php培训,上海Php培训,div+css教程,DIV+CSS高级手写网站布局重构服务及php网站程序开发,seo优化,http://www.xinran001.com/鑫然网络最专业" />
<meta name="description" content=" 鑫然网络 鑫然网络主要从事上海DIV+CSS培训,北京DIV+CSS培训,北京Php培训,上海Php培训,div+css教程,承接DIV+CSS高级手写网站布局重构及php网站开发,seo优化等服务" />
<style type="text/css">
<!--
*{
margin:0px;
padding:0px;
}

ul{
list-style-type:none;
}

img {
border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px;margin:0px;padding:0px;
}

div {
border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px; border-right-width: 0px
}
body {
width:100%;font-size:12px;background:#fff;padding: 0px;color:#000;font-family: '宋体','新宋体',arial,verdana,sans-serif;
}

form {
border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px; border-right-width: 0px
}

a:link {
color:#003265; text-decoration: underline;
}
a:visited {
color:#003265; text-decoration: underline;
}
a:hover {
color:#fe0000; text-decoration: none;
}

.divbody{
padding-left:200px;background:#ccc;
}
.divbody_left{
float:left;width:200px;margin-left:-200px;height:100px;
}
.divbody_right{
width:100%;height:300px;background:#fff;
}
-->
</style>
</head>
<body>

<div class="divbody">
<div class="divbody_left">左边盒子</div>
<div class="divbody_right">

<table cellspacing="0" border="1" width="100%">
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
</table>


</div>
</div>

</body>
</html>

  

posted @ 2014-03-24 18:13  唸随爱  阅读(203)  评论(0编辑  收藏  举报