笔试网页设计2

时间:2021-01-15 09:39:36 笔试题目 我要投稿

笔试(网页设计)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);

 

e)       代码五:

margin-left:20px;

margin-right:20px;

margin-bottom:5px;

margin-top:20px;

 

f)       代码六:

color:#336699;

color:#ffcc00;

 

答:

代码一:border:1px #000 solid;

代码二:background: #f00 url(background.gif) no-repeat fixed 0 0;

代码三:font:italic bold small-caps 1em/140% "lucida Grande",sans-serif;

代码四:list-style: url(image.gif) square inside;

代码五:margin:20px 20px 5px 20px;

代码六:color:#369;color:#fc0;

 

3. 修改以下代码,使其结构更加合理以及符合W3C标准。(XHTML 1.0 Strict)

4. 简述border:none以及border:0的区别,并给出使用建议。

答:border:none表示边框样式无,border:0表示边框宽度为0;当定义了border:none,即隐藏了边框的'显示,实际就是边框宽度为0.

当定义边框时,必须定义边框的显示样式.因为边框默认样式为不显示none,所以仅设置边框宽度,由于样式不存在,边框的宽度也自动被设置为0.

 

【笔试(网页设计)2】相关文章:

网页标题设计08-18

网页设计技巧08-20

网页设计课程09-30

网页设计基础09-30

网页设计构图原则08-21

网页设计配色技巧08-21

网页设计的步骤08-16

网页设计制作技巧08-16

网页设计布局技巧08-18

网页设计制作要领08-16