[問題] 將整個 FrameSet 置中的方法?
我使用了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
--
[個版] ptt2 windx ■■■■ [個人站◎風神之舞] http://www.im.ntu.edu.tw/~b92040/
───────── 「對落選的天使而言,連羽翼都是多餘的。」 ─────────
[風神小舖] http://tinyurl.com/5bjum/ ■■■■■ [相簿] http://tinyurl.com/6tlvw
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.184.78.37
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章