无法在textarea中输入文本

Sup*_*own 1 html css forms

我无法在消息部分输入文字.它不会让我点击并输入.名称,电子邮件和反垃圾邮件部分工作正常,只有textarea没有.我用谷歌搜索,没有找到关于HTML textarea标签的解决方案.

<form method="post" action="email.php">
    <label>Name</label>
    <input name="name" placeholder="Type Here">
    <label>Email</label>
    <input name="email" type="email" placeholder="Type Here">

    //this is the problem 
    <label>Message</label>
    <textarea name="message" placeholder="Type Here"></textarea>
    <label>*What is 2+2? (Anti-spam)</label>
    <input name="human" placeholder="Type Here">
    <input id="submit" name="submit" type="submit" value="Submit">
</form>
Run Code Online (Sandbox Code Playgroud)

这是我的CSS:

.contact-form input[type=text],
.contact-form input[type=password],
.contact-form input[type=email],
.contact-form textarea,
.contact-form input[type=file] {
    display: inline-block;
    float: left;
    padding: 12px 15px;
    width: 100%;
    border: 0;
    border: 1px #DFDFDF solid;
    background: #fff;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.contact-form textarea {
    clear: both;
    width: 100%;
    height: 180px;
    resize: none;
}
Run Code Online (Sandbox Code Playgroud)

小提琴

Krz*_*iek 6

你有:

button, input, optgroup, select, textarea { 
color: inherit;
font: inherit;
margin: 0px;
}
Run Code Online (Sandbox Code Playgroud)

问题是从元素font: inherit;中使用.所以根据需要设置为或其他值.line-height: 0pxformline-height: 1.2emtextarea