网站建设期末考试复习卷.docxVIP

  • 20
  • 0
  • 约4.97千字
  • 约 5页
  • 2021-03-21 发布于天津
  • 举报
htmlJavascript_css 试卷 考试时间:90 分钟 1、单选题(22分) 下列哪个标签是定义标题的(A) A、hl B、hr C、hw D、p html中的注释标签是(C) A、— B、—! — C、!■? — D、- -! alert ();的作用是:(A ) A、 弹出对话框,该对话框的内容是该方法的参数内容。 B、 弹出确认对话框,该对话框的要用户选择“确认”或“取消”。C、弹出输入对话框, 该对话框的可让用户输入内容。D、弹出新窗口。 看以 b 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,hl{color:red;} 、卜?列哪个正确的css集体声明方式() A、p; hl{color:red;} B、.one{color:red;} C、#two{color:red;} D p,hl{color:red;} 看以 b JavaScript 程序 var x=prompt( 请 输 入 1?5 的 数 字! ”, ;switch (x) case 1 :alert( one ); case 2 :alert( two”); case “3 :alert) **threeM ); case “4” :alert( “four ); case 5 :alert( five” ); default:alert(//none,/); 运行以上程序,在提示对话框屮输入“4”,依次弹出的对话框将输出:(B) A、 foucnoneB、 fourjive’none C、 five D、 five,none 8) window对象的方法中,(A)方法是用于弹出确认对话框,可让选择“确定”或“取消” A、confirmf) B、alert() C、prompt)) D、open() strong--/strong标签的作用是(D ) A、斜体B、下划线C、上划线D、加粗 网页中的空格在html代码里表示为(B) A、amp; B、nbsp; C、quot; D、lt; (□)定义锚记主要用到va标签中的(A)属性。* A、name B、target C、onclick D、on mouseover (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; } p {font-family: 20px: font-size: 800: font-weight:宋体:color:red;font-style: italic; } 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: un derline; } D、 p{text-decoration: underline; letter-spacing: 0.5em; vertical-align: left; text-align: top: } (14)用JavaScript实现打开一个新窗口,地址为abc.html,正确的方法是(A ) A、 window.open(abc.html, ”); B、window.open(“ ”,“abc.html,

文档评论(0)

1亿VIP精品文档

相关文档