腾讯招聘设计类笔试试题

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

腾讯招聘设计类笔试试题

1. 为div设置类a与b,应编写HTML代码- _________。

2. 设置CSS属性clear的值为_both___________时可清除左右两边浮动。

3. ____li________标签必须直接嵌套于ul、ol中。

4. CSS属性_____margin_______可为元素设置外补丁。

5. 设置CSS属性float的值为___none_________时可取消元素的浮动。

6. 文字居中的CSS代码是____text-align:center________。

1. 下列哪个样式定义后,内联(非块状)元素可以定义宽度和高度( C )

A. display:inline

B. display:none

C. display:block

D. display:inheric

2. 选出你认为最合理的定义标题的方法( C )

A. 文章标题

B.文章标题

C.文章标题

D. 文章标题

3. br标签在XHTML中语义为( A )

A.换行

B.强调

C.段落

D.标题

4. 不换行必须设置( AC )

5. 在使用table表现数据时,有时候表现出来的会比自己实际设置的宽度要宽,为此需要设置下面哪些属性值( AD )

A. cellpadding=”0″

B. padding:0

C. margin:0

D. cellspacing=”0″

1. CSS属性font-style 用于设置字体的粗细。 ( × )

2. CSS属性overflow用于设置元素超过宽度时是否隐藏或显示滚动条。 ( √ )

3. 在不涉及样式情况下,页面元素的优先显示与结构摆放顺序无关。 ( × )

4. 在不涉及样式情况下,页面元素的优先显示与标签选用无关。 ( √ )

5. display:inline兼容所有的浏览器。 ( √ )

6. input属于窗体元素,层级显示比flash、其它元素都高。 ( × )

1. 写出ul、ol、dl三种列表的html结构。

答:

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();

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();

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() no-repeat fixed 0

0;

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

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

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

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

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

代码:

Don’t buy these electronics used

Money may be tight, but you may kick yourself for purchasing these electronics secondhand.

/>

Even when the price is low, the risk may be too high.

/>

src=””>

href=”” target=”_blank”>home

href=”” target=”_blank”>content

答:

Don’t buy these electronics used

Money may be tight, but you may kick yourself for

purchasing these electronics secondhand.

Even when the price is low, the risk may be too high.

src=""

alt="album"

/>

href=""

rel="external"

title="home">home

href=""

rel="external"

title="content">content

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

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

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

相关文档
最新文档