Home > CMS Tutorial > PHPCMS > body text

How to cite images in PHPCMS?

Guanhui
Release: 2020-06-11 13:20:23
Original
2503 people have browsed it

How to cite images in PHPCMS?

PHPCMS How to cite images?

First upload the image to the images folder under statics of PHPCMS;

Path: phpcms\statics\images

Then create the img tag in the page, And specify the width and height of the img tag as the width and height of the image;

<img width="300" height="200">
Copy after login

Finally, set the src of img to {IMG_PATH} plus the image name.

<img src="{IMG_PATH}user-cover.jpg" width="300" height="200">
Copy after login

{IMG_PATH} is the path to get the image in the images file under static. Here phpcms officially provides a method to get the value, which saves us from having to go through the URL. Quotation is cumbersome.

Recommended tutorial: "PHPCMS Tutorial"

The above is the detailed content of How to cite images in PHPCMS?. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!