Home > Article > Web Front-end > What to do if the external css style does not take effect
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.
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!