Home  >  Article  >  CMS Tutorial  >  How to cite images in PHPCMS?

How to cite images in PHPCMS?

Guanhui
GuanhuiOriginal
2020-06-11 13:20:232462browse

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">

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

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

{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!

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