主要的網頁開發工具為DW CS4。
欲切割的框架頁架構如下圖所示。
source code如下
語法:
<frameset rows="150,600,55" cols="1024" frameborder="no">
<frame id="top" src="top-Page.html" name="topFrame" noresize="noresize" marginwidth="0" marginheight="0" title="topFrame" scrolling="no">
<frameset cols="250,774" frameborder="no">
<frame id="left" src="left-page.html" name="leftFrame" frameborder="no" noresize="noresize" marginwidth="10" marginheight="0" title="leftFrame" scrolling="no">
<frame id="main" src="main-Page.html" name="mainFrame" frameborder="no" title="mainFrame" scrolling="auto">
</frameset>
<frameset cols="1024" frameborder="no">
<frame id="boottom" src="bottom-page.html" name="bottomFrame" noresize="noresize" id="bottomFrame" title="bottomFrame" scrolling="no">
</frameset>
</frameset>
框架頁完成後,會以iFrame方式包框架頁,再將iFrame設為置中,達到框架頁網頁置中的功能。
上面的code打好後,在frontpage上運作正常,於瀏覽器(ie,firefox)也運作正常,但是如果使用DW來開含有這段程式碼的.html,DW就會顯示"頁框組並不包含列和欄的數值。預設值為2個列",並在source code中自動加入以下紅色部分的code,並在框架頁bottom底下多插了一個frame......。
引用:
<frameset rows="*,*" cols="1024" frameborder="no">
<frame id="boottom" src="bottom-page.html" name="bottomFrame" noresize="noresize" id="bottomFrame" title="bottomFrame" scrolling="no">
<frame src="UntitledFrame-3"><frame src="UntitledFrame-4"></frameset>
|
請問大大,小弟最原始的code有什麼地方需要修正的嗎?為什麼每次用DW去開,DW會一直show出"頁框組並不包含列和欄的數值。預設值為2個列",而且還在bottom底下多插了個frame?
懇請大大解惑。