我发现了一个与我要问的问题完全相同的问题。
Right-floated sidebar with main content flowed around - how?
这个问题是在 2008 提出的,我想知道这是否可以在将近 3 年后用纯 CSS 完成。
公认的答案(使用 Javascript)仍然是实现此布局的唯一方法吗?
最佳答案
killer 是第 3 项(来自原始帖子):
Main content should precede the sidebar in the markup
没有它,也可以做到:http://jsfiddle.net/nJJ8p/1/
关于CSS 布局 : right-floating #sidebar which comes after #main in markup,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7125211/