有如下页面结构 <body style="overflow:hidden"> <div style="height:100px;background-color:red;">div1</div> <div style="height:100px;background-color:green;">div2</div> <div style="height:100px;background-color:blue;">div3</div> <a id="seniorSearch" href="" style="float:right;">高级选项</a> <table id="collapseSelect" style="border:solid 1px;height:480px"> <tr> <td>1</td> <td>2</td> <td>3</td> </tr> <tr></tr> </table> </body> 点击高级选项时 ,定位到table,table高度正好到有滚动条的情况, 页面中设置了overflow:hidden 样式 点击后,发现页面错位了,实际是定位到了table 又不现实滚动条,当页面很复杂时,页面框架中有可能会存在这种情况。应引起注意。 |
|
来自: johnny_net > 《html》