DIV with overflow:auto and a 100% wide table

前端 未结 8 1386
不思量自难忘°
不思量自难忘° 2021-01-30 03:23

I hope someone might be able to help me here. I\'ve tried to simplify my example as best I can.

I have an absolutely positioned DIV, which for this example I\'ve made fi

8条回答
  •  梦如初夏
    2021-01-30 03:46

    Okay, this one plagued me for a LONG time. I have made far too many designs that have extra padding on the right, allowing for IEs complete disregard for their own scrollbar.

    The answer is: nest two divs, give them both hasLayout, set the inner one to overflow.

    
    
    

    http://www.satzansatz.de/cssd/onhavinglayout.html
    Go there to read more about having layout

    提交回复
    热议问题