Get the App
SLTechnology News&Howtos  ›  Development  › 

How does css place a background image on a page

Shulou Source: shulou.com Published: 2022-06-01 12:18:46 11月17日 Update

This article mainly introduces how css places background images on the page, which is very detailed and has certain reference value. Friends who are interested must finish reading it!

Body

{

Background-image:url ('/ iCompact) egbind bgrub 03.gif'

Background-repeat:no-repeat

Background-attachment:fixed

Background-position:center

}

Hint: you need to configure the bac kilogram round-attachment property to "fixed" to ensure that this property malfunctions in Firefox and Opera.

The above is all the contents of the article "how to put background images on the page by css". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Images background pages content attributes articles values interests guys buddies talents more deformities knowledge industry information information channels channels guarantees references Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology macOS Xiaomi Docker Microsoft