有关超级链接的问题
网页是静态的,分了三个部分,top.html,left.html,right.html
2010-05-27 17:41
2010-05-27 17:58
程序代码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.">
<html xmlns="http://www.">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" href="index.css">
<base target="main">
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
color: #FFFFFF;
}
-->
</style></head>
<body>
<table width="181" border="0" cellspacing="1" align="right" height="200">
<tr>
<td width="100" height="6" align="center" valign="middle" bordercolor="#009966" bgcolor="#00CC99"><span class="STYLE1">本期导读</span></td>
</tr>
<tr>
<td height="43" align="center" bordercolor="#009966" bgcolor="#FF9933">要闻快递</td>
</tr>
<tr>
<td height="43" bordercolor="#009966" bgcolor="#99FF00"> <br>
<a href="right.html#1" target="mainFrame">夏夜叹 </a></td>
</tr>
<tr>
<td height="43" bordercolor="#009966" bgcolor="#99FF00"><a href="right.html#2" target="mainFrame">刘亦菲亮豪宅被羡 唐贝诗要盆景猫被批</a><br /></td>
</tr>
</table>
<p> </p>
</body>
</html>在超连接后面加了个target属性:target="mainFrame",让他们导向mainFrame这个框架,因此就不会跳出新的窗口了!
2010-05-27 19:19
2010-05-27 23:01
2010-05-28 16:13