Hover not recognized on floating dynamically generated element (bx slider)

爷,独闯天下 提交于 2019-12-11 18:32:21

问题


I am using bx Slider, using external controls for previous and next slide. All is working fine. However, I am using floating elements for the controls, since I want them in a line and filling the whole containing div (as in this question CSS three inline elements with align from left to right, how to occupy all available width )

However, the controls are generated dynamically by bxSlider, and for some strange reason, if the elements are floating hover is not recognized

Here is an example page: http://demitogroup.comuv.com/d_store/copia.html

If I turn the float off with firebug to #external_promo_controls div hover is recognized again.

If the links are not generated dynamically the problem does not show up.

On Chrome the same happens.

I have totally no idea about what is happening.

Could try to figure out something avoiding to use float elements, but then I will be back again to my first question...


回答1:


If you expect your floated element to fill the whole space, try setting it to display:block explicitly, if it is not already. If that doesn't work, try setting a large z-index on it to guarantee nothing hidden is getting above it.



来源:https://stackoverflow.com/questions/12146022/hover-not-recognized-on-floating-dynamically-generated-element-bx-slider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!