日期:2014-05-17 浏览次数:20651 次
.display-label, .display-field, .editor-field { margin: 0.5em 0; } .editor-label { margin: 0.5em 1em; text-align: right; float: left; width: 130px; }
<head> <link href="Site.css" rel="stylesheet" type="text/css" /> </head> <body> <fieldset> <legend>User</legend> <div class="editor-label"> <label for="Id">User Code</label> </div> <div class="editor-field"> <input class="text-box single-line" id="Id" name="Id" type="text" value="" /> <span class="field-validation-valid" data-valmsg-for="Id" data-valmsg-replace="true"></span> </div> <div class="editor-label"> <label for="IsActive">Keep Active?</label> </div> <div class="editor-field"> <input class="check-box" data-val="true" data-val-required="The Keep Active? field is required." id="IsActive" name="IsActive" type="checkbox" value="true" /><input name="IsActive" type="hidden" value="false" /> <span class="field-validation-valid" data-valmsg-for="IsActive" data-valmsg-replace="true"></span> </div> <div class="editor-label"> <label for="IsAdmin">Is Administrator?</label> </div> <div class="editor-field"> <input class="check-box" data-val="true" data-val-required="The Is Administrator? field is required." id="IsAdmin" name="IsAdmin" type="checkbox" value="true" /><input name="IsAdmin" type="hidden" value="false" /> <span class="field-validation-valid" data-valmsg-for="IsAdmin" data-valmsg-replace="true"></span> </div> <p> <input type="submit" value="Create" /> </p> </fieldset> </body>
<!DOCTYPE HTML> <html> <head> <meta charset="gb2312" /> <link href="Site.css" rel="stylesheet" type="text/css" /> <style type="text/css"> .display-label, .display-field, .editor-field { margin: 0.5em 0; } .editor-label { margin: 0.5em 1em; text-align: right; float: left; width: 230px; clear:float; } .editor-field { float:left; width:600px; } </style> </head> <body> <fieldset> <legend>User</legend> <div class="editor-label"> <label for="Id">User Code</label> </div> <div class="editor-field"> <input class="text-box single-line" id="Id" name="Id" type="tex