Donec sed elementumtellus。Nulla condimentum maximus elit sat amet tristique。Aliquam ultrices nibh in urna sagittis consectetur。Cras aliquam consectetur molestie?
<marquee direction="up">A long time ago in a galaxy far, far away....</marquee>
Donec sed elementumtellus。Nulla condimentum maximus elit sat amet tristique。Aliquam ultrices nibh in urna sagittis consectetur。Cras aliquam consectetur molestie?
<marquee direction="up">A long time ago in a galaxy far, far away....</marquee>
由于输入标签包含在列表项标签中,因此未显示错误。
为确保错误消息显示,它们必须是 DOM 中输入字段之后的下一个元素。像这样:
<form class="contact" action="booking.php" method="POST" data-abide>
<div class="input-wrapper">
<input type="text" name="fullname" placeholder="Full Name" required />
<small class="error">Please provide your full name</small>
</div>
<div class="input-wrapper">
<input type="text" name="from" placeholder="E-mail" required pattern="email" />
<small class="error">Please provide a valid email address</small>
</div>
<div class="input-wrapper">
<textarea name="message" placeholder="Message" required></textarea>
<small class="error">Please enter a message</small>
</div>
<input type="submit" class="button right" value="SEND" />
</form>
希望这可以帮助。