Interview 2 (daily punch)

1.css way to introduce pattern, which has several?

    1 "<link href =" "> introduced externally style

    2 "<div style =" "> introduced into the </ div> OK

    3 "<head> style introduced inside

        <style></style> 

      </head>

2. Talk about the priority comparing various css selectors?

    !important >行内style  > #id > .class > div

3.css3 What's new advanced properties?

  transition to the transition of property takes time motion curve start time

  transfrom

  box-shadow

  border-radius

  name of the custom animation from animated motion animation duration frequency curve Plays reverse

  outline

4.html5 What are the new label?

  header

  are not  

  video  

  audio

  section

  aside

  footer

  menu

  section

The difference 5.undefined and null?

  undefined undefined,

  null is defined, but no assignment.

6.window.onload and $ (document) .ready () What is the difference?

  A page can have multiple $ (document) .ready () method, multiple methods can be performed, which is jquery, it does not wait for the picture to load, just waiting for pages to load. (It is shorthand for $ (function () {}));

  And a page can have only one window.onload = function () {}, if a write, the latter will overwrite the previous, this is js, it has to wait for the page to load, but also wait for the picture to load after completion carried out.

 

  

  

Guess you like

Origin www.cnblogs.com/hou-yuan-zhen/p/11697557.html