我製作了一個包含5個jsp的jsp。在我的第四個..它的運作,但..我的設計看起來很笨重。你能指出任何建議,使它看起來更好或更清潔?任何建議,將不勝感激。由於HTML佈局清理?
CSS
table.det
{ }
table.det td
{
border: none;
}
fieldset.det
{
display:block;
float:left;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
margin-top:20px;
margin-left:20px;
border:2px solid #CCCCCC;
}
fieldset.det legend
{
padding:2px 5px;
border:2px solid #CCCCCC;
}
的jsp:
<tr>
<th>
<span onclick="toggleDiv('filtering', 'filterImg')" style="cursor: hand;">Filters <img name="filterImg" src="../images/minus.gif" /></span>
</th>
</tr>
<tr>
<td>
<div id="filtering" style="display:block;">
<table class ="det">
<tr>
<td>
Workload Year: <select size="1" name="wYearSelect">
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option selected value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
</select>
Fiscal Year: <select size="1" name="wYearSelect">
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option selected value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
</select>
Condition Code: <select size="1" name="condCodeSelect">
<option selected value=""> </option>
<option value="2007">A</option>
<option value="2008">B</option>
<option value="2009">C</option>
<option value="2010">D</option>
<option value="2011">E</option>
<option value="2012">F</option>
<option value="2013">G</option>
<option value="2014">H</option>
</select>
Customer: <select size="1" name="customerSelect">
<option selected value=""> </option>
</select>
Repair Facility: <select size="1" name="repFacSelect">
<option selected value=""> </option>
</select><br/>
Work Type: <select size="1" name="workTypeSelect">
<option selected value=""> </option>
<option value="10">Rebuild</option>
<option value="11">IROAN</option>
<option value="12">SOAR</option>
<option value="13">Special</option>
</select>
Special Indicator: <select size="1" name="specIndSelect">
<option selected value=""> </option>
<option value="RST">RESET</option>
</select>
WBS: <select size="1" name="wbsSelect">
<option selected value=""> </option>
<!-- etc -->
</select>
<br/>
Appropriation: <select size="1" name="appropSelect">
<option selected value=""> </option>
</select>
MWSLIN: <input type="text" name="mwslin" value=""/>
Serial #: <input type="text" name="mwslin" value=""/>
<input type="checkbox" name="include_carryover">Include Carryover</input>
</td></tr><tr><td>
<fieldset>
<legend>Standard Materiel filter structure here</legend>
NSN: <input type="text" name="nsn" value=""/>
TAMCN: <input type="text" name="tamcn" value=""/>
PGD/Group: <input type="text" name="pgd" value=""/>
SAC : <select size="1" name="condCodeSelect">
<option selected value=""> </option>
<option value="2011">1</option>
<option value="2012">2</option>
<option value="2013">3</option>
</select>
<br/>
Nomenclature: <input type="text" name="nomen" value=""/>
</fieldset>
</td></tr><tr><td>
<fieldset class="det">
<legend>Source of Repair</legend>
<input type="checkbox" name="sorCodes" value="A">MCA </input>
</fieldset>
<fieldset class="det">
<legend>Schedule Type</legend>
<input type="checkbox" name="schedType" value="1">Regular</input><br/>
<input type="checkbox" name="schedType" value="2">Lot Job</input><br/>
<input type="checkbox" name="schedType" value="3">Batch Job</input>
</fieldset>
<fieldset class="det">
<legend>Workload Type</legend>
<input type="checkbox" name="workloadType" value="1">SMC Workload</input><br/>
<input type="checkbox" name="workloadType" value="2">Other Workload</input>
</fieldset>
<fieldset class="det">
<legend>Closure Level</legend>
<input type="checkbox" name="workloadType" checked value="1">Open</input><br/>
<input type="checkbox" name="workloadType" value="1">Physically Complete</input><br/>
<input type="checkbox" name="workloadType" value="2">Financially Complete</input>
</fieldset>
</td></tr></table>
</div>
</td>
</tr>
<tr>
<td align="center">
<button name="Generate Report" value="Generate Report">Generate Report</button>
<button name="Clear Criteria" value="Clear Criteria">Clear Criteria</button>
</td>
</tr>
thanx的建議 – 2012-02-01 16:22:55