
How to change the color of words in php?
How to change the font color when the variable mouse expires in PHP
First create a new php page named color.php with the title How to make the font color change in PHP The font color changes when the variable mouse expires
Recommended: "PHP Tutorial"

##Add
< to the body of the page ;/div>And add style div1, add "font color change" in the div

Add style.div1 to the page, set width: 400px; height: height: 500px; and set the initial word color to black and the font size to 18px

In the style setting when the mouse passes over, the color of the characters when the mouse passes is red# ff00000 , the font size changes from 18px to 24px

In order to distinguish it more clearly when the mouse passes by, set the border of the div to be blue when the mouse passes by border:2px solid # 00ffff;

#After editing, open the page in the local server and test whether the text changes color when the mouse passes over it, the font size becomes 24px, and the border can also be colored. If Once changed, the setting is successful.


The above is the detailed content of how to change word color in php. For more information, please follow other related articles on the PHP Chinese website!