简单又好看,找个个人博客页面学学我的老js!

做一个个人博客第一步该怎么做?

好多零基础的同学们不知道怎么迈出第一步。

那么,就找一个现成的模板学一学呗,毕竟我们是高贵的Ctrl c v 工程师。

但是这样也有个问题,那就是,那些模板都,太!复!杂!了!!!!

直接打击了我99%的学习积极性。

直到我找到了这一款极其简单,只有一个html页面和css的个人博客模板。

麻雀虽小,五脏俱全。

基本上有了个人博客所需要的很多基本功能,下一步只要花个一两小时学会它,然后开始加图片美化就完了。

简直爽歪歪,虽然直接用肯定不行,但是拿来当一个学习材料,那还是相当的顺手。

界面看起来是这个样子的。

虽然只有一个页面,但是,像什么标题,导航,侧边栏,快捷菜单,友链,搜索,列表,简介,预览页,就很全。代码也很简单。我们可以先学,然后,再用我们的知识把它完美化,不知不觉就学会了这套技术。

这可比直接下载那些美轮美奂的模板要好的多,看也看不懂,学也学不会。

下载地址在这里↓↓↓↓↓

https://download.csdn.net/download/qqhxmdq/88968261

代码我就全贴到这儿了,大家可以看一看。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>free website template - xxxxx.com</title>
<meta name="keywords" content="free templates, website templates, CSS, HTML" />
<meta name="description" content="free website template provided from xxxxx.com" />
<link href="css/templatemo_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="templatemo_wrapper">
	<div id="templatemo_header">
    
        <div id="site_title">
            <a href="http://www.xxxxx.com" target="_parent"><img src="images/templatemo_logo.png" alt="logo" /><span>YOUR TAGLINE GOES HERE</span></a>
        </div> <!-- end of site_title -->
        
        <div id="templatemo_menu">
            <ul>
                <li><a href="http://www.xxxxx.com" target="_parent" class="current">Home</a></li>
                <li><a href="http://www.xxxxx.com/" target="_parent">Templates</a></li>
              <li><a href="#">Services</a></li>
                <li><a href="#">About</a></li>
                <li class="last"><a href="#">Contact</a></li>
            </ul>    	
	    </div> <!-- end of templatemo_menu -->
    
    </div> <!-- end of header -->
    
    <div id="templatemo_main">
    	
        <div id="templatemo_content">
			
            <div class="content_box">
            	<h1>Welcome to Fruit Site</h1>
                <p class="welcome_text"><a href="http://www.xxxxx.com/" target="_parent">xxxxx</a> are provided by <a href="http://www.xxxxx.com" target="_parent">xxxxx</a> <a href="http://guantaow.taobao.com" target="_blank">xxxxx</a> for anyone to use in any website. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras volutpat aliquet risus, a ornare orci scelerisque et. Praesent ac arcu sapien. Maecenas a tortor tellus.</p>
          </div>
            
            <div class="content_box">
				<h2>Pellentesque lobortis boas</h2>
                <div class="image_wrapper image_fr"><span></span><img src="images/templatemo_image_02.png" alt="image 2" /></div>
                <p>Nulla facilisi. Fusce fermentum arcu ut orc oate sfmentum interdum <a href="#">tmalesuada</a> dolor sod raese ant.</p>		
                <p>Nam ut ipsum et urna consectetur com liquan fors non urna vitae ante <a href="#">dignissim</a>.</p>
          </div>
            
          <div class="content_box">
           	<h2>Vestibulum arcu augue</h2>
                <div class="image_wrapper image_fr"><span></span><img src="images/templatemo_image_01.png" alt="image 1" /></div>
                <p>Pellentesque lobortis bibendum tortor sit amet ant pellentesque. Nulla facilisi. <a href="#">Fusce ferme</a> ntarc fort condimentum interdum malesuada dolor soda am.</p>
                <p>Praesent consectetur gravida mauris ut cursu son Nam ut ipsum et urna consectetur <a href="#">commodo</a>.</p>
            <div class="cleaner"></div>
          </div>
            
            <div class="content_box cb_last">
            	<h2>Useful Links</h2>
                <ul id="cool_link_list">
                    <li><a href="#">Nulla facilisise isloni</a></li>
                    <li><a href="#">Neo metuser eoie</a></li>
                    <li><a href="#">Feugiat aliquam sapien</a></li>
                    <li><a href="#">Aliquam euulla</a></li>
                    <li><a href="#">Cosnet seur turpis</a></li>
                    <li><a href="#">Aliquam volutpa</a></li>
                    <li><a href="#">Donec iseoin</a></li>
                    <li><a href="#">Stellus lacus</a></li>
                    <li><a href="#">Iconvallis lesete actu</a></li>
                </ul>
                <div class="cleaner"></div>
        	</div>
        </div> <!-- end of content -->
        
        <div id="templatemo_sidebar">
        
        	<div class="sidebar_box_woframe">
        	    <a href="#" class="icon_link"><img src="images/email.png" alt="contact" /></a>
                <a href="#" class="icon_link"><img src="images/rss.png" alt="contact" /></a>
                <a href="#" class="icon_link"><img src="images/twitter.png" alt="contact" /></a>
                <div class="cleaner"></div>
			</div>
            
            
            <div class="sidebar_box"><div class="sidebar_box_top"></div>
            	
                <div class="sidebar_box_content">
                    <h3>Popular Posts</h3>
                    <ul id="popular_post_box">
                        <li>
                            <span class="date">25 Dec 2024</span>
                            <span class="title"><a href="#">Pellentesque lobortis</a></span>
                            bibendum toror sit amet pellentesque. Nulla facilis us fermentum arcu.
                         </li>
                         <li>
                            <span class="date">18 Dec 2024</span>
                            <span class="title"><a href="#">Fusce fermentum arcu</a></span>
                            Dut orci condim ntum interdum malesuada dolor sodles.
                         </li>
                         <li class="last">
                            <span class="date">14 Dec 2024</span>
                            <span class="title"><a href="#">Sit amet pellentesque</a></span>
                            Nulla facilis us fermentum arcu. Praesent consectetur gravida maurist
    cursus.</li>
                    </ul>
                </div>
                
                <div class="cleaner"></div>
			<div class="sidebar_box_bottom"></div>                    
            </div>
            
            <div class="sidebar_box"><div class="sidebar_box_top"></div>
            	<div class="sidebar_box_content">
                   
                   <h3>Testimonials</h3>
                   <p>Ut commodo, nulla eu pellentesque mollis, odio ante condimentum augue, eget facilisis dui magna ut ligula. Quisque sit amet <a href="#">adipiscing</a> libero. Donec et tellus vitae velit pharetra lobortis.</p>
                    
                  <cite>Web Designer  - <span>xxxxx.com</span></cite>
                   
                    <div class="cleaner"></div>
                </div>
            	<div class="sidebar_box_bottom"></div>                    
            </div>

            <center>
            
	            <a href="http://validator.w3.org/check?uri=referer"><img style="border:0;width:88px;height:31px" src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" width="88" height="31" vspace="8" border="0" /></a>
    	    <a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px"  src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" vspace="8" border="0" /></a>
            
            </center>
                        
            <div class="cleaner"></div>
        </div> <!-- end of sidebar -->
    
    	<div class="cleaner"></div>
    </div> <!-- end of main -->
    
     <div id="templatemo_footer">

        Copyright © 2048 <a href="#">Your Company Name</a> | 
        from <a href="http://www.xxxxx.com" target="_parent">xxxxx</a>     
    </div> <!-- end of templatemo_footer -->
    
</div> <!-- end of warpper -->

</body>
</html>

简单的一批,十几分钟就搞清楚每块该怎么弄了。

再来看看css

 

body {
	margin: 0px;
	padding: 0px;
	color: #625e5e;
	font-family: Tahoma, Geneva, sans-serif;
	font-size: 13px;
	line-height: 1.5em; 
	background-color: #000;
	background-image: url(../images/templatemo_body.jpg);
	background-position: top center;
	background-repeat: no-repeat;
}

a, a:link, a:visited { color: #333; text-decoration: underline; }
a:hover { color: #000; text-decoration: none; }

p { margin: 0px; padding: 0; }
img { border: none; }

ul { margin: 0; padding: 0; }
ul li { margin: 0; padding: 0; }

h1 { font-size: 34px; font-weight: normal; margin: 0 0 20px 0; padding: 5px 0; color: #9c6421; }
h2 { font-size: 24px; font-weight: normal; margin: 0 0 20px 0; padding: 5px 0; color: #000; }
h3 { font-size: 21px; font-weight: normal; margin: 0 0 15px 0; padding: 0; color: #000;}
h4 { font-size: 18px; margin: 0 0 20px 0; padding: 0 0 10px 0;  }
h5 { font-size: 16px; margin: 0 0 10px 0; padding: 0; }
h6 { font-size: 14px; margin: 0 0 5px 0; padding: 0; }

.cleaner { clear: both; width: 100%; height: 0px; font-size: 0px;  }
.cleaner_h10 { clear: both; width:100%; height: 10px; }
.cleaner_h20 { clear: both; width:100%; height: 20px; }
.cleaner_h30 { clear: both; width:100%; height: 30px; }
.cleaner_h40 { clear: both; width:100%; height: 40px; }
.cleaner_h50 { clear: both; width:100%; height: 50px; }
.cleaner_h60 { clear: both; width:100%; height: 60px; }

.hr_divider { background: url(../images/templatemo_hr_divider.jpg) bottom repeat-x; }

.float_l { float: left; }
.float_r { float: right; }

.image_wrapper {
	position: relative;
	display: block;
	width: 218px;
	height: 128px;
	padding: 9px;
}
.image_wrapper span {
	position: absolute;
	left: 0;
	top: 0;
	width: 236px;
	height: 144px;
	background: url(../images/templatemo_image_frame.png) no-repeat;
}
.image_fl { float: left; margin: 3px 20px 0 0; }
.image_fr { float: right; margin: 3px 0 0 20px; }

blockquote { font-style: italic; margin-left: 10px;}
cite { font-weight: bold; color:#3b3823; }
cite span { color: #696443; }
em { color: #e55822; }

.tmo_list { margin: 20px 0; padding: 0; list-style: none; }
.tmo_list li { background: url(../images/templatemo_list.png) no-repeat scroll 0 0px; margin: 0 0 20px; padding: 3px 0 3px 25px; 	line-height: 1em; }
.tmo_list li a { color: #333; text-decoration: none; }
.tmo_list li a:hover { color: #d06802; text-decoration: none; }

.btn_more a {
	display: block;
	width: 85px;
	height: 27px;
	color: #5c460e;
	padding: 5px 3px 0 27px;
	font-size: 12px;
	font-weight: bold;
	text-decoration: none;
	text-align: center;
	background: url(../images/templatemo_btn.png) no-repeat;
}

.btn_more a:hover, .btn_more a span:hover {
	color: #dca822;
	background: url(../images/templatemo_btn_hover.png) no-repeat; 
}

#templatemo_wrapper {
	width: 900px;
	padding: 100px 20px 0;
	margin: 0 auto;
}

#templatemo_header {
	width: 860px;
	height: 115px;
	padding: 0 30px;
	background: url(../images/templatemo_header.png) no-repeat;
}

#site_title {
	float: left;
	width: 350px;
	margin: 35px 0 0 0;
	text-align: center;
}

#site_title a {
	margin: 0px;
	padding: 0px;
	font-size: 36px;
	color: #252b2d;
	font-weight: bold;
	text-decoration: none;
}

#site_title a span {
	display: block;
	font-size: 14px;
	color: #333;
	font-weight: normal;
	margin-top: 5px;
	letter-spacing: 5px;
}
/* menu */

#templatemo_menu {
	float: right;
	width: 450px;
	height: 90px;
	padding: 12px 20px;
	background: url(../images/templatemo_menu.jpg) no-repeat;
}

#templatemo_menu ul {
	float: right;
	margin: 8px 0 0 0;
	padding: 0;
	list-style: none;
	display: inline-block;
}

#templatemo_menu ul li {
	float: left;
	height: 82px;
	padding: 0 10px;
	margin: 0;
	display: inline-block;
	background: url(../images/templatemo_menu_divider.png) no-repeat bottom right;
}

#templatemo_menu ul .last { background: none; }

#templatemo_menu ul li a {
	float: left;
	display: block;
	height: 42px;
	font-size: 14px;
	padding: 40px 10px 0;
	color: #fff;	
	text-decoration: none;
	font-weight: normal;
	text-align: center;
	outline: none;
	
}

#templatemo_menu ul li a:hover, #templatemo_menu ul .current {
	background: url(../images/templatemo_menu_hover.png) no-repeat center bottom;
}

/* end of menu */

/* main */

#templatemo_main {
	clear: both;
	width: 840px;
	padding: 40px 30px;
	background: #fff url(../images/templatemo_main.png) no-repeat top;
}

#templatemo_content {
	float: left;
	width: 550px;
}

#templatemo_content p {
	margin-bottom: 20px;
}

.content_box {
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid #ccc;
}

.cb_last {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: none;
}

#cool_link_list { 
	margin: 0 0 0 20px;
	padding: 0;
	list-style: none;
}

#cool_link_list li {
	float: left;
	width: 160px;
	margin: 0 15px 15px 0;
	padding: 0;
	display: inline-block;
}

#cool_link_list li a {
	display: block;
	width: 140px;
	padding: 0 0 0 20px;
	color: #666;
	text-decoration: none;
	line-height: 1em;
	background: url(../images/templatemo_list.png) no-repeat center left;
}

#templatemo_sidebar {
	float: right;
	width: 260px;
}

.icon_link { display: block; float: left; margin-left: 30px; width: 48px; }

.sidebar_box_woframe {
	margin-bottom: 20px;
}

.sidebar_box {
	width: 260px;
	padding: 0;
	background: url(../images/templatemo_sidebar_box.png) left repeat-y;
}

.sidebar_box_top {
	width: 260px;
	height: 20px;
	background: url(../images/templatemo_sidebar_box_top.png) no-repeat;
}

.sidebar_box_bottom {
	width: 260px;
	height: 20px;
	margin-bottom: 30px;
	background: url(../images/templatemo_sidebar_box_bottom.png) no-repeat;
}

.sidebar_box_content {
	padding: 0 20px;
}

.sidebar_box_content p {
	margin-bottom: 10px;
}

#templatemo_sidebar h3 {
	padding-bottom: 20px;
	margin-bottom: 30px;
	border-bottom: 1px solid #ccc;
}

#popular_post_box { margin: 0; padding: 0; list-style: none; }
#popular_post_box li { margin: 0 0 30px 0; padding: 0; }
#popular_post_box li .date { display: block; color: #f4263e; }
#popular_post_box li .title a { display: block; color: #2d961c; text-decoration: none;}
#popular_post_box .last { margin: 0; }

/* end of main */

/* footer */

#templatemo_footer  {
	width: 840px;
	height: 136px;
	padding: 30px;
	text-align: center;
	color: #161616;
/*	text-shadow: 0px 1px 1px #FFFFFF; */
	background: url(../images/templatemo_footer.png) no-repeat;
}

#templatemo_footer a {
	text-decoration: none;
	color: #161616;
}

#templatemo_footer a:hover {
	color: #990000;
}

/* end of footer */

嘻嘻(#^.^#)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

锁住子锁不住

老少爷们向前冲!!!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值