Home >Web Front-end >CSS Tutorial >What to do if the external css style does not take effect

What to do if the external css style does not take effect

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-07-26 11:47:203222browse

Solution: 1. Complete the link attributes introduced by css; 2. Place the self-defined CSS style introduction tag after the frame style reference to ensure that it will not be framed when loading the page. cover.

What to do if the external css style does not take effect

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

Solution one:

Complete the link attributes introduced by css

Solution two:

Introduce your own defined CSS style into the tag After the bootstrap frame style is referenced, ensure that it will not be overwritten by the frame style when loading the page

<link href="../css/bootstrap.min.css" rel="stylesheet">
<!--<link rel="stylesheet" href="../css/bootstrap-theme.min.css">-->
<link href="../css/index.css" type="text/css" rel="stylesheet" charset="utf-8">

Recommended learning: css video tutorial

The above is the detailed content of What to do if the external css style does not take effect. 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