<style type="text/css">

 
label{
float: left;
width: 80px;
}
form{margin:0px}
input{
width: 180px;
border:1px solid #808080
}
 
textarea{
width: 250px;
height: 150px;
}
 
#sbutton{
margin-left: 80px;
margin-top: 5px;
width:80px;
}
 
br{
clear: left;
}
 
</style>
 
<form action="" method="post">
 
<label for="user">姓名:</label>
<input type="text" id=user name="user" value="" /><br />
 
<label for="email">邮件:</label>
<input type="text" id=email name="email" value="" /><br />
 
<label for="comment">备注:</label>
<textarea id=comment name="comment">
</textarea>
<br />
 
<input type="submit" /><br />
 
</form>

效果为

实例:应用CSS实现表单form布局(博主:http://www.bm777.com/post/32.html)

相关文章:

  • 2021-07-30
  • 2021-12-26
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2021-10-03
猜你喜欢
  • 2021-12-29
  • 2021-12-25
  • 2021-11-19
  • 2021-04-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
相关资源
相似解决方案