一面:面试三个方面HTMLCSS、JS
HTMLCSS
- DOCTYPE的作用以及混杂模式下具体表现
- 告知浏览器以什么样的文档类型来解析这个文档
- 混杂模式以宽松的向后兼容的方式显示,模拟老式浏览器的行为;主要是盒模型的区别
- 具体的兼容性问题及如何解决
- png24的图片在IE6下出现背景,转换为PNG8
- 浏览器的默认内外边距不同,设置 * { margin: 0; padding: 0;}
- ie6双外边距BUG,元素浮动后,如果设置了margin-left或margin-right,则外边距会加倍,设置
_display: inline
即可
- 块级元素行内元素区别
- CSS选择器权值
/* count 1 if the declaration is from is a 'style' attribute rather than a rule with a selector, 0 otherwise (= a) (In HTML, values of an element's "style" attribute are style sheet rules. These rules have no selectors, so a=1, b=0, c=0, and d=0.)
* count the number of ID attributes in the selector (= b)
* count the number of other attributes and pseudo-classes in the selector (= c)
* count the number of element names and pseudo-elements in the selector (= d)
*/
- 定位
JS
- 作用域
- this
- 内存泄露
二面:
与之前面试以基本知识为主,这次的面试以介绍经历与其中的具体技术为主。最后三个笔试题分别考察url的提取、有序数组的操作与状态方程。
三面:
三面以介绍自己为主,这部分自己做的还是很差,很多东西说的太笼统。兴趣、爱好、有成就感的事等等。这次面试的最后以一道笔试题为结束。不得不说,这道笔试题答的太差了。首先是思考的不深入,太急躁了,思考了一步就说出来了,应该整体思考完毕再说。