和風細雨

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

          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

          主站蜘蛛池模板: 凤凰县| 桓台县| 玛纳斯县| 陕西省| 遵义市| 岗巴县| 海宁市| 兴文县| 徐水县| 昌吉市| 黑河市| 凤阳县| 天门市| 武义县| 大宁县| 洪雅县| 梧州市| 乌兰察布市| 和顺县| 宁陵县| 义乌市| 天峨县| 东丰县| 美姑县| 庆元县| 邛崃市| 桓仁| 泰来县| 祁东县| 忻城县| 象州县| 城口县| 岑巩县| 和龙市| 铜山县| 乌鲁木齐县| 徐汇区| 广河县| 鄂托克旗| 南京市| 青河县|