The difference between CSS Background-image and layer-background-image

Source: Internet
Author: User
Layer-background-image

Grammar:

Layer-background-image:none | URL (URL)

Parameters:

None: No background map
URL: Specify a background image with an absolute or relative address

Description

Sets or retrieves the background image for the entire area of an object.

Example:

code {position:absolute; top:100px; left:300px; width:200px; border:thin solid black; Background-image:url ("COMET.J PG "); Layer-background-image:url ("bb_comet.jpg"); }

What is the difference between background-image and layer-background-image for setting layers with CSS styles?

The former is the style of the standard, the latter is only Netscape browser's own special wording, proposed to the standard.

Background-image for the entire Web page.
A layer is set up in the Web page. such as a floating block (not a window) then the background is layer-background-image.
Tell the truth the difference is not big, suggest you use background-image don't use Layer-background-image
It's not much of a big use
Layer-background-image below IE6 contains (IE6) not supported!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.