Home > Web Front-end > CSS Tutorial > How to achieve text external glow effect in css

How to achieve text external glow effect in css

王林
Release: 2020-07-07 17:11:51
forward
4777 people have browsed it

How to achieve text external glow effect in css

You can use the text-shadow attribute to achieve the text outer glow effect.

(Recommended tutorial: css quick start)

Code example:

<!DOCTYPE html>
<html>
<head>
<style>
h1
{
text-shadow: .2rem 0rem .5rem red,-.2rem 0rem .5rem red,0rem .2rem .5rem red,0rem -.2rem .5rem red;
}
</style>
</head>
<body>
 
<h1>文本阴影效果!</h1>
 
</body>
</html>
Copy after login

Effect:

How to achieve text external glow effect in css

The above is the detailed content of How to achieve text external glow effect in css. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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