2015.3.14 (Knowledge of the home page and pure CSS compatible IE6 implementation of the Response drop-down menu)

Source: Internet
Author: User

Last night wrote a knowledge of the home exercise, only completed the upper part of the exercise. The lower half makes a purely CSS responsive drop-down menu (compatible with IE6).

It can be seen that the two characters under the word is cut down, a little chromatic aberration ... The code is as follows:

JS is only used to get the width of the viewable area.

function Setindex () {
var commonwidth = $ (window). Outerwidith;
var commonwidth = $ (window). outerheight;
$ (". Backtitle"). CSS ("width" commonwidth);
}

HTML part of the code:

The core code of the main drop-down menu in the CSS section:

A purely CSS-responsive drop-down menu this mainly uses the Visibility property of CSS. It also experimented with another HTML5+CSS3 response drop-down menu. But if the Web page uses HTML5 and CSS3, is it not necessary to consider the lower version of the browser?

Or to determine what kind of browser, and then for each browser incompatible features to find a solution, the lower version of the browser to throw away or prompt users to upgrade?

This drop-down menu is not satisfactory, as if it were the layout of the menu's main selection (headline) and drop-down menu. Feeling or not. Is it related to the Clear:both attribute?

Write and delete effect no change, I deleted ...

2015.3.14 (Knowledge of the home page and pure CSS compatible IE6 implementation of the Response drop-down menu)

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.