php cannot call css because href is a relative path. The solution is to add STATIC to the relative path. The code statement is "".
Recommendation: "PHP Video Tutorial"
Css problem cannot be introduced using php
href Add STATIC to the relative path to solve the problem
<html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="__STATIC__/bs/css/bootstrap.min.css"> <script src="__STATIC__/bs/js/jquery.min.js"></script> <script src="__STATIC__/bs/js/bootstrap.min.js"></script> <title>Document</title> </head> <body> </body> </html>
View the source code in the browser:
|| | | | | | | | | | | | | | | | | | | | | | | | | | |
The above is the detailed content of What should I do if php cannot call css?. For more information, please follow other related articles on the PHP Chinese website!