作者:眭嘀佶毅 | 来源:互联网 | 2023-05-18 05:10
TryingtodothiswithCSSonly.尝试只使用CSS来实现这一点。HaveaCanvasontheleftsidethatIwanttoshri
Trying to do this with CSS only.
尝试只使用CSS来实现这一点。
Have a Canvas on the left side that I want to shrink both width and height as the window is resized. Want the center and right divs to shrink in height to match the canvas. Don't want center and right divs to move under the canvas.
在左边有一个画布,我想缩小宽度和高度,因为窗口是调整大小的。想要中心和右边的底板在高度上收缩以匹配画布。不要让中锋和右后卫在画布下移动。
Fiddle: https://jsfiddle.net/mrx6zk27/
小提琴:https://jsfiddle.net/mrx6zk27/
Any help would be appreciated. Expecting I will probably need Javascript to align the heights, but want to reduce Javascript as much as possible.
如有任何帮助,我们将不胜感激。预期我可能需要Javascript来对齐高度,但希望尽可能减少Javascript。
Update: Fiddle using table layout (doesn't work): https://jsfiddle.net/mrx6zk27/2/
更新:使用表布局(不工作):https://jsfiddle.net/mrx6zk27/2/。
2 个解决方案