Home  >  Article  >  Web Front-end  >  How to set background image using html? _html/css_WEB-ITnose

How to set background image using html? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:14:143183browse

When I write a web page in HTML, when I set the background image, it seems that the image is too big and cannot be displayed in full. What should I do if I want all the images to be displayed?
What if you want to add a slider? Thanks for the help!


Reply to discussion (solution)

Use the width and height attributes to control it. You can find it by checking the attributes.

Make the background layer bigger and the size is the same as the picture.

Use background for the background image. -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