要怎样在一个div中插入多个按钮 老师帮我插了两个按钮到了第三个就不行了
我献上我的代码:
<style type="text/css">
body{
background:#999;
height:768px;
width:100%;
}
</style>
<head>
<body>
<div id="div1" style="padding-top:500px " float:left">
<a href="zhuye.html";><input type="butoon" id="butoon1" name="注册" value="注册"/></a>
</div>
<div id="div1" style="padding-top:500px " float:left">
<a href="zhuye.html";><input type="butoon" id="butoon2" name="主页" value="主页"</div>
<div id="div1" style="padding-top:500px ">
<a href="zhuye.html";><input type="butoon" id="butoon3" name="释义" value="释义"/></a>
</div>
[解决办法]
<!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" />
<title>无标题文档</title>
</head>
<body>
<div id="div1" style="padding-top:500px;float:left">
<a href="zhuye.html"><input type="butoon" id="butoon1" name="注册" value="注册"/></a>
</div>
<div id="div2" style="padding-top:500px;float:left">
<a href="zhuye.html"><input type="butoon" id="butoon2" name="主页" value="主页" />
</div>
<div id="div3" style="padding-top:500px ">
<a href="zhuye.html"><input type="butoon" id="butoon3" name="释义" value="释义"/></a>
</div>
</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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<div id="div1" style="padding-top:500px;float:left">
<a href="zhuye.html"><button id="butoon1" name="注册">注册</button></a>
</div>
<div id="div2" style="padding-top:500px;float:left">
<a href="zhuye.html"><button id="butoon2" name="主页">主页</button></a>
</div>
<div id="div3" style="padding-top:500px ">
<a href="zhuye.html"><button id="butoon3" name="释义"> 释义</button></a>
</div>
</body>
</html>