我在我的HTML下面的文本框HTML文本區域無法點擊,無法在輸入文本它
我有以下代碼:
.contact-us-form textarea, .contact-us-form input[type="text"], .contact-us-form input[type="email"] {
height: 40px;
padding: 0;
margin: 0;
line-height: 0;
padding-left: 15px;
color: #333;
width: 100%;
border: none;
border-bottom: 1px #BFB9B9 solid;
padding-left: 40px;
}
.contact-us-form textarea {
height: 100px;
padding-top: 20px;
}
<textarea name="" placeholder="Message *"></textarea>
由於某些原因,我無法在textarea中獲取光標,而且我也無法在其中鍵入文本。這是爲什麼發生?我沒有任何JS連接到這個文本框,我已經調試和測試了這一點,我也檢查了所有計算的CSS屬性,我似乎沒有找到究竟是什麼導致此問題。
任何人都可以指出我到底做錯了什麼?
片段工作正常,我在Chrome – Gerard
編輯does''t顯示的bug! –