![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
在页面中使用CSS方法,实现如图所示功能。要求:(1)主题为“这是CSS”;(2)用绿色字体显示“哈尔滨工
在页面中使用CSS方法,实现如图所示功能。要求:(1)主题为“这是CSS”;(2)用绿色字体显示“哈尔滨工业大学”这个链接,网址是http://www.hit.edu.cn;(3)用红色背景、白色字体显示“文字颜色和背景颜色正确吗?”;(4)其它信息如图所示。
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)
在页面中使用CSS方法,实现如图所示功能。要求:(1)主题为“这是CSS”;(2)用绿色字体显示“哈尔滨工业大学”这个链接,网址是http://www.hit.edu.cn;(3)用红色背景、白色字体显示“文字颜色和背景颜色正确吗?”;(4)其它信息如图所示。
第1题
A.可以对页面的布局进行修改
B.可以对背景进行修改
C.可以对字体进行修改
D.可以对音乐进行修改
第2题
A.在“CSS样式”面板中单击“只显示设置属性”按钮
B.在“CSS样式”面板中单击“附加样式表”按钮
C.在“CSS样式”面板中单击“显示列表视图”按钮
D.在“CSS样式”面板中单击“显示类别视图”按钮
第3题
A.Alpha滤镜
B.Fliph滤镜
C.Glow滤镜
D.Gray滤镜
第4题
某公司电子商务网站首页如下图所示。网页制作使用了CSS技术,CSS文件style.css位于发布目录c:\website下的css目录中。
下面给出首页的部分代码。
<html>
< (1) >
<title>找东东网—找我喜欢!</title>
<link (2)=”stylesheet”(3)=”text/css” href=”(4)”/>
</head>
<body>
<form. name=searchinfo method=post nclick=”chkuser.asp”>
<input name=”textfield” type=”(5)”(6)=”请输入搜索项目” size=”70”
maxlength=”50”/>
<input type=”submit” name=”submit” value=”搜索” />
</form>
<form>
<input name=”mobile” type=”radio” value=”移动”(7)/>移动<input name=
“unicom” type=”radio” value=”联通” />联通<input name=”smart” type=”radio”
value=”小灵通”/>小灵通
</form>
……省略部分代码
</body>
</html>
请将上述HTML代码中空缺的部分补充完整。
第5题
【说明】
某大学利用VOD视频服务系统提供教学课件点播服务。该视频服务系统用ASP语言编程实现,主页文件名为“index.asp”,部分网页运行的效果如图2-13所示。程序中使用的Access数据表结构见表2-8和表2-9。
【conn.asp文档的内容】
<%
dim db,conn,connstr
db="vod.mdb"
set Conn=server.CreateObject ("ADODB.connection")
connstr="proyider=microsoft.jet.oledb.4.0;data source=" &server.MapPath ("data/"&db&"")
%>
【index.asp 文档的内容】
(2) <!--第(2)处 -->
<html>
<head>
<title>视频服务系统</title>
<style. type="text/css">
<!
td {font-size:12px;line-height:17px }
body {font-size:12px;line-height:17px }
p { margin-top:1px;margin-bottom:1px }
a:link {text-decoration:none;color:black}
a:visited {text-decoration:none;color:black}
-->
</style>
</head>
<body leftmargin="0" topmargin="0">
<!--5nclude file="head.asp" -->
<table>
<td height="30" width="367">
<%sq1="select * from item"
setrs_item=server, createobjiect ("adodb.recordset")
rs_iterm.open sq1,connstr, 1,1
response.write"<p><b><IMG nClick=over(this) title=放大 src=images/dot1.gif><a href=index.asp>全部节目</a> "
do while not rs_item.eof
response.write "<IMG nClick=over(this) title=放大stc--images/dot1.gif botder=-0><a href=index.asp?item="&rs_item ("name")
&">"&rs_item ("name") A"</a> "
(5) <!-- 第(5)处 -->
response.write "</b> "
rs hm.close%>
</td>
</table>
</div>
<div align="center">
<% dim item_type
item_type= (7) <!-- 第(7)处 -->
if item_type="" or itcrn_type ="全部节目" then
sq1="sclect * from data"
else
sq1=" (8) &
第6题
阅读以下关于网页制作和网页编程的说明,回答问题1至问题4,并将解答填入答题纸的对应栏内。
【说明】
某公司电子商务网站首页如图 2-1 所示。网页制作使用了 CSS 技术,CSS 文件style.css位于发布目录c:\website下的css目录中。
下面给出首页的部分代码。
<html>
< (1) >
<title>找东东网--找我喜欢!</title>
<link (2) ="stylesheet" (3) ="text/css" href=" (4) "/>
</head>
<body>
<form. name=searchinfo method=post nclick="chkuser.asp">
<input name="textfield" type=" (5) " (6) ="请输入搜索项目" size="70"
axlength="50" />
<input type="submit" name="submit" value=" 搜 索 " />
</form>
<form>
<input name="mobile" type="radio" value="移动" (7) />移动<input name="unicom"
pe="radio" value="联通" />联通<input name="smart" type="radio" value="小灵通" />小
灵通
</form>
……省略部分代码
</body>
</html>
【问题 1】(7分)
请将上述HTML代码中空缺的部分补充完整。
【问题 2】(3分)
网页制作人员欲设置已访问的超链接颜色为“3333CC” ,鼠标经过超链接时链接颜色变为“FFFF66” ,网页超链接的颜色为“FFFFFF” 。
请根据以上描述将下列CSS代码中空缺的部分填写在答题纸的相应位置。
a:link{
color: " (8) ";
text-decoration:none;
}
a:visited{
color: " (9) ";
text-decoration:none;
}
a:hover{
color: " (10) ";
text-decoration:underline;
}
【问题 3】(6分)
用户登录部分功能调用由位于发布目录c:\website下的login.asp文件实现,数据库
连接由conn.asp文件实现。其中,数据库文件名为 account.mdb,用户表为 actuser,用
户名字段和用户密码字段分别为act_username和 act_password。 login.asp代码如下所示,
请将空缺的部分补充完整,并填写在答题纸的相应位置。
<!--include file="conn.asp"-->
<%
sql="select * from actuser where act_username='"&username&"'"
rs.open sql,conn,1,1
if (11) then
response.write "<script>alert('登录失败');history.back();</script>"
response.end
else
if rs("act_password")<>password then
response.write "<script>alert('登录失败');history.back();</script>"
(12)
end if
session("admin")=username
response.write"<script>alert('登录成功');location.href='index.asp'</script>"
(13)
%>
【问题 4】(4分)
当多个用户成功登录到网站时,系统使用存储在 (14) 的 (15) 来区分每个用
户的连接。
(14)备选答案:
A.客户机内存中 B.服务器内存中
C.客户机硬盘中 D.服务器硬盘中
(15)备选答案:
A.session
B.cookies
C.server
D.application
第7题
[说明]
某娱乐公司用ASP实现了一个用于点播电影的网页,主页文件名为“index.asp”,网页运行的效果如下图所示。程序中使用的Acess数据表结构如下表所示。
[conn.asp文档的内容]
<%
dim db,conn,connstr
db="film.mdb"
set Corm =server. CreateObject("ADODB.Connection")
connstr="provider=microsoft.jet, oledB.4.0;data source="& server. MapPath("data/"&db&"")
conn. Ooen connstr 第(1)处
%>
[index. asp文档内容]
(2)
<html>
<head>
<title>电影</title>
<style. type="text/css">
<!--
td { font-size: 12px; line-height: 17px }
body { font-size: 12px; line-height: 17px }
p { margin-top: lpx; margin-bottom: lpx }
a:link { text-decoration: none; color: black }
a:visited { text-decoration: none; color: black }
a:active { text-decoration: none; color: blue } 第(3)处
-->
</style>
</head>
<body lefimargin="0" topmargin="0">
<!--include file="heaD.asp"-->
<div align="center"> 第(4)处
<table>
<td height="30" width="367">
<%sql="select * from item"
set rs_item=server, createobj ect("adodB.recordset")
rs_item, open sql,connstr, 1,1
response.write "<p><b><IMG nClick=over(this) title=放大 src=images/dot 1.gif><a hre=index.asp>全部电影</a> "
do while not rs_item, eof
response.write "<IMG nClick=over(this) title=放大 src=images/dot1.gif borde=0><a href=index.asp?item="&rs_item
("name") &">"&rs_item("name")&"</a> "
(5)
loop 第(6)处
response.write "</b> "
rs_item.close %>
</td>
</table>
</div>
<div align="eenter">
<% dim item_type
item_type= (7)
if item_type="" or item_type="全部电影" then
sq1="select * from data"
else
sql=" (8) "
end if
set rs=server, createobject("adodB.reeordset")
rs.open sql,connstr, 1,1
%>
<table>
<tr>
<rd width="125" background="imagesfog.gif"height="30">
<IMG nClick=over(this) title=放大 border="0" src="images/biao_le ft.gif" width="15" height="15">影片名字</td>
<td width="115" baekground="images/bg.gif"height=-"30" align="center">播放</td>
<rd width="64" background="images/bg.gif"height="30" align="center"> 电影类型</td>
<td width="58" baekground="images/bg.gif"height=-"30" align="eenter">播放格式</td>
<td width="43" baekground="im?ges/bg.gif"height"30"align="center">点击</td>
<td width "70" baekground="imagesfog.gif"height="30" align="eenter">加入日期</td>
<rd width="73" baekground="images/bg.gif"height="30"align="eenter">推荐度</td>
</tr>
<%do while not rs.eof%>
<tr>
<rd width "125" height="30" > <IMG nClick=over(this) title=放大 border="0'' src="images/dian.gif'> <%=rs
("name")%></td>
<td width="115" height="30" align="cente"><a href="">点播</td>
<rd width="64" height="30" al
第8题
[说明]
<html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<meta. http-equiv="Content-Type" eontent-"text/html; charset=gb2312">
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<!-- TemplateParam name="BodyBackgroundColor" type="color" value="FFFFFF" -->
<!-- TemplateParam name="FooterColor" type="color" value="CCCCCC" -->
<!-- TemplateParam name="ImageTitleColor" type="color" value="CCCCCC" -->
<!-- TemplateParam name="Footer" type="boolean" value="true" -->
<style. type="text/css">
<!--
body {
background-color: FFFFFF;
}
-->
</style></head>
<body marginwidth="0" marginheight="0" leffmargin="0" topmargin="0">
<br>
<table width="45%" border="0" cellspaeing="2" cellpadding="4" align="center">
<tr bgcolor="@@(ImageTitleColor )@@">
<td height=-"20"><!-- TemplateBeginEditable name="ImageTitle" -->
<div align="center">图片浏览(日落) </div>
<!-- TemplateEndEditable --x/td>.
</tr>
<tr>
<td width="60%" height="169" align="center"> <!-- TemplateBeginEditable name="Image" -->
<IMG nClick=over(this) title=放大 (1) name="image" width="318" height="137" (2) (3) ><!-- TemplateEndEditable --></td>
</tr>
</table>
<br>
<hr width="55 %" noshade size="1">
<hr>
<!-- TemplateBeginEditable name="Navigation" -->
<table width="63%" border="0" cellspacing="0" cellpadding="4" align="center">
<tr>
<td width="20%" align="right"><nobr><a href="">(4); First</a>|<a href="">(5);
Previous</a></nobr></td>
<td width="20%" align="center"><nobr><a href="">(6)</a>|2| <a href="">3</a>
|<a href="">4</a> | <a href="">5</a></nobr></td>
<td align="left" width="20%"><nobr><a href="">Next ></a>|<a href="">Last
(7); </a></nobr></td>
</tr>
</table>
<!-- TemplateEndEditable -->
</body>
</html>
第9题
<html>
<head>
<!-- TcmplateBeginEditable name="doctitle" -->
<title>论坛登录注意事项</title>
<!-- TemplateEndEditable -->
<meta. http-equiv="Content-Type" content="text/html; charset=-gb2312">
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<1-- TemplateParam name="Header" type="boolean" value="tme" -->
<!-- TemplateParam name="this" type="boolean" value="tme" -->
<!-- TemplateParmn name="UserName" (1) value="textfieldl"-->
<!-- TemplateParam name="Password" type="text" value="textfieldl" -->
<!-- TemplateParam name="ButtonName" type="text" value="Submit" -->
<!-- TemplateParam name="ButtonLabel" type="text" value="Sign In" -->
<!-- TemplateParam name="FormAction" type="text" value="" -->
<!-- TemplateParam name="FormMethod" type="text" value="post" -->
<!-- TemplateParam name="FormName" type="text" value="forml" -->
<style. type="text/css">
<!--
.stylel {
font-size: 36px;
font-weight: bold;
}
-->
</style>
</head>
<body class="sub">
<div align="center"><span class="style1 ">论坛登录注意事项</span><br>
</div>
<formame="@@(FormName)@@method="@@(ForrnMethod) @@"action="@@(FormAetion) @@,,>
<table width="85%" border="0" cellspacing="0" cellpadding="1" class="TitleColor">
<tr style="vertical-align: top">
<td> <table width="100%" height="290" border="1" cellpadding="4" cellspacing="0">
<tt class="HeaderColor">
<td width="175" style="vertical-align: top"><!-- TemplateBeginEditable name="Title" -->
<h3 align="center">论坛登录</h3>
<!-- TemplateEndEditable --></td>
<td width="437" style="vertical-align: top"><!-- TemplateBeginIf eond="Header" -->
<!-- TemplateBeginEditable name="Title2" -->
<h3 align=(2)>注意事项</h3>
<!-- TemplateEndEditable --><!-- TemplateEndlf--></td>
</tr>
<tr style="vertical-align: top">
<td height="230" class="TitleColor"><!-- TemplateBeginEditable name="Title3"-->
<label for="usemame"><strong>用户名称</strong></label>
<!-- TemplateEndEditable --><br><input id="usemame" name="usemame"
type="text"(3)>
<p> </p>
<!-- TemplateBeginEditable name="Title4" -->
<label for="password"><strong>用户密码
<input id="password3" name="password" type="password" size="25">
</strong></label>
<!-- TemplateEndEditable -->
<div align="right"><strong>
&nbs
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!