gpt4 book ai didi

html - 如何在圆形轮播周围环绕文字?

转载 作者:行者123 更新时间:2023-11-28 19:23:35 26 4
gpt4 key购买 nike

<分区>

我希望我的文字环绕我的图像(样式为圆形),如 this ,但我想使用旋转木马而不是常规图像。但是,当我使用轮播时,文本会像 this 一样换行.

我用下面的代码实现了第一个:

HTML:

<div class="w-100">
<div id="circle-wrap"><img align="left" class="curve img-fluid img-profile rounded-circle mx-auto mb-2" width="300px" src="img/main.png" alt="">
<h4 align="left" class="mb-0"><br><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</h3>
</div>
</div>

CSS:

#circle-wrap .curve {
height: auto;
padding: 10px 10px 10px 10px;
float: left;
margin-right:2rem;
border-radius: 50%;
-webkit-shape-inside:circle();
shape-outside:circle();
}

这是我的轮播代码:

HTML:

<div id="carouselControls" class="carousel slide carousel-fade" data-ride="carousel" data-interval="false">
<div class="carousel-inner" role="listbox">
<div class="carousel-item active">
<img align="left" class="curve img-fluid img-profile rounded-circle mx-auto mb-2" src="img/ig.jpg">
</div>
</div>
<a class="carousel-control-prev" href="#carouselControls" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>

CSS:

#carouselControls .curve {
height: auto;
padding: 10px 10px 10px 10px;
float: left;
margin-right:2rem;
border-radius: 50%;
-webkit-shape-inside:circle();
shape-outside:circle();
}

我似乎找不到任何方法来正确地将两者结合起来。谁能帮忙?

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