入力テキストフィールドを作成し、htmlを使用してラベルを指定しましたが、ラベルを1行に表示するのではなく、ラベルが3行で表示されているという問題に直面しています。HTMLテキストフィールドのラベルが3行に表示されます
label {
display: inline-block;
position: relative;
width: 5px;
top: 0px;
left: -193px;
color: #999;
font-family: 'Helvetica', sans-serif;
font-size: 16px;
font-weight: lighter;
z-index: 1;
transition: all 0.2s ease-in;
}
<input type="text" name="verficationcode" required autocomplete="off">
<label for="verficationcode">Enter code here</label>
あなたはそれに幅5ピクセルを与えているので、それを削除するとnowrapを設定せずに動作するはずです –