61,112
社区成员
发帖
与我相关
我的任务
分享
.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 PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<style type="text/css">
.display-label,
.display-field,
.editor-field
{
margin: 0.5em 0;
float:left;
}
.editor-label
{
margin: 0.5em 1em;
text-align: right;
float: left;
width: 150px;
}
.clear
{
margin:0px;
padding:0px;
width:0px;
height:0px;
clear:both;
}
</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="text" value="" />
<span class="field-validation-valid" data-valmsg-for="Id" data-valmsg-replace="true"></span>
</div>
<div class="clear"></div>
<div style="float:left; border:1px solid green;">
<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>
<div style="float:left; border:1px solid green;">
<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>
</div>
<div class="clear"></div>
<p>
<input type="submit" value="Create" />
</p>
</fieldset>
</body>
</html>
<style type="text/css">
.display-label,
.display-field,
.editor-field
{
margin: 0; padding:5px;
}
.editor-label
{
margin: 0;padding:5px;
text-align: right;
width:130px;
float:left;
}
</style>
<head>
<style type="text/css">
.display-label,
.display-field,
.editor-field
{
margin: 0; padding:5px;
text-align:left;
width:300px;
}
.editor-label
{
margin: 0;padding:5px;
text-align: right;
width:130px;
float:left;
}
</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="text" value="" />
<span class="field-validation-valid" data-valmsg-for="Id" data-valmsg-replace="true"></span>
</div>
<div style="clear:both"></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 style="clear:both"></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="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 style="clear:both;">
<input type="submit" value="Create" />
</p>
</fieldset>
</body>
</html>