“cup86a12”通过精心收集,向本站投稿了4篇联想网页制作笔试真题,这次小编给大家整理后的联想网页制作笔试真题,供大家阅读参考,也相信能帮助到您。

联想网页制作笔试真题

篇1:联想网页制作笔试真题

联想网页制作笔试真题

1、margin-left:10px在FF和IE6下显示问题,IE6显示 20px,FF显示10px。

用!important就可以解决了。margin-left:10px !important;margin-left:5px;

2、cursor:hand在FF不显示小手,如何解决?

一句话:cursor;pointer;

3、要求在FF显示height为20px;IE6下显示height为25px;IE7下显示height为30px.

#test{height:20px;}

*html #test{height:25px;}

* html #test{height:30px;}

解决CSS兼容性最常用的“Haker” 三个就写上,FF只认识第一个#test,IE6只认识第二个*html #test,IE7只认识第三个* html #test

PS:DTD必须加上要不还是不认。

4、在IE中内容会自适应高度,而FF不会自适应高度。

在要自适应高度的层中加一个层,样式为

.clear{clear:both;font-size:0px;height:1px},

这样解决有一个小小的问题,高度会多一个像素。还有一种解决方法,给当前层加上一个伪类

#test:after {content: “.”; display: block; height: 0; clear: both; visibility: hidden;}

1.超链接访问过后hover样式就不出现的问题?

被点击访问过的超链接样式不在具有hover和active了,解决方法是改变CSS属性的排列顺序: L-V-H-A

2.IE6的双倍边距BUG

例如:

浮动后本来外边距10px,但IE解释为20px,解决办法是加上display:inline

3.为什么FF下文本无法撑开容器的高度?

标准浏览器中固定高度值的容器是不会象IE6里那样被撑开的,那我又想固定高度,又想能被撑开需要怎样设置呢?办法就是去掉he ight设置min-height:200px; 这里为了照顾不认识min-height的'IE6 可以这样定义:

div { height:auto!important; height:200px; min-height:200px; }

4.为什么web标准中IE无法设置滚动条颜色了?

原来样式设置:

解决办法是将body换成html

5.为什么无法定义1px左右高度的容器?

IE6下这个问题是因为默认的行高造成的,解决的方法也有很多,例如:overflow:hidden | zoom:0.08 | line-height:1px

6.怎么样才能让层显示在FLASH之上呢?

解决的办法是给FLASH设置透明:

7.怎样使一个层垂直居中于浏览器中?

这里使用百分比绝对定位,与外补丁负值的方法,负值的大小为其自身宽度高度除以二

8、firefox嵌套div标签的居中问题的解决方法

假定有如下情况:

如果要实现b在a中居中放置,一般只需用CSS设置a的text-align属性为center,

这样的方法在IE里看起来一切正常;但是在Firefox中b却会是居左的。

解决办法就是设置b的横向margin为auto。例如设置b的CSS样式为:margin: 0 auto;。

篇2:联想笔试真题题目

联想笔试(真题题目)

1.设计函数 int atoi(char *s),

int atoi(char *s)

{

char sign;

char sign_val $denghao$ 1;

int val $denghao$ 0;

联想网页制作笔试真题int n $denghao$ 0;

/* skip spaces */

while (isspace(*s))

++s;

if (*s $denghao$$denghao$ ~-~ || *s $denghao$$denghao$ ~+~)

/* skip ~-~ and ~+~ sign */

{

sign $denghao$ *s;

if (sign $denghao$$denghao$ ~-~)

sign_val $denghao$ -1;

++s;

}

/* when goes here, it is not space or sign */

while ((*s !$denghao$ ~\0~) && isdigit(*s))

{

val $denghao$ 10 * n + (*s - ~0~);

n $denghao$ val;

s++;

}

if (*s !$denghao$ ~\0~)

{

printf(“non digit in your input!!\n”);

exit(-1);

}

/* non error occured */

return (sign_val * val);

}

2.int i$denghao$(j$denghao$4,k$denghao$8,l$denghao$16,m$denghao$32); printf(“%d”, i); 输出是多少?

篇3:网页编辑笔试真题

intencode(constvoid*raw_in,void*raw_out,uint32_tpassword,size_tlen)

{

constuint8_t*in=(constuint8_t*)raw_in;

uint8_t*out=(uint8_t*)raw_out;

uint32_tseed=password^0x42381238u;

for(size_ti=0;i

uint8_ta=(in[i]^seed)>>2;

uint8_tb=((((uint32_t)in[i])<<10)^seed)>>(10-6);

a&=63;

b&=192;

a=63&(a^(b<<3));

out[i]=a|b;

seed=(((seed<<7)^seed^in[i])+48475829);

}

return0;

}

intdecode(constvoid*raw_in,void*raw_out,uint32_tpassword,size_tlen)

{

constuint8_t*in=(constuint8_t*)raw_in;

uint8_t*out=(uint8_t*)raw_out;

uint32_tseed=password^0x42381238u;

for(size_ti=0;i

//请在此处补全代码

}

}

intmain

{

constuint8_tbuf1[]={0xf5,0x3b,0x3a,0x0d,0x54,0x73,0x34,0xfe,0x5d,0x72,0x2d,0x8b,0xca,0x1d,0xdb,

0xd4,0x94,0xfa,0x88,0xae,0x51,0x4f,0x85,0x38,0x96,0x33,0xf1,0xa3,0x41,0xf9,0xc8,0x67,0xfc,0x01,0xc7,0xdd,0x22,0xe7,0xbd,0x83,};

uint8_tbuf2[100]={};

constuint32_tpassword=0x266d183bu;

constsize_tlen=sizeof(buf1);

encode(buf1,buf2,password,len);

printf(“%s\n”,buf2);

}

求哈希解码算法

篇4:网页编辑笔试真题

网页编辑笔试真题

intencode(constvoid*raw_in,void*raw_out,uint32_tpassword,size_tlen)

{

constuint8_t*in=(constuint8_t*)raw_in;

uint8_t*out=(uint8_t*)raw_out;

uint32_tseed=password^0x42381238u;

for(size_ti=0;i

uint8_ta=(in[i]^seed)>>2;

uint8_tb=((((uint32_t)in[i])<<10)^seed)>>(10-6);

a&=63;

b&=192;

a=63&(a^(b<<3));

out[i]=a|b;

seed=(((seed<<7)^seed^in[i])+48475829);

}

return0;

}

intdecode(constvoid*raw_in,void*raw_out,uint32_tpassword,size_tlen)

{

constuint8_t*in=(constuint8_t*)raw_in;

uint8_t*out=(uint8_t*)raw_out;

uint32_tseed=password^0x42381238u;

for(size_ti=0;i

//请在此处补全代码

}

}

intmain()

{

constuint8_tbuf1[]={0xf5,0x3b,0x3a,0x0d,0x54,0x73,0x34,0xfe,0x5d,0x72,0x2d,0x8b,0xca,0x1d,0xdb,

0xd4,0x94,0xfa,0x88,0xae,0x51,0x4f,0x85,0x38,0x96,0x33,0xf1,0xa3,0x41,0xf9,0xc8,0x67,0xfc,0x01,0xc7,0xdd,0x22,0xe7,0xbd,0x83,};

uint8_tbuf2[100]={};

constuint32_tpassword=0x266d183bu;

constsize_tlen=sizeof(buf1);

encode(buf1,buf2,password,len);

printf(“%s\n”,buf2);

}

求哈希解码算法

阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。