我用了一个框架,框架内各部分各指向了一个HTM文件,可用F12预览时却来个“该页无法显示!”
请教各位大虾!!
---------------------------------------------------------------
检查链接位置
---------------------------------------------------------------
连接地址用相对路径
---------------------------------------------------------------
1<html>
2<frameset border="5" bordercolor="#33FF66" cols="*" frameborder="YES" framespacing="5" rows="68,*">
3<frame name="topFrame" noresize="" scrolling="NO" src="head.htm"/>
4<frameset border="5" bordercolor="#CC6666" cols="110,*" frameborder="YES" framespacing="5" rows="*">
5<frame name="leftFrame" scrolling="NO" src="left.htm"/>
6<frame bordercolor="#6633FF" name="mainFrame" src="main.htm"/>
7</frameset>
8</frameset>
9</html>
1<html>
2<frameset border="5" bordercolor="#33FF66" cols="*" frameborder="YES" framespacing="5" rows="68,*">
3<frame name="topFrame" noresize="" scrolling="NO" src="head.htm"/>
4<frameset border="5" bordercolor="#CC6666" cols="110,*" frameborder="YES" framespacing="5" rows="*">
5<frame name="leftFrame" scrolling="NO" src="left.htm"/>
6<frame bordercolor="#6633FF" name="mainFrame" src="main.htm"/>
7</frameset>
8</frameset>
9</html>
src="/main.htm" 不要“/”
---------------------------------------------------------------
上面说的,好像是相对路径,和绝对路径的问题吧。
属性>>里面,可以选择啊。
---------------------------------------------------------------
1<frameset border="5" bordercolor="#33FF66" cols="*" frameborder="YES" framespacing="5" rows="68,*">
2<frame name="topFrame" noresize="" scrolling="NO" src="./head.htm"/>
3<frameset border="5" bordercolor="#CC6666" cols="110,*" frameborder="YES" framespacing="5" rows="*">
4<frame name="leftFrame" scrolling="NO" src="./left.htm"/>
5<frame bordercolor="#6633FF" name="mainFrame" src="./main.htm"/>
6</frameset>
7</frameset>
就这样吧