HTML——部落格網頁布局

來源:互聯網
上載者:User

標籤:css   html   布局   



HTML檔案

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>HTML blog</title><link href="css/blog.css" rel="stylesheet" type="text/css" /></head><body><div class="container"><div class="header"><h1>KSC 工作室</h1><p>http://blog.csdn.net/sunshumin</p></div><div class="content"><div class="navBar"><ul><li><a href="#">首頁</a></li><li><a href="#">部落格</a></li><li><a href="#">文章</a></li><li><a href="#">協助</a></li></ul></div><div class="sidebarLeft"><div class="frame"><div class="title">設定檔</div><div style="text-align: center;"><img src="img/psb.jpg"  width="80px"/><p style="font-size: 1.2em;color: #aaf;font-weight: bold;">黃某某</p></div></div><div class="frame"><div class="title">部落格文章</div><ul class="list"><li>HTML 簡介</li><li>HTML 基本概念</li><li>HTML 文檔結構</li><li>HTML 編輯程式介紹</li><li>基本元素介紹</li><li>超連結圖片</li><li>圖片元素</li></ul></div></div><div class="sidebarRight"><div class="frame"><div class="title">我的好友</div><ul class="list"><li>張琨</li><li>黃超</li><li>戴敏</li><li>李梅</li><li>劉娜</li><li>王月</li></ul></div><div class="frame"><div class="title">友情連結</div><ul class="list"><li>張琨的部落格</li><li>黃超的部落格</li><li>戴敏的部落格</li><li>李梅的部落格</li><li>劉娜的部落格</li><li>王月的部落格</li></ul></div><div class="frame"><div class="title">訪客統計</div><ul class="list"><li>總共訪問量:21310 人</li><li>今日訪問量:    340 人</li></ul></div></div><div class="mainContent"><div class="frame"><div class="title">博文</div><div style="padding: 5px;"><h3>大家好,這是我的第一篇部落格</h3><p style="text-indent: 2em;">我已經在BLOG安家了,歡迎你“常過來看看”,大家多多交流哦。我們可以一起把這裡變成共同的心靈家園,像家一樣溫暖的地方。</p><p style="text-indent: 2em;">我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。我會把一些有趣的東西記錄下來。</p><p style="text-indent: 2em;">我的BLOG地址:http://blog.csdn.net/sunshumin</p></div></div></div><div class="footer"><p>BLOG意見反饋留言板    不良資訊反饋    電話:18865513351歡迎批評改正</p><p>簡介 |關於我們|廣告服務|聯絡我們|招聘資訊|網站律師|會員註冊|產品答疑 </p><p>Copyright &copy; 2013 - 2014 HTML Corporation,All Rights Reserveds</p><p>KSC工作社           著作權</p></div></div></div></body></html>

CSS檔案

@charset "utf-8";body{margin: 0;padding: 0;text-align: center;font-size: 13px;background-image:url(../img/Default.jpg);}.container{width: 778px;margin: 0 auto;text-align: left;}.header{padding-top: 40px;padding-bottom: 20px;padding-left: 50px;}/*導覽功能表*/.navBar{position: relative;height: 30px;width: 100%;}.navBar ul{position: relative;margin: 0;padding: 0;height: 30px;background: url(../img/導航.png)  0px -30px repeat-x;}.navBar ul li{width: 15%;padding: 0;margin: 0;list-style: none;float: left;height: 30px;display: inline;/*設定顯示方式*/}.navBar ul li a{font: 12px Arial;color: white;text-decoration: none;line-height: 30px;display: block;background-image: url(../img/導航.png) 100% -60px no-repeat;padding: 0 17px 0 15px;}.navBar ul li a:hover{text-decoration: underline;}.navBar .left{position: absolute;top: 0px;left: 0px;width: 10px;height: 30px;display: block;z-index: 1;background: url(../img/導航.png) 0% 0px no-repeat;}.navBar .right{position: absolute;top: 0px;right: 0px;width: 10px;height: 30px;display: block;z-index: 1;background: url(../img/導航.png) 100% -90px no-repeat;}/*側邊欄*/.sidebarLeft{float: left;width: 200px;}.sidebarRight{float: right;width: 200px;}/*小面板*/.frame{width: 100%;margin-bottom: 15px;background-color: white;border: solid 1px gray;}.title{margin: 1px;margin-bottom: 5px;padding: 4px;font-weight: bold;background-color: #66cccc;}/*文章、好友名單*/.list{list-style-type: none;padding: 5px;margin: 0 auto;}.list li{padding: 3px;border-bottom: dotted 1px #aaf;}.mainContent{width: 370px;margin: 0 auto;}.footer{clear: both;position: relative;padding: 10px 0;text-align: center;color: #eee;}






HTML——部落格網頁布局

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.