和風細雨

          世上本無難事,心以為難,斯乃真難。茍不存一難之見于心,則運用之術自出。

          Blogjava的CSS實現

          效果:


          CSS頁面設置代碼:
          body{
              margin
          :0 auto;
              text-align
          :center;
              min-width
          :760px;
              background
          :#e6e6e6;
          }


          #bodyDiv
          {
              width
          :924px;
              margin
          :0 auto;
              text-align
          :left;
              background
          :#eefaec;
          }


          #header
          {
              width
          :924px;
              height
          :132px;
              background
          :#ffffff;
          }


          #sidebar
          {
              margin
          :2px;
              width
          :170px;
              height
          :560px;
              float
          :right;
              background
          :#ffffff;
              border-style
          :dashed;
              border-color
          :#b9ecae;
              border-width
          :1px;
              padding-top
          :20px;
              padding-bottom
          :20px;
          }


          #sidebar li
          {
              padding-left
          :20px;
              padding-right
          :20px;
          }


          #content
          {
              margin
          :2px;
              width
          :740px;
              height
          :560px;
              float
          :left;
              border-style
          :dashed;
              border-color
          :#b9ecae;
              border-width
          :1px;
              background
          :#f8f8f8;
              padding-top
          :20px;
          }


          #footer
          {
              clear
          :both;
              background
          :#eefaec;
          }


          ul
          {
              margin
          :0;
              padding
          :0;
              list-style-type
          :none;
          }


          a:link 
          {
              color
          : #6fbc4c;
              text-decoration
          : none;
          }

          a:active 
          {
              color
          : #6fbc4c;
          }

          a:visited 
          {
              color
          : #6fbc4c;
          }

          a:hover 
          {
              color
          : #646464;
          }


          h1 
          {
              font-size
          : 18px; 
              margin
          : 10px 0px 5px; 
              color
          : #666666; 
              text-align
          : center;
          }

          h2 
          {
              font-size
          : 16px; 
              margin
          : 10px 0px 5px; 
              color
          : #666666; 
              text-align
          : center;
          }

          h3 
          {
              font-size
          : 14px; 
              margin
          : 10px 0px 5px; 
              color
          : #666666; 
              text-align
          : center;
          }

          頁面代碼:
          <%@ page contentType="text/html; charset=UTF-8"%>
          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
          <html>
          <head>
          <title>Bug管理布局示例</title>
          <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
          <link rel="stylesheet" rev="stylesheet" href="web/css/bugmngLayout.css"
              type
          ="text/css" />
          </head>

          <body>
          <div id="bodyDiv">
          <div id="header">
              
          <jsp:include page="/web/page/branch/header2.jsp"/>
          </div>
          <div id="sidebar">
              
          <jsp:include page="/web/page/branch/sidebar.jsp"/>
          </div>
          <div id="content">
              
          <jsp:include page="/web/page/branch/content.jsp"/>
          </div>
          <div id="footer">
              
          <jsp:include page="/web/page/branch/footer.jsp"/>
          </div>
          </div>
          </body>
          </html>





          posted on 2008-03-17 22:06 和風細雨 閱讀(356) 評論(0)  編輯  收藏 所屬分類: CSS

          主站蜘蛛池模板: 舒兰市| 青浦区| 深水埗区| 中西区| 民勤县| 南靖县| 黄陵县| 新河县| 固原市| 高平市| 大港区| 铁岭市| 临潭县| 历史| 西藏| 阳朔县| 四会市| 吴江市| 普洱| 营山县| 临桂县| 长岭县| 宣武区| 山东省| 固镇县| 库车县| 湘潭县| 镇沅| 咸宁市| 保亭| 清水河县| 遂昌县| 晋宁县| 墨玉县| 外汇| 平谷区| 朔州市| 娱乐| 疏勒县| 丹巴县| 皋兰县|