Text input placeholders not displaying in IE and Firefox

后端 未结 4 2103
予麋鹿
予麋鹿 2021-02-07 04:55

My text input placeholders refuse to display in IE and Firefox despite having used the -moz-placeholder attribute. This can be viewed on the contact page here if you are using F

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-07 05:24

    Try to reduce the top and bottom paddings. Some how the vertical padding covers the placeholder. Do not forget to set the height of element to 100%.

    input[type="email"], input[type="password"], input[type="text"] { padding: 0 20px; height: 100%; }

提交回复
热议问题