笔试(网页设计)2


四、用心想一想,你一定是生活中的智者! (每题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);