how to change word color in php

藏色散人
Release: 2023-02-28 22:22:01
Original
7061 people have browsed it

how to change word color in php

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"

how to change word color in php

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

how to change word color in php

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

how to change word color in php

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

how to change word color in php

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;

how to change word color in php

#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.

how to change word color in php

how to change word color in php

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template