我正在添加一些背景樣式,問題是我無法選擇輸入標籤,使用鼠標按鈕,因此問題在添加樣式後開始。輸入標籤無法使用鼠標進行對焦
這裏是我的代碼:Input tags not working
<div class="bla">
<div class="test-continer">
<span>Problem: Input tags, Buttons and link tags are <b>not working</b></span>
<h4>when "test-continer" div , h4 (header) and above span is removed its working!</h4>
<input id = "input" type="text">
<button id = "button" onClick = "check()" >Submit</button>
<a href="http://codepen.io/dannibla" class= "article"><strong>What makes this problem ?</strong></a>
</div>
</div>
當<div class="test-continer">
,<h4>
和<span>
被拆除,則<input>
工作正常,我很困惑?
。測試-continer { 的位置是:相對的; z-index:2; } 添加到您的CSS。 –
請參閱[mcve] –
使用瀏覽器的開發工具來調試此類問題。如果您剛剛在鼠標光標位置下選擇了該元素,則很容易注意到.bg-bubbles列表正在放置在輸入字段的頂部。 – CBroe