Re: [問題] 將整個 FrameSet 置中的方法?

看板Web_Design作者 (abgne)時間19年前 (2006/04/09 13:00), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
把css改成 <style type="text/css"> <!-- .framesetM{ margin-left:auto; margin-right:auto; width:500px; } --> </style> 這樣就能置中了... 寬我改500是方便看出效果... ※ 引述《windxx (風神使者)》之銘言: : 我使用了Frame,大致的長相很普通: :   ┌────────┐ :   ├┬───────┤ :   ││       │ :   ││       │ :   ││       │ :   ││       │ :   └┴───────┘ : 原始碼長這樣: : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" :  "" rel="nofollow">http://www.w3.org/TR/html4/frameset.dtd"> : <html> : <head> : <meta http-equiv="Content-Type" content="text/html; charset=big5"> : <title> </title> : </head> : <frameset rows="125,*" cols="*" frameborder="NO" border="0" framespacing="0" > : <frame src="title.htm" name="topFrame" scrolling="NO" noresize > : <frameset rows="*,-1,-1" cols="162,*" : framespacing="0" frameborder="NO" border="0"> : <frame src="left.htm" name="leftFrame" scrolling="NO" noresize> : <frame src="latest.htm" name="mainFrame"> : </frameset> : </frameset> : <noframes> : <body> : </body> : </noframes> : </html> : 請問有沒有辦法限制整個最外圍frameset的大小(px數), : 並且讓整個frameset放在畫面的正中間呢? : 像這樣:┌─┬───────┬─┐ :   │螢├┬──────┤螢│ : │ ││      │ │─→ 最外面的框是整個螢幕的大小 : │ ││      │ │ : │幕││      │幕│ : │ ││      │ │ : └─┴┴──────┴─┘ : 我查了整個早上找不到方法,下面這段CSS碼 : <style type="text/css"> : <!-- : framesetM{ : text-align: center; : width:1010px; : } : --> : </style> : 只能讓frameset限制在1010px,卻會自動靠左!我想要置中啊 orz : 我知道用frame不好,可是還是煩請板上強者指點一下...... : 非常感謝.......orz -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.248.155.124
文章代碼(AID): #14E9Jt1C (Web_Design)
文章代碼(AID): #14E9Jt1C (Web_Design)