2012-02-03 83 views
2

我无法在其他框架中打开链接。下面是一个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> 

简单得不能再简单 - 但它不工作:当我推的生物在右边框 - 它在新标签中打开 - 而不是左边框。

回答

1

难道这是下降到您的本地浏览器“在新标签”设置打开?

+0

我在另一个浏览器中试过了 - 它在那里工作。 – Adobe 2012-02-04 08:18:16

+0

此行为是由“锁定标签”Firefox的功能(右键单击选项卡切换它)引起的。 – Adobe 2012-02-04 13:59:33

相关问题