Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在不使用 javascript 的情况下进行以下布局?
div parent div A div B div C
C取剩余高度
C将获得仅应在C内滚动的大内容
C 将包含一个内容很大的 D。D 应在 C 内滚动
div C div D large content
我会这样设置:
<div class="parent"> <div class="C"> <div class="A"> A's content </div> <div class="B"> B's content </div> C's content </div>/*C end*/ </div>/*parent end*/