筆試(網頁設計)2

才智咖 人氣:1.21W


四、用心想一想,你一定是生活中的智者! (每題9分,共36分)

筆試(網頁設計)2

1. 寫出ul、ol、dl三種列表的html結構。

答:

 


<ul>   <li> </li> </ul> <ol>   <li> </li> </ol> <dl>   <dt> </dt>   <dd> </dd>
</dl>
 

2. 將以下CSS程式碼進行縮寫,注意要符合縮寫的`規範

a)       程式碼一:

border-width:1px;

border-color:#000;

border-style:solid;

 

b)       程式碼二:

background-position:0 0;

background-repeat:no-repeat;

background-attachment:fixed;

background-color:#f00;

background-image:url(background.gif);

 

c)         程式碼三:

font-style:italic;

font-family:"Lucida Grande",sans-serif;

font-size:1em;

font-weight:bold;

font-variant:small-caps;

line-height:140%;

 

d)       程式碼四:

list-style-position:inside;

list-style-type:square;

list-style-image:url(image.gif);

 

TAGS:網頁 筆試