search
HomeCMS TutorialPHPCMSHow to cite images in PHPCMS?

How to cite images in PHPCMS?

Jun 11, 2020 pm 01:20 PM
phpcms

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  src="/static/imghwm/default1.png"  data-src="{IMG_PATH}user-cover.jpg"  class="lazy"     style="max-width:90%"  style="max-width:90%" alt="How to cite images in PHPCMS?" >

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

<img  src="/static/imghwm/default1.png"  data-src="{IMG_PATH}user-cover.jpg"  class="lazy"      style="max-width:90%"  style="max-width:90%" alt="How to cite images in PHPCMS?" >

{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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Clair Obscur: Expedition 33 - How To Get Perfect Chroma Catalysts
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft