Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このJsfiddleでは、次のように2つの入力フィールドを作成しようとしています。
ラベル(改行)
入力(改行)
label2(改行)
input2(改行)
メールラベルは、IEとchromeの両方のクリアを無視します。
ここでこのパターンの式を確認してください:http://pea.rs/forms/top-labels
追加してみることもできます:
display:block; clear:both;
最初のポイント-のプロパティを指定していません.clear。
.clear
2番目次の1つを試してください
<label for="Email" style="padding-top:10px">E-mail:</label>
これは機能します。
これがClearのアイデアです