How to set the color of some fonts in div with span css
This article mainly introduces how to use span css to set part of the font color within div related knowledge, the content is detailed and easy to understand, the operation is simple and fast, with a certain reference value, I believe that after reading this article on how to use span css to set part of the font color in div will have a harvest, let's take a look.
Example code (the full version includes HTML and CSS. The following code can be copied directly)
Span configures a piece of pen and ink with consistent colors CSS5div {color:#000} p {color:#F00} .red {color:#F00} # blue {color:#06F} Welcome to CSS5 to further study CSS technology and harness DIV CSS inspiration
This case is for a paragraph of calligraphy, in which some calligraphy is configured with different tones. Use the SPAN tag to do this.
Directly use span for text and then write CSS directly to achieve different font colors.
This is the end of the article on "how to use span css to set some font colors in div". Thank you for reading! I believe that everyone has a certain understanding of "how to use span css to set some font colors in div". If you want to learn more, you are welcome to follow the industry information channel.