用CSS實現表單form布局實例,css form實例
很多時候我們遇到Form表單,左邊是文字標題,右邊是表單input空,對于新手來說是非常麻煩的事,好了接下來我們將奉送一段div+css代碼關于Form表單布局實例及源代碼。
Form表單實例達到效果圖
Css form表單css源代碼如下:
- <style type="text/css">
- <!--
- /* www.rs2pl.com之css form實例 */
- label{float: left;width: 80px;line-height:25px;}
- 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>
Css form表單html源代碼如下:
- <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>
希望div+css網站總結的css form表單樣式案例對你有幫助。
查看CSS FORM表單在線演示-點我查看
如需轉載,請注明文章出處和來源網址:http://www.rs2pl.com/template/m99.shtml