Home  >  Article  >  Web Front-end  >  js method to set text color sample code

js method to set text color sample code

怪我咯
怪我咯Original
2017-07-07 14:58:213276browse

This article mainly introduces the method of setting text color in js, involving related techniques of JS page element style operation. It has certain reference value. Friends in need can refer to it

The examples in this article describe js settings Text color method. Share it with everyone for your reference, the details are as follows:

<h1>aaabbbccc</h1>

It is not allowed to add any characters in the h1 tag. It can be defined through css or js, so that aaa is red, bbb is yellow, and ccc is blue





Untitled Document



<h1>aaabbbccc</h1>


The above is the detailed content of js method to set text color sample code. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn