前端工程師面試題及答案
完成面試題是前端工程師求職者在面試過程中必須經(jīng)歷的環(huán)節(jié)。下面是由學習啦小編分享的前端工程師面試題,希望對你有用。
前端工程師面試題:CSS
1. CSS樣式表根據(jù)所在網(wǎng)頁的位置,可分為?(B )
A.行內(nèi)樣式表、內(nèi)嵌樣式表、混合樣式表
B.行內(nèi)樣式表、內(nèi)嵌樣式表、外部樣式表
C.外部樣式表、內(nèi)嵌樣式表、導入樣式表
D.外部樣式表、混合樣式表、導入樣式表
2. 對于標簽,其中*代表( C )
A. 注釋的時候才用上
B. 沒有這個標簽
C. 通配符,意思是所有的標簽
3. 在CSS中下面哪種方法表示超鏈接文字在鼠標經(jīng)過時,超鏈接文字無下劃線?(B )
A. A:link{TEXT-DECORATION: underline }
B. A:hover {TEXT-DECORATION: none}
C. A:active {TEXT-DECORATION: blink }
D. A:visited {TEXT-DECORATION: overline }
4. 下面代碼片段,說法正確的是:(B )
.DIV1 { position:absolute;
line-height:22px;
height:58px;
background-color: #FF0000; }
A. Line-height:22px;修飾文本字體大小
B. position:absolute;表示絕對定位,被定位的元素位置固定
C. height:58px; 表示被修飾的元素距離別的元素的距離
D. background-color: #FF0000; 表示被修飾的元素的背景圖像
5. 關于css hack正確的是(A,B,C)
a) CSS hack的目的就是使你的CSS代碼兼容不同的瀏覽器。
b)“_”下劃線是IE6專有的hack
c)“*”星號是IE6和IE7專有的hack
d) !important IE6可以識別
6. 如何用CSS分別單獨定義IE6、7、8的width屬性。
所有瀏覽器通用 height: 100px;
IE6專用 _height: 100px;
IE6、IE7共用 *height: 100px;
IE7專用 *+height: 100px;
IE7、FF共用 height: 100px !important;
7. CSS中哪些屬性可以同父元素繼承。
所有元素可繼承:visibility和cursor。
內(nèi)聯(lián)元素可繼承:letter-spacing、word-spacing、white-space、line-height、color、font、 font-family、font-size、font-style、font-variant、font-weight、text- decoration、text-transform、direction。 塊狀元素可繼承:text-indent和text-align。
列表元素可繼承:list-style、list-style-type、list-style-position、list-style-image。
表格元素可繼承:border-collapse。
前端工程師面試題:HTML
1. 在Dreamweaver 中, 在設置各個框架屬性時, 參數(shù)Scroll 是用來設置( B )屬性的。
A. 是否進行顏色設置
B. 是否出現(xiàn)滾動條
C. 是否設置邊框?qū)挾?/p>
D. 是否使用默認邊框?qū)挾?/p>
2. 若將Dreamweaver中2個橫向相鄰的單元格合并,則兩單元格中文字會( A )
A.文字合并B.左單元格文字丟失C.右單元格文字丟失D.系統(tǒng)出錯
3. 下列標簽可以不成對出現(xiàn)的是( B)
A.〈HTML〉〈/HTML〉
B.〈P〉〈/P〉
C.〈TITLE〉〈/TITLE〉
D.〈BODY〉〈/BODY〉
4. 關于Document對象,下列敘述正確的是(AC )
a)Document對象表示瀏覽器中顯示的HTML文檔
b)Document對象的常用屬性bgcolor用來設置文檔的背景圖片
c)Document對象的常用方法getElementById()用于訪問唯一的一個元素
d)Document對象的常用方法getElementByNames()
5. 與 HTML4 比較,HTML5 廢棄了哪些元素(A, B, D)
a) frame
b)applet
c) i
d) big
前端工程師面試題:jquery
1. 在javascript中,以下哪個變量名是非法的(B )
a)Nameb)9namec)Name_ad)Name9
2. Javascript可以在以下什么地方執(zhí)行?(B )
a)服務器端的瀏覽器
b)客戶端的瀏覽器
c)在服務器端的tomcat容器里
d)在客戶端的tomcat容器里
3. 在javascript中,( B )變量在函數(shù)外聲明,并可從腳本的任意位置訪問
a)局部b)全局c)typeOfd)New
4. 關于javascript說法正確的是(B )。
a)它是面向?qū)ο蟮?/p>
b)它是基于對象的
c)它是面向過程的
d)以上說法都不正確
5. 以下哪條語句會產(chǎn)生運行錯誤(A,D )
A、varobj = ()
B、varobj = []
C、varobj = {}
D、varobj = //
6. 在javascript中,下拉列表框的(B )方法可從列表中刪除一個元素
a)Add( )b)Remove( )c)Focus( )d)blur()
7. 請選擇結果為真的表達式(C )
a)null instanceof Object
b)null === undefined
c)null == undefined
d)NaN == NaN
8. 在javascript中,String 對象的方法不包括(D )。
a)charAt()
b)substring()
c)toUpperCase()
d)Length //這個是屬性不是方法
9. 下拉菜單中,用戶更改表單元素Select中的值時,就會調(diào)用(A )事件處理程序。
a)onChange
b)onFocus
c)onMouseOver
d)onClick
在前端工程師求職者的求職面試過程中,回答面試題與進行面試自我介紹一樣重要。
前端工程師面試自我介紹范文
good morning, my name is jack, it is really a great honor to have this opportunity for a interview, i would like to answer whatever you may raise, and i hope i can make a good performance today, eventually enroll in this prestigious university in september. now i will introduce myself briefly,i am 21 years old,born in heilongjiang province ,northeast of china,and i am curruently a senior student at beijing xx uni.my major is packaging engineering.and i will receive my bachelor degree after my graduation in june.in the past 4 years,i spend most of my time on study,i have passed cet4/6 with an ease. and i have acquired basic knowledge
of packaging and publishing both in theory and in practice. besides, i have attend several packaging exhibition hold in beijing, this is our advantage study here, i have taken a tour to some big factory and company. through these i have a deeply understanding of domestic packaging industry. compared to developed countries such as us, unfortunately, although we have made extraordinary progress since 1978,our packaging industry are still underdeveloped, mess, unstable, the situation of employees in this field are awkard. but i have full confidence in a bright future if only our economy can keep the growth pace still. i guess you maybe interested in the reason itch to law, and what is my plan during graduate study life, i would like to tell you that pursue law is one of my lifelong goal,i like my major packaging and i won't give up,if i can pursue my master degree here i will combine law with my former education. i will work hard in thesefields ,patent ,trademark, copyright, on the base of my years study in department of p&p, my character? i cannot describe it well, but i know i am optimistic and confident. sometimes i prefer to stay alone, reading, listening to music, but i am not lonely, i like to chat with my classmates, almost talk everything ,my favorite pastime is valleyball,playing cards or surf online. through college life,i learn how to balance between study and entertainment. by the way, i was a actor of our amazing drama club. i had a few glorious memory on stage. that is my pride.
看過“前端工程師面試題”的人還看了: