Baidu Web front-end JavaScript programming questions and Html/css face questions

Source: Internet
Author: User
Tags object end html tags implement inheritance

Article Introduction: Pen Test, Baidu Process information Management Department Web front-end internship Research and development engineers.

Written questions, Baidu Process Information Management Department of the Web Front-End internship research and development engineers.

JavaScript Programming Questions
1. Realize the name and type of all the members in the document object of output;
2. How do I get the absolute position of a DOM element? (get element position, do not rely on frame)
3, how to use JS to generate a table?
4, the realization preload a picture, after loading completes displays in the webpage and sets its height to be 50px, the width is 50px;
5, assume that there is a 4-line TD table, the table inside the TD order upside down;
6, simulate a Hashtable class, including Add, remove, contains, length method;
7, Ajax read an XML document and parse the example;
8, JS How to implement the object-oriented and inheritance mechanism?
9, JS module packaging methods, such as how to implement private variables, can not directly assign value, only through public methods;
10, the closure of the understanding of the advantages and disadvantages of closures?
11, to the this pointer understanding, can enumerate several use situation?
12. The understanding of the function binding in JS? What two functions can a function binding use?
13, the characteristics of jquery?
14, briefly describe the asynchronous mechanism of Ajax. What are the benefits and drawbacks of Ajax?

Html/css part
1, tags on the title property and Alt attribute is what difference?
2, write out the following HTML tags: text bold, subscript, center, font
3, write out a text input box, the property is read-only, the maximum input character is 20
4, CSS left fixed, the right side of the variable layout implementation; Requirements in the source order must be left in the front.
5, pictures and text together how to center through CSS
6, please outline the CSS in the style inheritance and CSS Selector
7, please outline the priority between each selector
8. How to choose a style in the case of equal priority
9, Box model, please outline the box model
10, how to make a div background image from the top of this div 10 pixels, left 15 pixels, and do not repeat
11, how to increase the clickable area of a link, and the underline is still as long as the link?
12, the top border of an element is red, the other borders are black, the color of the text inside is blue
13, open (hide), close (show) an object. What are the display of style and the parameters of the visibility?
14, with CSS and div to achieve 3 or 2 columns of the page layout, and explain the table layout compared with what advantages and disadvantages
15, Fixed wide page two columns of content layout, try to write you know several layout code



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.