網頁製作 第六章測試

第1部分 總題數: 5

  1. 【單選題】 (2分)
    下面選項中,( )可以設置網頁中某個標籤的右外邊距爲10像素。
    A. margin:10px 0 0 0;
    B. padding-right:10px;
    C. margin:0 10px;
    D. margin:0 10 0 0px;
    本題總得分2分
    在這裏插入圖片描述
  2. 【單選題】 (2分)
    閱讀下面HTML代碼,如果期望tabs位於box容器的右下角,則需要添加的CSS樣式是( )。
    A. #box { position:relative; } #tabs { position:absolute; right:0; bottom:0; }
    B. #tabs { position:absolute; right:0; bottom:0; }
    C. #box { position:relative; } #tabs { position:right bottom; }
    D. #tabs { position:relative; right:0; bottom:0; }
    本題總得分2分
    在這裏插入圖片描述
  3. 【單選題】 (2分)
    在HTML頁面中,要通過無列表符號實現橫向的導航菜單,不需要使用到的CSS屬性是( )。
    A. z-index
    B. float
    C. list-style
    D. padding
    本題總得分2分
    在這裏插入圖片描述
  4. 【單選題】 (2分)
    CSS盒子模型中表示內容與邊框間的距離的屬性爲( ),表示盒子與其盒子之間的距離的屬性爲( )。
    A. padding margin
    B. margin border
    C. padding border
    D. margin padding
    本題總得分2分
    在這裏插入圖片描述
  5. 【單選題】 (2分)
    在網頁中有一個id爲content的div,下面( )正確設置它的寬度爲200像素,高度爲100像素,並且向左浮動。
    A. #content{width:200px;height:100px;clear:left;}
    B. #content{width:100px;height:200px;float:left;}
    C. #content{width:200px;height:100px;float:left;}
    D. #content{width:100px;height:200px;clear:left;}
    本題總得分2分
    在這裏插入圖片描述
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章