页面将在新选项卡中打开而不是左框架

时间:2012-02-03 17:51:04

标签: html hyperlink frames

我无法在另一帧中打开链接。这是一个index.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" href="b.png" type="image/png">
<title>Free as in Beer</title>
<frameset cols="85%,15%">
  <frame src="left.html" name="leftside" >
  <frame src="right.html" name="rightside" >
</frameset>
</head>
</html>

left.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="styles/default.css">
    <script src="highlight.pack.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>
  </head>
  <h1><a name="bio">Bio</a></h1>
    <pre><code class="bash">bk-simulates-range.py -S "" -b "" -e "" -s "" -t dspc.top -n 3000000 -c -j bk-runs-mpi.bash -w "-4.5.5-double_gcc"

bk-pymol-selects.py -f confout.gro -s "resi 1-128" -t traj.trr -i 50

bk-pymol-selects.py -f *ane.gro bk-pymol-pic.py -f confout.gro -s "resi 1-128" -x "-2" -y "-3" -z "0" -t traj.trr

bk-clean-dirs.py "(.*ane.gro$|.*itp$|.*top$|.*tpr$)"

rm bkLog confout.gro *.cpt md.mdp; rename 's/^.(.+)...$/$1/' \#* && rm \#*</code></pre>
  <hr>
  <!-- hhmts start -->Last modified: Fri Feb  3 21:40:01 MSK 2012 <!-- hhmts end -->
  </body>
</html>

right.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <style type="text/css">
      p {
      font-family : DejaVu Sans Mono;
      font-size : 12pt;
      line-height : 120%;
      margin-top : 0px;
      margin-bottom : 0px;
      white-space : pre-wrap;
      display : inline;
      }
      h1 {
      font-size : 14pt;
      line-height : 100%;
      margin-top : 20px;
      margin-bottom : -1px;
      display : block;
      color : blue ; 
      }
    </style>
<body link=ff8700>
<body vlink=ff8700>
<body alink=ff8700>
  </head>
  <body>
<h1>Notes</h1>
<p><a href="m.html#bio" target="leftside">Bio</a>
  </body>
</html>

不可能更简单 - 但它不起作用:当我在右框架上按下Bio时 - 它会在新标签中打开 - 而不是左框架。

1 个答案:

答案 0 :(得分:1)

这可以归结为您的本地浏览器“在新标签页设置中打开吗?”