したがって、ページ上のすべての入力タイプのサイズを調整するCSSがあります。しかし、私はまだいくつかの長さの面で規制されていないことに気づいています。私が使っているCSSはこれです:あなたは、いくつかのマイナーな長さの問題が残っている見ることができるように CSSは表のセル内とページ全体を1つに統制します
:ここ
.leftRightBorder select,
.leftRightBorder textarea,
.leftRightBorder input[type=text]
{
width: 150px;
}
上記のCSSを使用して、ページの写真です。しかし、私が持っている主な質問は、それぞれのコンポーネントの '支払日'と 'ロールデイ'フィールドが同じテーブルセル内にあるので、それらの間に
を置いても、間隔は他のすべての間の垂直スペーシングページ。ページ上のすべての項目の間には、どのように垂直方向に間隔を置いていますか?
EDIT:
ここでは、ASP.NETコード:
<tr id="tr63">
<td id="td64">
Payment Day
</td>
<td id="td65" class="leftRightBorder">
<%= Html.DropDownListFor(m => m.FixedComponent.PaymentDay, DropDownData.DaysOfMonthList(), "", new { propertyName = "FixedComponent.PaymentDay", onchange = "UpdateField(this);" })%>
<%= Html.DropDownListFor(m => m.FixedComponent.PaymentBusinessDayConvention, DropDownData.BusinessDayConventionList(), "", new { propertyName = "FixedComponent.PaymentBusinessDayConvention", onchange = "UpdateField(this);" })%>
</td>
<td id="td66" />
<td id="td67">
Payment Day
</td>
<td id="td68" class="leftRightBorder">
<%= Html.DropDownListFor(m => m.FloatingComponent.PaymentDay, DropDownData.DaysOfMonthList(), "", new { propertyName = "FloatingComponent.PaymentDay", onchange = "UpdateField(this);", disabled="disabled" })%>
<%= Html.DropDownListFor(m => m.FloatingComponent.PaymentBusinessDayConvention, DropDownData.BusinessDayConventionList(), "", new { propertyName = "FloatingComponent.PaymentBusinessDayConvention", onchange = "UpdateField(this);", disabled="disabled" })%>
</td>
</tr>
私はHTMLヘルパーの間の間隔は、ページ上の他のすべての間隔を等しくしたいです。お役に立てれば。
私はそれが実際に実際の入力ドロップダウンを拡大し、ちょうどそれの下にスペースを入れないでパディングを追加します。 – slandau