2013-07-23 27 views
-1

這是我的代碼,當我嘗試並選擇文本字段的頁面不會讓我輸入文本。我不能輸入文本到我的表格

<form method=post action=/form-energy.php enctype='multipart/form-data'> 
     <label for=name>Name:</label> <input name=name id=name type=text><br> 
     <label for=tel>Tel:</label> <input name=tel id=tel type=tel><br> 
     <label for=email>Email:</label> <input name=email id=email type=text><br> 
     <label for=architect>Architect details:</label> <textarea name=architect id=architect rows=10></textarea><br> 
     <p class=drawings>If you have any drawings to submit, please do so below (max file size 10mb):</p> 
     <label for=drawings>Drawings:</label> <input type=file name=drawings id=drawings><br><br> 
     <input type=submit value="Get in touch"> 
    </form> 
+0

太局部化問題的完美例子。 –

+4

我剛剛構建了[帶有您的代碼的頁面](http://jsbin.com/osuniy/1/edit),並且無法重現該問題。 (所以投票結束,因爲它不包含問題的一個例子)。 – Quentin

+0

與Quentin一樣,我可以輸入文字很好。你能再解釋一下這個問題嗎? – MLeFevre

回答

2

問題出在您的CSS。您已將div#contentz-index設置爲-1,因此它位於主體下,無法點擊任何內容。但是,您可以使用標籤轉到您的表單元素。

相關問題