Home  >  Article  >  Web Front-end  >  Novice, please help me, set img tag_html/css_WEB-ITnose

Novice, please help me, set img tag_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:23:301490browse

html

How to set the img tag so that the image fits the img size exactly? ? There are height and width attributes that can set the image size
Who does it mean that the image fits the img size exactly? There are height and width attributes that can set the image size

That is, no matter how big or small the image is, it can be displayed exactly in the img

Who does it mean that the image exactly fits the size of the img? There are height and width attributes that can set the image size

. That is, no matter how big or small the image is, it can be displayed exactly in the img

I don’t understand what is in the img



What does it mean that the picture fits exactly into the img size? There are height and width attributes that can set the image size
That is, no matter how big or small the image is, it can be displayed exactly in the img
Are you saying that there is a parent container outside the img, and then the size of the image is consistent with Same as the parent container?

Just don’t set the width and height of img. The default of img is the width and height of the image.

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