- 博客(2)
- 资源 (3)
- 收藏
- 关注
原创 IE点击子div,父div不获取焦点问题的解决办法(二)
上一篇博文,介绍了实现思路,使用var元素来解决问题。 但总觉得很奇怪,用短语元素var去包含div流元素,这本身就是不正确的用法,所以一直在思考能否有更好的解决途径。 简单的把问题抽象出来,写了一个Demo,代码如下,很简单。 Test Button .select-box { overflow: visible; /*border: n
2017-04-07 19:40:45 1426
原创 IE点击子div,父div不获取焦点问题的解决办法(一)
原始需求:父div上面有tabindex="0",点击子div,子div获取焦点,这个时候,希望父div也获取焦点。 这个在Chrome,FF浏览器上均表现正常,唯独IE环境不好用,困扰了许久,花费大约一天时间,尝试过各种办法,比如JS脚本,focus()方法,阻止冒泡事件,增加div蒙层,嵌套层级等等,都不能解决,也不是最理想的办法。最后还是stackoverflow上搞定问题。 Demo在
2017-04-06 17:00:02 3295
swiz-framework-develop
2014-01-07
puremvc-as3-standard-framework-master
2013-12-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人