- 下列那項技術可以用于幫助網頁設計時使頁面具有統一、專業的外觀?
A. HTML
B. DHTML
C. CSS
D. URL
哪個HTML標簽可用來定義內部樣式表?
A.<style>
B.<script>
C.<css>
哪個HTML屬性可用來定義內聯樣式?
A.font
B.class
C.styles
D.style
在HTML文檔中,引用外部樣式表的正確位置是?
A.文檔的末尾
B.<head>部分
C.文檔的頂部
D.<body>部分
如何為所有的
<h1>
元素添加背景顏色?
A.h* all {background-color:#FFFFFF}
B.h1{background-color:#FFFFFF}
C.all.h1 {background-color:#FFFFFF}
下列哪個選項的CSS語法是正確的?
A.body:color=black
B.{body:color=black(body}
C.body{color: black}
D.{body;color:black}
如何在CSS文件中插入注釋?
A.// this is a comment
B.// this is a comment
C./*this is a comment */
D.' this is a comment
CSS如何改變某個元素的文本顏色?
A.text-color:
B.color:
C.fgcolor:
D.text-color=
以下的CSS中,可使所有
<p>
元素變為粗體的正確語法是?
A.<p style="font-size:bold">
B.<p style="text-size:bold">
C.p{font-weight:bold}
D.p {text-size:bold}
哪個CSS屬性可控制文本的尺寸?
A.font-size
B.text-style
C.font-style
D.text-size
將一個
div
在網頁中水平居中的方式是什么?( )
A.text-align:center;
B.margin:0 auto;
C.line-height:center;
D.line-height:middle;
如何使文本以大寫字母開頭?
A.text-transform:capitalize
B. 無法通過CSS來完成
C.text-transform:uppercase
css如何改變元素的字體?
A.font=
B.f:
C.font-family:
如何改變元素的左邊距?
A.text-indent:
B.margin-left:
C.margin:
D.indent:
如何產生帶有正方形的項目的列表?
A.list-type: square
B.list-style-type: square
C.type: square
D.type: 2
如何設置鏈接的鼠標經過和已訪問顏色?( )
A.a:hover,a:visited
B.a;hover,a:active
C.a:visited,a:hover
D.a:link,a:hover
CSS中,用于控制行首縮進的樣式是()
A.text-decoration
B.text-align
C.line-height
D.text-indent
粗體的CSS屬性設置是?( )
A.font-weight
B.font-bold
C.font-width
D.font-style
CSS中控制外邊距的屬性是( )
A.margin
B.background
C.border
D.padding
如何顯示沒有下劃線的超鏈接( )
A.a {text-decoration:no underline}
B.a {text-decoration:none}
C.a {underline:none}
D.a {decoration:no underline}