A css flaw on the Windows Vista Homepage

Source: Internet
Author: User
Today, I heard that the background of the Windows Vista homepage is the Bund in Shanghai. I went to check it out.

However, a problem is found. If the window width is small, a scroll bar will appear. You need to scroll to the right of the search box to see it. When the page is rolled to the right, the ugly background pants with a black and white gradient under the background of the beach are displayed.

In fact, this background image is long enough (see figure), so the above behavior seems to be caused by the problem of the person who writes the webpage.

TakeSource codeLet's take a look.

<Div id = "wvhpa">

</Div>

# Wvhpa
{
Position: absolute;
Top: 0px;
Left: 0px;
Width: 100%;
Height: 513px;
Z-index: 0;
Background: URL (/library/Media/1033/windowsvista/images/wv_home_bkgnd_photo.jpg );
Background-repeat: No-Repeat;
}

Because the width of the body is always the window width, and the scroll bar is open by other absolute positioning elements, the above results are not ideal.

 

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.