gpt4 book ai didi

html - 在 div 中跨度类以分隔 2 个单词 html

转载 作者:太空宇宙 更新时间:2023-11-03 19:39:05 26 4
gpt4 key购买 nike

您好,我正在尝试使用跨度将 2 个词彼此分开,但它似乎不起作用。不确定是不是因为它在一个 div 中。

.500{
display:inline-block;
margin-left:300px;
}

<div id="search">
<h2>
Search</h2>
<br>

0 <span class="500"> 500 </span>
<br />
</div>

最佳答案

以字母开头您的类(class)名称: http://jsfiddle.net/5Y2Zn/

.l500{
display:inline-block;
margin-left:300px;
}

<div id="search">
<h2>
Search</h2>
<br>

0 <span class="l500"> 500 </span>
<br />
</div>

关于html - 在 div 中跨度类以分隔 2 个单词 html,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18719770/

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