gpt4 book ai didi

html - 使span定位在P的最后一行

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

我目前正在处理布局。我需要在 p 的最后一行放置一个外部 span 元素

<p>I am here I am here I am here I am here I am here I am here </p><span>same line of the last line of paragraph </span>

是否有任何 CSS 属性来存档它?

最佳答案

p{
display:inline-block;
}

p{
float:left;
margin:0;
padding:0;
}
如果 p 元素长于一行,

将不起作用。我推荐

p{
display: inline;
}

关于html - 使span定位在P的最后一行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24569324/

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