Front-end interviewing for HTML and CSS

Source: Internet
Author: User

How to solve several IE6 bugs

1. Use display for double-sided bug float
2.3 MP problem using float caused by use of dislpay:inline-3px
3. Hyperlink hover After click fails to use the correct writing order link visited hover active
4.Ie z-index problem add position:relative to Parent
5.Png Transparent use JS code to change
6.min-height min Height! Important Solution '
7.select hiding under IE6 using IFRAME nesting
8. Why there is no way to define a width container around 1px (IE6 default row height, using over:hidden,zoom:0.08 line-height:1px)

How to optimize front-end resources

File merge, compression, cache usage, CND

What is the difference between call and. Apply?

Call Method:
Syntax: Call (Thisobj,object)
Definition: Invokes one method of an object, replacing the current object with another object.
Description: The call method can be used to invoke a method in place of another object. The call method can change the object context of a function from the initial context to a new object specified by Thisobj. If the Thisobj parameter is not provided, then the Global object is used as the thisobj.
Apply method:
Syntax: Apply (Thisobj,[argarray])
Definition: A method of applying an object that replaces the current object with another object.
Description: If Argarray is not a valid array or is not a arguments object, it will result in a TypeError. If none of the Argarray and Thisobj parameters are provided, then the Global object is used as a thisobj and cannot be passed any parameters.

Both the apply and call are the same in effect, but the two have the following differences in parameters:
For the first parameter, the meaning is the same, but for the second argument: Apply passes in an array of parameters, which is the combination of multiple parameters into an array, and call is passed in as a parameter of call (starting with the second argument). such as Func.call (FUNC1,VAR1,VAR2,VAR3) corresponding to the wording of the Apply: Func.apply (Func1,[var1,var2,var3]) The benefit of using apply at the same time is that you can directly pass in the arguments object of the current function as the second parameter of apply.

HTML5 constituent page Structure elements

    • <HEADER>: Header data representing HTML
    • <footer>: The foot area of the page
    • <nav>: Page navigation elements
    • <article>: self-contained content
    • <SECTION>: Use internal article to define areas or to place grouped content in areas
    • <aside>: Represents the sidebar content of a page

New form elements in HTML5

    1. Color
    2. Date
    3. Datetime-local
    4. Email
    5. Time
    6. Url
    7. Range
    8. Telephone
    9. Number
    10. Search

Front-end interviewing for HTML and CSS

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.