一段css代码,margin-top不起作用。为啥
<title>无标题文档</title></head><styletype="text/css">#big{background:url(images/1bg.jpg)n...
<title>无标题文档</title>
</head>
<style type="text/css">
#big {background:url(images/1bg.jpg) no-repeat; width:588px; height:383px; margin-top:150px; margin-left:400px; overflow:hidden;}
#big1 { width:566px; height:107px; margin-top:38px; margin-left:10px; }
#big2 {float:left; width:235px;height:190px; background:url(images/index.jpg) -215px -267px no-repeat;}
%bigt { width:100px; height:100px; border:4px solid red; }
</style>
<body bgcolor="#005691">
<div id="big">
<div id="big1"> <img src="images/2bg.jpg" /></div>
<div id="big2"></div>
<div id="bigt"><table align="center">
<tr><td id=""></td><td>登陆用户名:</td><td><input type="text" size="20" /></td></tr>
<tr><td id=""></td><td>登陆密码:</td><td><input type="text" size="20" /></td></tr>
<tr><td colspan="3"><input type="image" src="images/anniu1.jpg" /><a href="#" ><img src="anniu2.jpg" /></a><a href="#" ><img src="anniu3.jpg" /></a></td></tr>
</table></div>
</div>
</body>
</html> 展开
</head>
<style type="text/css">
#big {background:url(images/1bg.jpg) no-repeat; width:588px; height:383px; margin-top:150px; margin-left:400px; overflow:hidden;}
#big1 { width:566px; height:107px; margin-top:38px; margin-left:10px; }
#big2 {float:left; width:235px;height:190px; background:url(images/index.jpg) -215px -267px no-repeat;}
%bigt { width:100px; height:100px; border:4px solid red; }
</style>
<body bgcolor="#005691">
<div id="big">
<div id="big1"> <img src="images/2bg.jpg" /></div>
<div id="big2"></div>
<div id="bigt"><table align="center">
<tr><td id=""></td><td>登陆用户名:</td><td><input type="text" size="20" /></td></tr>
<tr><td id=""></td><td>登陆密码:</td><td><input type="text" size="20" /></td></tr>
<tr><td colspan="3"><input type="image" src="images/anniu1.jpg" /><a href="#" ><img src="anniu2.jpg" /></a><a href="#" ><img src="anniu3.jpg" /></a></td></tr>
</table></div>
</div>
</body>
</html> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询