和風(fēng)細雨

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

          Blogjava的CSS實現(xiàn)

          效果:


          CSS頁面設(shè)置代碼:
          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 和風(fēng)細雨 閱讀(372) 評論(0)  編輯  收藏 所屬分類: CSS

          主站蜘蛛池模板: 台北市| 华宁县| 沈阳市| 香格里拉县| 巴林左旗| 托克逊县| 饶平县| 五大连池市| 怀化市| 佛坪县| 咸阳市| 和静县| 凤凰县| 湘潭县| 岳阳县| 封丘县| 舞阳县| 中方县| 林甸县| 南充市| 定边县| 大埔县| 佛冈县| 会昌县| 康平县| 盈江县| 余干县| 汉沽区| 武定县| 吴桥县| 南投县| 呼玛县| 木里| 正阳县| 门源| 榆树市| 平度市| 永州市| 蒙山县| 丽江市| 江华|