如何解决有没有像“:”这样的东西,我应该在给单词着色时使用它吗? (HTML)
我正在写一段关于水果投资的文章。为了让它有经验,我根据颜色给水果词着色:
<h1> Cantaloupes </h1><br>
<p> Cantaloupes is this type of melon that can be used as a fruit,like for drinking a refresher!
They are used to make juice. It's this avocado looking fruit that has the outside as a different color.
等等。我想创建一个带有 <script>
的 <style>
属性,以便我可以为段落中“哈密瓜”的数量着色。我如何在其中使用 <style>
,如果我不能,我如何使用 <style>
来绘制“哈密瓜”字样?
解决方法
<p>
<span style="color: yellow">Cantaloupes</span> is a type of <span style="color: green">melon</span> that can be used...
</p>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。