您现在的位置: 365建站网 > 365文章 > 经典 用CSS实现表单form布局

经典 用CSS实现表单form布局

文章来源:365jz.com 点击数:847 更新时间:2008-05-11 00:50

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

生产内容,同时打通搜索引擎(SEO)与AI搜索引擎(GEO)流量入口的软件! 点击进入365建站器 »

您可能感兴趣的文章