Frame框架居中並固定寬度的方法

原來的代碼:
<html> <head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>視頻會議後臺管理_深圳視高科技有限公司</title> 
<head> </head> 
<frameset rows="130,*,40" frameborder="no" border="0" framespacing="0">    
   <frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" /> 
   <frame src="center.html" name="mainFrame" id="mainFrame" />   
   <frame src="bottom.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" />
</frameset> 
<noframes> 
<body></body>     
</noframes> 
</html> 




改過的代碼



<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>視頻會議後臺管理_深圳視高科技有限公司</title> 
<head> </head> 
<frameset cols="*,1024,*" frameborder="no" border="0" framespacing="0"> 
<frame src="about:blank">
</frame> 
<frameset rows="130,*,40" frameborder="no" border="0" framespacing="0">    
<frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" /> 
<frame src="center.html" name="mainFrame" id="mainFrame" />    
<frame src="bottom.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" /> 
</frameset> 
<frame src="about:blank"></frame>  
</frameset> 
<noframes> 
<body></body>     
</noframes> 
</html> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>視頻會議後臺管理_深圳視高科技有限公司</title> 
<head> </head> 
<frameset cols="*,1024,*" frameborder="no" border="0" framespacing="0"> 
<frame src="about:blank">
</frame> 
<frameset rows="130,*,40" frameborder="no" border="0" framespacing="0">    
<frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" /> 
<frame src="center.html" name="mainFrame" id="mainFrame" />    
<frame src="bottom.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" /> 
</frameset> 
<frame src="about:blank"></frame>  
</frameset> 
<noframes> 
<body></body>     
</noframes> 
</html> 



再套了一個框架,多了紅色部分的代碼,這樣就可以使得框架居中了........


發佈了18 篇原創文章 · 獲贊 0 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章