源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

用CSS实现表单form布局

  • 时间:2021-12-21 04:03 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:用CSS实现表单form布局
出处:[url=http://blog.donews.com/dodo/archive/2005/06/18/434979.aspx]http://blog.donews.com/dodo/archive/2005/06/18/434979.aspx[/url] 在TABLE布局中设计Form,一般都是用2个td来布局,如果不用table,用CSS怎么做呢?看看下面的代码 <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" id="sbutton" value="确定" /><br /> </form>  
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部