gpt4 book ai didi

html - 试图让我的跨度文本加粗并使用更大的字体

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

我试图让我的 span 变得粗体,并且使用与我的段落不同的字体。 CSS 已正确链接到我的 html。

span.bold {
font-size: 20px;
font-weight: 700;
}

p {
font-size: 16px;
color: black;
font-family: sans-serif;
padding: 22px;
max-width: 60%;
display: inline-block;
margin-top: 0px;
}
<p align="center">
<span="bold">Welcome to Coding Club for Web Developers</span> <br> Coding Club web developers is specifically designed to teach the basics of making a website by learning HTML, Javascript, and CSS. Using Discord, we talk with our team to learn from each other and
to design for our upcoming projects. As a beginner or an amateur, you'll learn everything you need to know about Web Development. To practice, you can go to W3Schools, Sololearn, or Codecademy. <br>

最佳答案

你需要指定class关键字span=bold没有任何意义

span.bold {
font-size: 20px;
font-weight: 700;
}

p {
font-size: 16px;
color: black;
font-family: sans-serif;
padding: 22px;
max-width: 60%;
display: inline-block;
margin-top: 0px;
}
<p align="center">
<span class="bold">Welcome to Coding Club for Web Developers</span> <br> Coding Club web developers is specifically designed to teach the basics of making a website by learning HTML, Javascript, and CSS. Using Discord, we talk with our team to learn from each other and
to design for our upcoming projects. As a beginner or an amateur, you'll learn everything you need to know about Web Development. To practice, you can go to W3Schools, Sololearn, or Codecademy. <br>

关于html - 试图让我的跨度文本加粗并使用更大的字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47145813/

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