好好地摆好姿势

时间:2015-05-06 08:08:38

标签: html css forms

有人可以给我一个暗示我应该如何布置这个表格漂亮而整洁。我已经尝试过列表,表格和div,但无法弄清楚哪个是最好的。

name1=foo
name2=function

Select id from table where name like (concat('%',name1,'%') or      
concat('%',name2,'%'));

1 个答案:

答案 0 :(得分:0)

看来你正在制作一个HTML form然后你必须编写适当的语义代码。将form标记与fieldset legend一起使用,并将标记与for ="ID"

一起使用

检查Demo



label, input{float:left; display:block;}
div{clear:left; padding:5px 0}
label{text-align:left; width:30%;}

 <form action=" " method="post">
     <fieldset>
    <legend>Contact Information: </legend>
    
   <div> <label for="f_name">First Name </label>
     <input type="text" id="f_name" /></div>
    <div> <label for="l_name">Last Name </label>
      <input type="text"  id="l_name" /></div>
     </fieldset>
  </form>
&#13;
&#13;
&#13;

相关问题