Chinaz.com - 中国站长站

投递文章  投稿指南 站长资讯通告:
搜索: 您的位置主页>设计在线>WEB标准>阅读资讯:经典 用CSS实现表单form布局

经典 用CSS实现表单form布局

2008-04-23 11:37:55   来源:天极网   作者:龙犊   【 评论:3

以下为引用的内容:
<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>

Tags:CSS   form  
责任编辑:申瑞瑞
  • 请文明参与讨论,禁止漫骂攻击。 用户名:新注册) 密码: 匿名:
    评论总数: [ 查看全部 ] 网友评论
    关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助