gpt4 book ai didi

html - 如何在同一个

中设置两种不同的字体大小

转载 作者:技术小花猫 更新时间:2023-10-29 11:48:51 25 4
gpt4 key购买 nike

我有一段 HTML 代码,我坚持使用它。如何将此文本的第一部分设置为 20px 的字体大小以及 <br> 之后的文本标记为 15px 的字体大小?

或者如果我做的完全错了,如果不把它们放在不同的标签中我该怎么做

<p id="losinfo"> Los Santos: a sprawling sun-soaked metropolis full of 
self-help gurus, starlets and fading celebrities, once the envy of the
Western world, now struggling to stay afloat in an era of economic
uncertainty and cheap reality TV <br><br> Our largest open world yet
- by far - and spanning vastly diverse cultural and geographical areas,
the entire world of Grand Theft Auto V is open from the very beginning
of the game to explore. Visitors to the greater metropolis of Los Santos
and the countryside of Blaine County will encounter faded celebrities,
meth heads, party people, violent gangs, hikers, bikers and every other
manner of colorful denizen. You'll be able to traverse everywhere from
the tops of the mountains, through the streets of Los Santos and to the
depths of the ocean floor</p>

最佳答案

<p id="losinfo">Los Santos: <span id="secondText"> a sprawling sun-soaked ...</span></p>

然后在 css 中使用不同的样式 #losinfo#secondText

关于html - 如何在同一个<p>中设置两种不同的字体大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18521152/

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