Home >Web Front-end >Front-end Q&A >How to move pictures in html

How to move pictures in html

藏色散人
藏色散人Original
2021-05-13 11:06:0116956browse

How to move pictures in html: first create a new html file; then create a picture through the img tag; finally move the picture by setting the "style="margin: 10px 15px 20px 30px;"" style.

How to move pictures in html

The operating environment of this article: windows7 system, HTML5&&CSS3 version, DELL G3 computer

First, open the html editor and create a new html file, for example: index.html, write the basic code for the problem.

How to move pictures in html

In the How to move pictures in html tag in index.html, enter the style code: style="max-width:90%".

How to move pictures in html

#The browser runs the index.html page, and the image is successfully moved.

How to move pictures in html

Recommended study: "HTML Video Tutorial"

The above is the detailed content of How to move pictures in html. 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
Previous article:The meaning of html tagsNext article:The meaning of html tags