樣式表我想產生以下表單樣式:與標籤上面輸入
Name Email [.................] [.................] Subject [.................] Message [.........................................] [.........................................] [.........................................] [.........................................]
的HTML代碼,我擁有的是:
<form name="message" method="post">
<section>
<label for="name">Name</label>
<input id="name" type="text" value="" name="name">
<label for="email">Email</label>
<input id="email" type="text" value="" name="email">
</section>
<section>
<label for="subject">Subject</label>
<input id="subject" type="text" value="" name="subject">
<label for="message">Message</label>
<input id="message" type="text" value="" name="message">
</section>
</form>
目前,它正在生產:
Name [...................] Email [...................] Subject [...................] Message [.........................................] [.........................................] [.........................................] [.........................................]
這樣做的最好方法是什麼?我一直在糊弄我的花車!
退房'顯示:直列block'我更喜歡它漂浮鋪設表單。小心你的元素之間的空間,使用Django我使用'{%spaceless%}'一個內置的模板機制。 – Henry 2011-05-18 14:13:40