"."/> ".">

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

What should I do if php cannot call css?

藏色散人
藏色散人Original
2020-08-25 10:19:142821browse

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

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>

View the source code in the browser:

| 
| | | | | | | | | | | | | | | | | | | | | | | | | | | Document | | | | | | | | | | | | | | | |

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!

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