代码如下:
<!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <htmlxmlns="http://www.w3.org/1999/xhtml"> <head> <title>Form</title> <meta http-equiv="content-type"content="text/html; charset=UTF-8" /><linkhref="../demo.css" rel="stylesheet"type="text/css" /> <scriptsrc="../../scripts/boot.js"type="text/javascript"></script> <style> .mini-labelfield-label { width:100px; } body .mini-labelfield { width:250px; margin:0; margin-top:5px; } </style> </head> <body> <h1>Form 表单</h1> <table> <tr> <td> <input labelField="true"label="TextBox1:" id="textbox1" name="username" class="mini-textbox"required="true" /> </td> <td> <inputlabelField="true" label="TextBox2:" id="textbox1" name="usercode" class="mini-textbox"required="true" /> </td> </tr> <tr> <td colspan="2"> <inputlabelField="true" label="TextBox3:" id="textbox1" name="username"class="mini-textbox" required="true" /> </td> </tr> </table> <div class="description"> <h3>Description</h3> <p>只需要设置"labelField"、"label"、"labelStyle"就可以显示左侧label文本描述。 </p> </div> </body> </html>
|