我試圖回答這個問題的背後:How to make a colorful gradient glow around your input-box?股利出現輸入
我的問題,問題是爲何rainbowBg DIV出現over
的input
,而不是落後嗎?我已經嘗試定位輸入absolute
,設置z-indexes
,沒有任何工作。
<div class="rainbowWrap">
<div class="rainbowBg"></div>
<input class="rainbow" type="text"/>
</div>
嘗試在輸入中輸入。只有在輸入邊框和rainbowBg
div之間單擊時,才能將其聚焦。我只在Chrome中進行過測試。
天啊。你是對的。我現在感到很蠢,因爲我浪費了太多時間,我以爲我已經試過了。謝謝! – Cristy 2014-12-06 22:24:56