我试图回答这个问题的背后: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