简体   繁体   中英

How do I create a full size background image with no CSS?

How do I create a full size background image with no CSS?

I don't care if the background attribute is deprecated or not, I want to use it.

If I use the plain attribute, however, the image is tiled, not scaled.

You can't.

The background attribute you want to use was superseded by CSS before the capability to scale background images was added.

There is no, obsolete or otherwise, HTML-only mechanism for scaling background images.

You can't even fake it with a foreground image because you'd need CSS to position it in the background.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM