gpt4 book ai didi

css - 在 Bootstrap 4 中围绕较短的列包装一列

转载 作者:太空宇宙 更新时间:2023-11-04 05:41:18 24 4
gpt4 key购买 nike

我使用的是 Bootstrap 4。我有一个简单的两列布局。右栏有目录,左栏有很多带有段落、列表、图像等的标记。我希望左栏的内容使用目录(占用较少的垂直空间)结束处的整个宽度(两列)。

就像环绕图像一样,除了环绕 <div>里面有很多东西。

这可能吗(您是否认为这是个好主意?)

最佳答案

这就是我要做的:float(是的,在 Bootstrap-4 中是 float)将 div 移到右侧,同时让 col-6 类出现在那里出色地;

这是个好主意吗?顾客永远是对的。话虽如此,通信/营销部门的许多人都有打印工作的历史......因此他们可能会出于各种原因插入实现......

期待您的反馈和“真实”答案,就像许多教授在学生尝试后所揭示的那样:)

.myDiv {
border: 1px solid red;
float: right; margin-left:5px;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">

<div class="container">
<div class="row">
<div class="col-12">

<div class="col-6 myDiv">
<h2> Right hand zone (6 col at the start) </h2>
I am using Bootstrap 4. I have a simple two column layout. The right column has a table of contents, the left column has a lot of markup with paragraphs, lists, images, and so on. I would like the content of the left column to use the whole width (of
both columns) where the table of contents (which takes less vertical space) ends. Like wrapping around an image except this is wrapping around a with lots of stuff inside. Is this possible (whether or not you think its a good idea?)</div>

<h1>Continued text (6 col at the start and then all width) </h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit... What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown
printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release
of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it? Where can I get some? There are many variations of passages of Lorem
Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything
embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined
with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris...</p>
<h3>continuing...</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...Where does it come from? Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the
undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance.
The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus
Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris...</p>
<h3>continuing further...</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit... It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less
normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem
ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris...</p>
</div>
</div>
</div>

关于css - 在 Bootstrap 4 中围绕较短的列包装一列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59204375/

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