我有一个问题,在我的网站上更改文本的一部分颜色。我有背景图片,其中既有红色和蓝色在它,我想写下一个标题,这将是红色的蓝色部分的背景和蓝色的红色部分的背景。我该怎么做呢?
发布于 2019-07-28 12:46:03
你可能想要这样的东西。
.red{
color: red;
}
.blue{
color: blue;
}<html>
<body>
<span class="blue">Blue letters</span> <span class="red">Red letters</span>
</body>
</html>
https://stackoverflow.com/questions/57237987
复制相似问题