【Web開發】一、頁面配置

來源:互聯網
上載者:User

標籤:style   blog   io   ar   os   sp   on   div   log   

一、Frame

<frameset id="topFrameSet" rows="69,*" border="0" framespacing="0" frameborder="0">    <frame name="topframe" src="frameTop.html" scrolling="No" noresize="noresize" id="topFrame" />    <frameset id="mainFrameSet" cols="142,1,*" border="0" framespacing="0" frameborder="0">        <frameset id="leftFrameSet" rows="22,*,0" frameborder="no" border="0" framespacing="1">            <frame name="lefttop" noresize="noresize" border="0" src="frameLeftTop.html" scrolling="no"                style="border-right: 1px solid #6c9ede;" />            <frame name="leftmenu" src="leftMenuMyTask.html" frameborder="0" scrolling="no" noresize="noresize"                border="0" target="right" style="border-right: 1px solid #6c9ede;" id="leftmenu" />            <frame name="leftdn" noresize="noresize" border="0" src="frameleftdown.html" frameborder="0" />        </frameset>        <frame name="midline" src="midLine.html" scrolling="No" noresize="noresize" id="midline" />        <frameset id="rightframeset" border="0" framespacing="0" rows="24,*" frameborder="0">            <frame name="rightup" src="frameShowPos.html" noresize="noresize" frameborder="0"                scrolling="no" />            <frame name="right" id="right" src="../application/default.html" frameborder="0"                scrolling="yes" class="right_scroll" />        </frameset>    </frameset></frameset>

二、DIV

<body><div id="container">  <div id="header">This is the Header</div>  <div id="menu">This is the Menu</div>  <div id="mainContent">    <div id="sidebar">This is the sidebar</div>    <div id="content">2列左側固定,右側自適應寬度+頭部+導航</div>  </div></div></body>body { font-family:Verdana; font-size:14px; margin:0;}#container {margin:0 auto; width:100%;}#header { height:100px; background:#9c6; margin-bottom:5px;}#menu { height:30px; background:#693; margin-bottom:5px;}#mainContent { height:500px; margin-bottom:5px;}#sidebar { float:left; width:200px; height:500px; background:#cf9;}#content { margin-left:205px !important; margin-left:202px; height:500px; background:#ffa;}

 

【Web開發】一、頁面配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.