会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
行者
山高自有客行路,水深自有渡船人.
博客园
首页
新随笔
联系
管理
订阅
DIV CSS网页布局:用CSS实现表单form布局
经典代码:用CSS实现表单form布局
Source Code to Run
[www.52css.com]
<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>
[ 可先修改部分代码 再运行查看效果 ]
posted on
2008-10-18 13:17
恩恩爸爸
阅读(
741
) 评论(
0
)
收藏
举报
刷新页面
返回顶部
公告