Home > Backend Development > PHP Problem > What should I do if php cannot call css?

What should I do if php cannot call css?

藏色散人
Release: 2023-03-05 07:50:02
Original
2820 people have browsed it

php cannot call css because href is a relative path. The solution is to add STATIC to the relative path. The code statement is "".

What should I do if php cannot call css?

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>
Copy after login

View the source code in the browser:

| 
| | | | | | | | | | | | | | | | | | | | | | | | | | | Document | | | | | | | | | | | | | | | |
Copy after login

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!

Related labels:
source:php.cn
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