經(jīng)典 用CSS實(shí)現(xiàn)表單form布局
文章來(lái)源:365jz.com 點(diǎn)擊數(shù):
802 更新時(shí)間:2008-05-11 00:50
參與評(píng)論
以下為引用的內(nèi)容: <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>
|
如對(duì)本文有疑問(wèn),請(qǐng)?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會(huì)為你解答?。?點(diǎn)擊進(jìn)入論壇
------分隔線----------------------------