Home >Web Front-end >CSS Tutorial >How to use external word art in css

How to use external word art in css

王林
王林forward
2020-10-29 15:56:563677browse

How to use external word art in css

Because the system comes with very few font styles, and most of them are not good-looking, I came up with the idea of ​​introducing external artistic fonts.

(Video tutorial recommendation: css video tutorial)

The method is as follows:

.shopName {
                /*使用你自己的字体*/
                font-family:fusanghu;
                font-style: oblique;
                font-size: 29px;
                font-weight: 900;
                color: brown;
            }
            /*使用前必须先定义*/
            @font-face {
                /* 字体名称随意起 */
                font-family: fusanghua;
                /*你下载字体所在的位置*/
                src: url('font/扶桑花期.ttf');
            }

Related recommendations: CSS tutorial

The above is the detailed content of How to use external word art in css. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete