- 51
- 0
- 约5.25千字
- 约 5页
- 2021-01-28 发布于贵州
- 举报
试卷html_javascript_css
试卷
html_javascript_css
考试时间: 90
分钟
1、单选题 (22 分)
下列哪个标签是定义标题的( A) A、h1 B、hr C、 hw D、 p
html 中的注释标签是( C )
A、-- -- B、--! -- C、!
D、 !
alert ();的作用是:(A )
A、弹出对话框,该对话框的内容是该方法的参数内容。
B、弹出确认对话框,该对话框的要用户选择“确认”或“取消”。 C、弹出输入对话框, 该对话框的可让用户输入内容。 D、弹出新窗口。
看以下 JavaScript 程序var num; num=5+true;
问:执行以上程序后, num 的值为( D )
A、true B、false C、5 D、6
、下列哪种方式是用类选择器定义样式的( B)
A、p{color:red;} B、.one{color:red;} C、#two{color:red;} D、p,h1{color:red;}
、下列哪个正确的 css集体声明方式()
A、p; h1{color:red;} B、.one{color:red;} C、#two{color:red;} D、 p,h1{color:red;}
看以下 JavaScript 程序
var x=prompt( “请输入 1-5 的数字!” ,“” ); switch (x) case“ 1” :alert(“ one” );
case “ 2”:alert( “two ”); case“ 3” :alert( “ three ” ); case “ 4”:alert( “ four ” ); cas e “ 5” :alert( “ five”);
default:alert( “ none ” );
运行以上程序,在提示对话框中输入“ 4”,依次弹出的对话框将输出 : ( B) A、four,none B、 four,five,none C、five D、five,none
8) window 对象的方法中,(A)方法是用于弹出确认对话框,可让选择“确定”或“取消”
A、confirm() B、alert() C、prompt() D、open() (9)strong /strong 标签的作用是( D )
A、斜体 B、下划线 C、上划线 D、加粗
网页中的空格在 html 代码里表示为( B ) A、amp; B、nbsp; C、quot; D、lt;
定义锚记主要用到 a标签中的( A)属性。 * A、name B、target C、onclick D、onmouseover
(12)、下列样式定义字体为宋体、字体颜色为红色、斜体、大小
(12)、下列样式定义字体为宋体、字体颜色为红色、斜体、大小
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: 宋体; }
(13)、下列样式定义字体间距为 0.5 倍间距、水平左对齐、垂直顶端对齐、有下划线正确的定义是: ( A)
A、p{text -decoration : underline ; letter -spacing: 0.5em; vertical -align:top ; text - align:left ; }
B、p{text -decoration : 0.5em; letter -spacing: underline ;vertical -align: top ; text -
align:left ; }
C、p{text -decoration : left ;letter -spacing: top ; vertical-align:0.5em; text -align: underline ; }
D、p{text -decoration : underline ;letter -spacing
您可能关注的文档
最近下载
- 《城市轨道交通 车辆空气净化装置》(征求意见稿).pdf VIP
- 腰深2井钻井工程完井总结报告全文.doc VIP
- 森林防火工程技术标准.pdf VIP
- 王则柯-博弈论教程(四版)6第四章 序贯决策博弈.pptx VIP
- 2025辽宁铁道职业技术学院单招《数学》综合提升测试卷含完整答案详解(各地真题).docx VIP
- 用水定额 第1部分:农业 DB22 T 389.1-2025.pdf VIP
- iscom5800eb光接入局端汇聚设备配置指南.pdf
- 2025ASE建议:超声引导下血管穿刺解读.pptx VIP
- 第一单元 1.1《中学生健康生活现状调查准备阶段》教案-浙科版综合实践活动七下.pdf
- ASTMA370-2024钢产品机械性能测试的方法和定义(中文版).pptx VIP
原创力文档

文档评论(0)