它像我期望的那样绘制:

 ______________________topofpage __________________________
 anything.gif                            rightbox2 rightbox
 __________________________________________________________


但是,如果屏幕很小或将浏览器调整为足够小的尺寸,则会发生以下情况:

 ______topofpage _____
 anything.gif rightbox
 _____________________
 rightbox2


如果更小,则会发生以下情况:

 ____topofpage ___
   rightbox
 _________________
 anything.gif
 rightbox2


如果屏幕/浏览器的大小小于内容的大小,这就是我最想发生的事情:

  __________topofpage____________

  anything.gif rightbox2 rightbox
  _______________________________

最佳答案

给出宽度单位为%而不是'px'。

关于html - CSS:我不希望容器相互移动,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/29967994/

10-09 14:50