gpt4 book ai didi

html - 如何对齐图片下方的文字?

转载 作者:行者123 更新时间:2023-11-28 01:10:17 24 4
gpt4 key购买 nike

<分区>

我想像这样对齐图片下的文字:

right

之前我是这样的,这是错误的:

wrong

我的代码:

.test{
display:inline-block;
}
.test img{
display:block;
}
<span class="test"> 
<img src="http://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon@2.png?v=73d79a89bded&a" alt="asd" width="316" height="316">
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.
</span>

在本地主机中,它以某种方式仅将第一行与图像对齐。如何对齐所有文本?

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