私はこのようなcssクラスを持っています:
.new-fld input[type="text"]{width:418px !important; margin-bottom:0px !important; height:18px !important; background-color:transparent !important; color:#FFF !important; border-bottom:1px solid #FFF; border-left:none !important; border-right:none !important; border-top:none !important; font-size:14px; /*padding:0 8px;*/}
ページ上のすべての入力フィールドに適用されます。
一部のフィールドの長さを変えたいので、このような別のクラスを作成しました
.new-fld input[type="text"]{width:45px !important; margin-bottom:0px !important; height:18px !important; background-color:transparent !important; color:#FFF !important; border-bottom:1px solid #FFF; border-left:none !important; border-right:none !important; border-top:none !important; font-size:14px; /*padding:0 8px;*/}
そして、このように適用しました
<div class="new-fld">
<input type="text" value="+44 1793 853219" name="">
<input type="text" value="+ 44" readonly="readonly" name="Dialprefix1" id="Dialprefix1" class="dialprefix" style="text-align:right;width:45px;">
<span>*</span>
</div>
ご覧のとおり、テキスト ボックス スタイルで幅を入力しましたが、まだ機能していません。
しかし、それは機能していません。良い解決策を教えてください。