<form id="9f791"><nobr id="9f791"></nobr></form>

              網站首頁 網站建設 公司動態 行業新聞 案例展示 關于我們

              文章內容

              采用WEB標準時頁面自適應的解決方案一則

              日期:2013-12-13  來源:攀枝花惠康網絡公司

              良多時辰明明感受應該自順應的效不美觀,
              可是在分歧瀏覽器里卻取得分歧的結不美觀,
              這個時辰最令人傷神。
              有時操作“相對位置”和“絕對位置”體例來確定DIV的方位,
              也是個很不錯的設法,
              }
              至于若何使用,使用那種體例,
              來看看下面的體例,年夜中會把握自順應的一種好體例。

              <html>

              <head>

              <title>Untitled Document</title>

              <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />

              <link href=http://www.css88.com/archives/”2columngray.css” rel=”stylesheet” type=”text/css” />

              <!– for decoration only –>

              </head>

              <div id=”sidebar”>

              <!– for decoration only –>


              border-top: 1px solid #e6e6e6;

              </div>

              <div id=”header”>

              <p>Header content goes here</p>

              <p><a href=http://www.css88.com/archives/”2col_left.htm”>Left </a>column Longest</p>

              <p><a href=http://www.css88.com/archives/”2col_right.htm”>Right</a> column Longest</p>

              <p><a href=http://www.css88.com/archives/”2col_main.htm”>No</a> column longest</p>

              <p><a href=http://www.css88.com/archives/”http://www.pmob.co.uk/temp/3colfixedtest_4.htm”>Back</a> to main

              3 column demo</p>

              </div>

              <div id=”mainnav”>


              }

              <p>Navigation</p>

              <div id=”mainheader”>

              </div>

              <p>Sidebar content goes here : Sidebar content goes here : Sidebar content

              goes here : Sidebar content goes here : Sidebar content goes here : Sidebar


              padding: 0;

              XHTML

              <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

              content goes here : Sidebar content goes here : Sidebar content goes here

              : Sidebar content goes here : Sidebar content goes here : Sidebar content

              goes here : Sidebar content goes here : </p>

              </div>

              <p>Footer stays at the bottom of the window unless the content is longer then

              it stays at the bottom of the document.</p>

              <p>Footer stays at the bottom of the window unless the content is longer then

              it stays at the bottom of the document.</p>

              </div>


              height:0px;

              <div id=”clearfooter”></div>

              <!– to clear footer –>


              text-align: center;
              }

              <div id=”footer”>

              <div class=”divider1″></div>

              <div class=”blank”></div>

              <p>Footer Content</p>

              </div>

              </div>

              </body>

              </html>

              CSS

              /* commented backslash hack v2 \*/
              html, body{height:100%;}
              background-color: #f5f5f5;
              /* end hack */
              html,body {
              margin: 0;
              }
              body {
              font: x-small arial, hevetica, sans-serif;

              #clearfooter {height:27px;width:100%;clear:both}
              color: #505367;
              background-color: #e0e0e0;
              }


              margin-left:auto;

              #container {
              margin-right:auto;
              width: 730px;
              min-height:100%;
              text-align: left;
              background: #CEE0E1 url(images/toddbg.gif) repeat-y right top;
              border-left: 1px solid #a1a1a1;
              border-right: 1px solid #a1a1a1;
              }
              /* commented backslash hack v2 \*/
              * html #container {height:100%;}
              仍是要看小我習慣以及網頁整體要求。
              * html #container {width:732px;w\idth:730px;}

              <div id=”content”>

              #mainheader {
              position:absolute;
              left:0;top:0;
              height: 160px;
              width:100%;
              background-color: #fff;
              border-bottom: 1px solid #e6e6e6;
              padding:5px 0 ;
              z-index:1;
              }
              #header {

              <body>


              height: 125px;
              * html body{font-size:xx-small;f\ont-size:x-small}

              <div class=”blank2″></div>


              width:100%;
              background-color: #D1DCE9;

              <div id=”container”>


              margin: 0px 0px 5px 0px;
              border-bottom: 1px solid #e6e6e6;
              position:relative;
              overflow:hidden;
              }

              * html #mainheader {height:161px;he\ight:160px}
              * html #header {height:127px;he\ight:127px}
              #mainnav {
              width:100%;
              height: 20px;
              background-color: #f5f5f5;
              border-top: 1px solid #e6e6e6;
              border-bottom: 1px solid #e6e6e6;
              position:relative;
              z-index:2;
              }
              #sidebar {
              float: right;
              #footer p {margin:0;padding:0}
              z-index:2;
              width: 170px;
              padding:5px 0 ;
              #content {
              width: 553px;
              #content p, #sidebar p, #mainnav p, #header p,#footer p {margin:0 5px 5px 5px}
              #footer{
              position:absolute;
              bottom:0;
              width:100%;
              height: 24px;
              position:relative;
              border-top: 1px solid #e9e9e9;
              /* end hack */


              * html #footer {height:25px;he\ight:24px;}

              .divider1 {
              * html #mainnav{height:22px;he\ight:20px}
              .blank2 {bottom:-1px;border-top:1px solid #fff;
              width:100%;
              height:5px;
              overflow:hidden;
              background:#fff;
              position:relative;
              border-bottom: 1px solid #e6e6e6;
              .blank , .blank2 {
              position:absolute;
              left:547px;
              width:7px;
              }
              overflow:hidden;
              border-top:1px solid #fff;
              }
              .blank {top:-1px;}
              }

              文章來源:攀枝花惠康網絡公司

              惠康網絡,是一家專業從事攀枝花網站建設,攀枝花網站制作,攀枝花網站設計公司,提供網站建設一條龍服務(網站域名注冊+網站服務器租用+網站開發+網站維護+網站營銷推廣),惠康網絡立足攀枝花,輻射全中國,攀枝花惠康網絡的客戶已經遍布國內各地大中小城市,我們高效優質的網站建設服務深受用戶好評。

              客服熱線:tel(謝先生)  客服QQ:1323605005  
              服務郵箱:yewubu@huikon.com(售前咨詢)  jishubu@huikon.com(技術部)  shouhou@huikon.com(售后服務)
              公司地址:四川省攀枝花市
              郵編:617200

              欧美夫妇交换俱乐部在线观看_成全高清视频免费观看_波多野结衣57分钟办公室_粉嫩国产白浆在线播放

                      <form id="9f791"><nobr id="9f791"></nobr></form>

                          >