我有一个带有textfield和textarea的表单,并且它们都有一个占位符。但是,与textfield和textarea相比,占位符的字体样式不同。请告诉我如何保持相同的字体样式。
<form>
<input type="text" placeholder="just for testing the style">
<textarea placeholder="just for testing the style"></textarea>
</form>
答案 0 :(得分:0)
答案 1 :(得分:0)
您需要在CSS中将它们设置为相同的字体系列:
textarea,
input[type=text] {
font-family:Arial;
}