thinkphp's css is placed in the "/public/static" folder; for example, when using the thinkphp5 template, you can place the css and other effect files that need to be introduced directly under "/public/static/" Just go to the corresponding directory.
The operating environment of this tutorial: windows7 system, thinkphp v5.0&&css3 version, DELL G3 computer.
Related recommendations: thinkphp
ThinkPHP was born to simplify enterprise-level application development and agile WEB application development. ThinkPHP can support server environments such as windows/Unix/Linux.
In the thinkphp5 framework, static files such as images and css are specified to be placed in the /public/static
folder.
When using the template of thinkphp5, you can directly place the css and other effect files that need to be introduced in the corresponding directory under /public/static/, and use them directly when using the template file
<link href="/static/admin/css/style.min.css?v=4.1.0" rel="stylesheet">
or
{load file="/static/admin/css/bootstrap.css"}
and other methods are introduced, but if the directory where these files are located is changed, a lot of places in the code will be changed.
Here you can add
//模板引入js,css,img路径常量设置 'view_replace_str' => [ '__CSS__' =>'/static/admin/css', '__JS__' =>'/static/admin/js', '__IMG__' =>'/static/admin/img', '__FONT__' =>'/static/admin/img', ]`directly to the config.php file under the application configuration file (/application/admin)
The above is the detailed content of Where to put thinkphp css. For more information, please follow other related articles on the PHP Chinese website!

The article discusses ThinkPHP's built-in testing framework, highlighting its key features like unit and integration testing, and how it enhances application reliability through early bug detection and improved code quality.

Article discusses using ThinkPHP for real-time stock market data feeds, focusing on setup, data accuracy, optimization, and security measures.

The article discusses key considerations for using ThinkPHP in serverless architectures, focusing on performance optimization, stateless design, and security. It highlights benefits like cost efficiency and scalability, but also addresses challenges

The article discusses implementing service discovery and load balancing in ThinkPHP microservices, focusing on setup, best practices, integration methods, and recommended tools.[159 characters]

ThinkPHP's IoC container offers advanced features like lazy loading, contextual binding, and method injection for efficient dependency management in PHP apps.Character count: 159

The article discusses using ThinkPHP to build real-time collaboration tools, focusing on setup, WebSocket integration, and security best practices.

ThinkPHP benefits SaaS apps with its lightweight design, MVC architecture, and extensibility. It enhances scalability, speeds development, and improves security through various features.

The article outlines building a distributed task queue system using ThinkPHP and RabbitMQ, focusing on installation, configuration, task management, and scalability. Key issues include ensuring high availability, avoiding common pitfalls like imprope


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.