gpt4 book ai didi

javascript - Angular : What is the best approach to make five columns?

转载 作者:太空宇宙 更新时间:2023-11-03 22:50:08 25 4
gpt4 key购买 nike

在 Angular 中将页面分成五列的最佳方法是什么?

谢谢,一定会采纳回答

最佳答案

您使用的是 React 并不重要,这是一个 CSS 问题。可能有几种方法可以解决这个问题,但您可以这样做:

HTML:

<div class='container'>
<div class='left'>left</div>
<div class='right'>right</div>
</div>

CSS:

.container {
position: relative;
}

.right {
width: 185px;
position: absolute;
top: 0;
right: 0;
border: 1px solid red;
}

.left {
margin-right: 185px;
border: 1px solid blue;
}

http://codepen.io/anon/pen/RGzbor

关于javascript - Angular : What is the best approach to make five columns?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40315726/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com