html,JavaScript,css试题库(4)

2020-12-29 23:32

html,JavaScript,css试题库

do{

i++;

}while(i>100);

运行以上程序后,变量i的值为。

(6)看以下JavaScript程序*

for(var i=1;i<=10;i++){

if(i= =5) continue;

if(i= =8) break;

alert(i);

}

运行以上程序后,弹出的对话框依次输出的值为

(7)看以下JavaScript程序

var str1,str2,str3,str4;

str1="10.5";

str2="8";

str3=str1+str2;

alert(str3);

str4=Number(str1)+Number(str2);

alert(str4);

运行以上程序后,弹出的对话框依次输出的值为

(8)定义JavaScript函数所用的关键字是。

三、css试题库

1、单选题

(1)、下列哪种方式是用类选择器定义样式的(B)

A、p{color:red;}

B、.one{color:red;}

C、#two{color:red;}

D、p,h1{color:red;}

(2)、下列哪个正确的css集体声明方式(D)

A、p;h1{color:red;}

B、.one{color:red;}

C、#two{color:red;}

D、p,h1{color:red;}

(3)、下列样式定义字体为宋体、字体颜色为红色、斜体、大小20px、粗细800号,

正确的定义是:(A)

A、p {font-family:宋体;font-size:20px;font-weight:800;color:red;font-style:italic; }

B、p {font-family:20px;font-size:宋体;font-weight:800;color:red;font-style:italic; }

C、p {font-family:20px;font-size:800;font-weight:宋体;color:red;font-style:italic; }

D、p{font-family:800;font-size:20px;font-weight:red;color: italic;font-style:宋体; }

(4)、下列样式定义字体间距为0.5倍间距、水平左对齐、垂直顶端对齐、有下划线

正确的定义是:(A)

A、 p{text-decoration:underline;letter-spacing:0.5em;vertical-align:top;text-align:


html,JavaScript,css试题库(4).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2.1 力的概念_

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: