简单的网页才好学习嘛!!!

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

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

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

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

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

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

麻雀虽小,五脏俱全。

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

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

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

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

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

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

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

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

<!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>Greenhome Template, Free XHTML CSS Website Template</title>
<meta name="keywords" content="Greenhome Template, Free XHTML CSS Website Layout" />
<meta name="description" content="Greenhome Template, Free XHTML CSS Layout" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="templatmeo_container_outter"><div id="templatmeo_container_inner_01"><div id="templatmeo_container_inner_02"><div id="templatemo_menu"><ul><li><a href="#" class="first">Home</a></li><li><a href="#" class="current">Products</a></li><li><a href="#">Gallery</a></li><li><a href="#">Company</a></li><li><a href="#">Contact</a></li></ul></div> <!-- end of menu --><div id="templatemo_content"><div id="content_top"></div><div id="content_top_left"></div><div class="section_w680  dashed_border_bottom"><div class="section_w300 dashed_border_right"><h2><span>01</span>Welcome to Greenhome</h2><div class="section_w70"><img class="image_wrapper" src="images/templatemo_image_02.jpg" alt="Free Template" /></div><div class="section_w220"><p>This is a free CSS template provided by <a href="http://www.xxxx.com/" target="_parent">xxxx</a> <a href="http://guantaow.taobao.com" target="_blank">xxxx</a>. You may use this template in your websites.</p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac magna nisl. Quisque et nulla nec magna laoreet molestie sed eu enim. Nullam sit amet nisi eu ipsum malesuada tristique non sit amet nulla. </p><div class="button_01 button_green"><a href="#">Read more</a></div> </div><div class="cleaner"></div></div><div id="site_title"></div><div class="cleaner"></div></div><div class="section_w680"><div class="section_w300 dashed_border_right"><h2><span>02</span>Lorem ipsum dolor</h2><div class="section_w70"><img class="image_wrapper" src="images/templatemo_image_01.jpg" alt="Web Template" /></div><div class="section_w220"><p>Praesent vitae nisi sit amet odio pulvinar rutrum sed porta sem. Vestibulum convallis hendrerit feugiat. Morbi non lacus est, sit amet viverra augue. Phasellus adipiscing pharetra ipsum, sit amet auctor erat mollis eget. Nulla facilisi. Phasellus posuere turpis est, eu pulvinar leo. Nullam nec diam purus. Ut semper laoreet orci, id lacinia sem sodales interdum.</p><div class="button_01 button_orange"><a href="#">Read more</a></div> </div><div class="cleaner"></div></div><div class="section_w300"><h2><span>03</span>Featured Products</h2><div class="section_w70"><img class="image_wrapper" src="images/templatemo_image_02.jpg" alt="CSS Template" /></div><div class="section_w220"><h3>Donec pellentesque viverra</h3><p>Duis pulvinar accumsan sagittis. Suspendisse potenti. Donec ultricies nibh vitae nisl suscipit quis mollis dolor eleifend.</p></div><div class="cleaner"></div><div class="section_w70"><img class="image_wrapper" src="images/templatemo_image_01.jpg" alt="HTML Template" /></div><div class="section_w220"><h3>Maecenas ut ante sit amet</h3><p>Aenean porttitor tristique sem, nec sollicitudin enim faucibus egestas. Phasellus sit amet ligula sed sem posuere laoreet nec feugiat felis. </p><div class="button_01 button_blue"><a href="#">Read more</a></div> </div><div class="cleaner"></div></div></div><div class="cleaner"></div><div id="content_bottom"></div></div><div id="templatemo_footer"><div class="footer_section left_section"><h4>Privacy Policy</h4><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac magna nisl. Quisque et nulla nec magna laoreet molestie sed eu enim.</p></div><div class="footer_section right_section"><h4>Partners</h4><ul class="footer_list"><li><a href="http://www.xxxx.com/" target="_parent">xxxx</a></li><li><a href="#" target="_parent">Flash Templates</a></li><li><a href="#/blog" target="_parent">Web Design Blog</a></li></ul></div><div class="margin_bottom_10"></div>Copyright © 2024 <a href="#"><strong>Your Company Name</strong></a> | from <a href="http://www.xxxx.com" target="_parent">xxxx</a> | Validate <a href="http://validator.w3.org/check?uri=referer">XHTML</a> &amp; <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>   </div> <!-- end of footer --><div class="cleaner"></div></div> <!-- end of inner container--><div class="cleaner">&nbsp;</div>        </div> <!-- end of inner container -->
</div> <!-- end of container outter -->
</body>
</html>

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

下面是css

/*
CSS Credit: http://www.moobnn.com
*/body {margin: 0;padding: 0;line-height: 1.5em;font-family: Verdana, Geneva, sans-serif;font-size: 11px;color: #000000;background: #b9d5ff url(images/templatemo_main_bg.jpg) repeat-x top;
}a:link, a:visited { color: #000000; text-decoration: underline; font-weight: normal; } 
a:active, a:hover { color: #0066FF; text-decoration: none; }p { margin: 0px; padding: 0 0 10px 0; }img { margin: 0px; padding: 0px; border: none; }.cleaner { clear: both; width: 100%; height: 0px; font-size: 0px;  }.margin_bottom_10 { clear: both; width: 100%; height: 10px; font-size: 1px;	}
.margin_bottom_20 { clear: both; width: 100%; height: 20px; font-size: 1px;	}
.margin_bottom_30 { clear: both; width: 100%; height: 30px; font-size: 1px;	}
.margin_bottom_40 { clear: both; width: 100%; height: 40px; font-size: 1px;	}
.margin_bottom_50 { clear: both; width: 100%; height: 50px; font-size: 1px;	}
.margin_bottom_60 { clear: both; width: 100%; height: 60px; font-size: 1px;	}.margin_right_20 { margin-right: 20px; }
.margin_right_40 { margin-right: 40px; }.dashed_border_bottom {border-bottom: 1px dashed #cccccc;
}.dashed_border_right {border-right: 1px dashed #cccccc;
}.button_01 a {clear: both;display: block;width: 195px;height: 22px;padding-top: 4px;padding-left: 10px;color: #ffffff;font-size: 12px;font-weight: normal;text-decoration: none;
}
.button_01 a:hover {color: #000000;
}.button_green {background: url(images/templatemo_readmore_green.jpg) no-repeat;
}.button_blue {background: url(images/templatemo_readmore_blue.jpg) no-repeat;
}.button_orange {background: url(images/templatemo_readmore_orange.jpg) no-repeat;
}.fl { float: left; }
.fr { float: right; }h1 {margin: 0px;padding: 10px 0;font-size: 34px;color: #ffffff;font-weight: normal;	
}h2 {height: 15px;margin: 0 0 20px 0;padding: 18px 0 10px 0;font-size: 24px;color: #757575;font-weight: normal;	letter-spacing: -2px;background: url(images/templatemo_icon_01.jpg) left bottom no-repeat;
}h2 span {float: left;padding-left: 3px;padding-right: 10px;display: block;color: #ffffff;
}h3 {margin: 0;padding: 0;font-size: 12px;color: #000000;font-weight: bold;	
}h4 {margin: 0 0 5px 0;padding: 0;font-size: 12px;color: #99FF00;font-weight: bold;	
}.em_text {color: #00ffff;
}.image_wrapper{margin-top: 3px;
}.fl_image {float: left;margin-right: 10px 
}.fr_image {float: right;margin-left: 10px 
}#templatmeo_container_outter {width: 940px;padding: 0 10px;margin: 0 auto;	background: url(images/templatemo_container_outter_bg.png) repeat-y;
}#templatmeo_container_inner_01 {width: 940px;background: url(images/templatemo_container_inner_bottom.jpg) center bottom no-repeat;	
}#templatmeo_container_inner_02 {width: 940px;padding-top: 40px;background: url(images/templatemo_main_bg.jpg) repeat-x;	
}/* menu */#templatemo_menu {clear: both;width: 940px;padding: 0 10px;margin-bottom: 34px;	background: url(images/templatemo_menu_bg.jpg) no-repeat;
}#templatemo_menu ul {width: 608px;overflow: hidden;padding: 0px;margin: 0px auto;list-style: none;
}#templatemo_menu ul li {padding: 0px;margin: 0px;display: inline;
}#templatemo_menu ul li a {float: left;display: block;height: 24px;width: 120px;padding: 1px 0;font-size: 18px;text-align: center;font-weight: normal;text-decoration: none;color: #ffffff;	background: url(images/templatemo_menu_right.jpg) right top no-repeat;outline: none;border-left: 2px solid #ffffff;
}#templatemo_menu li a:hover, #templatemo_menu li .current {color: #99FF00;
}#templatemo_menu li .first {border: none;
}/* end of menu *//* content */#templatemo_content {clear: both;position: relative;width: 680px;padding: 0 130px 0 150px;margin-top: 24px;margin-bottom: 76px;background: url(images/templatemo_content_repeat.png) repeat-y;
}#templatemo_content #content_top {position: absolute;top: -24px;left: 0px;width: 940px;height: 24px;background: url(images/templatemo_content_top.png) no-repeat;
}#templatemo_content #content_top_left {position: absolute;top: 0px;left: 78px;width: 30px;height: 140px;background: url(images/templatemo_content_top_left.png) no-repeat;
}#templatemo_content #content_bottom {position: absolute;bottom: -36px;left: 0px;width: 940px;height: 36px;background: url(images/templatemo_content_bottom.png) no-repeat;
}.section_w680 {width: 680px;
}.section_w300 {float: left;width: 300px;padding-right: 19px;margin-right: 20px;padding-top: 20px;padding-bottom: 20px;
}.section_w300 p {text-align: justify;margin-bottom: 10px;
}.section_w70 {float: left;width: 70px;
}.section_w220 {float: right;width: 220px;
}#site_title {float: left;width: 360px;height: 280px;margin-right: -20px;padding-bottom: 20px;background: url(images/templatemo_logo.jpg) no-repeat;
}/* end of content *//* footer */#templatemo_footer {clear: both;overflow: hidden;width: 720px;padding: 15px 110px 0 110px;height: 130px;text-align: center;color: #ffffff;
}#templatemo_footer a {color: #ffffff;
}#templatemo_footer .footer_section {overflow: hidden;width: 300px;height: 90px;
}.left_section {float: left;text-align: left;
}.right_section {float: right;text-align: right;
}.footer_list {margin: 0px;padding: 0px;list-style: none;
}.footer_list li {padding: 0px;margin: 0px;
}#templatemo_footer .footer_list li a {color: #ffff00;text-decoration: none;
}#templatemo_footer .footer_list li a:hover {text-decoration: underline;
}
/* end of footer */

300多行的css也不算长,好学得嘞!

嘻嘻(#^.^#)

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/743939.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

LLVM源码分析

LLVM源码分析 LLVM IR 使用LLVM IR编程 LLVM语言参考手册 llvm-pass-tutorial 推荐 LLVM CMU 教案 深入剖析-iOS-编译-Clang—LLVM LLVM_proj LLVM编程索引 llvm源码浏览带跳转 llvm-clang-samples llvm-tutor A collection of LLVM passes (with tests and build…

idea中操作Git将本地仓库代码完整提交到Gittee中

文章目录 1.在idea中打开你的项目根目录&#xff0c; idea中vcs -> create Git Repository2.选中你的项目所在的目录3. git commit -m"你的备注"4. 直接强制本地仓库覆盖远程仓库的东西5.或者直接使用git 进行这个操作 1.在idea中打开你的项目根目录&#xff0c; …

【Node.js】-下载、安装和简单使用

概述 Node.js是一个基于Chrome V8引擎的JavaScript运行环境&#xff0c;它使得JavaScript能够在服务器端运行。这意味着开发者可以使用JavaScript来编写服务器端的程序&#xff0c;从而处理来自客户端的请求和响应。Node.js的出现极大地丰富了Web开发的手段和方式&#xff0c;…

C语言(循环)单元练习二

一、单项选择题 1. 以下程序的输出结果是______。 #include<stdio.h> void main() { int num0; while(num<2) { num; printf("%d",num); } } A. 2 B. 1 C. 123 D. 12 参考标准答案 :C 2. 两次运行下面…

【Python/crawl】如何使用Python爬虫将一系列网页上的同类图片下载到本地

【需求】 从网页https://www.zhainq.com/%e7%be%8e%e5%a5%b3%e5%86%99%e7%9c%9f%e6%9c%ba%e6%9e%84/%e6%97%a5%e6%9c%ac%e7%be%8e%e5%a5%b3%e5%86%99%e7%9c%9f/109012.html 开始&#xff0c;有十七页&#xff0c;每页都有大漂亮“小濑田麻由”的若干图片&#xff0c;想要将其…

搭建 zabbix 监控环境

搭建 zabbix 监控环境 Zabbix 简介… 5 1.1. 介绍… 5 1.2. zabbix 的主要特点&#xff1a;…5 1.3. Zabbix 主要功能&#xff1a;…6CentOs7… 7 2.1. 虚拟机安装操作步骤… 7 2.2. 网卡配置… 8 1&#xff0e; 打开设置…8 2&#xff0e; 修改配置文件…8 3&#xff0e; 使用…

Gitee的注册和代码提交(附有下载链接)

目录 一、Git的下载和安装二、安装图形化界面工具三、在Gitee上创建仓库四、如何把仓库开源五、Clone远程仓库到本地六、拷贝代码到本地的仓库七、Add-Commit-Push到远程仓库八、可能出现的问题8.1 建议在本地仓库直接创建项目8.2 第一次Push可能出现的问题8.3 怎么删除Gitee上…

Element-Plus: Select组件实现滚动分页加载

Element-Plus的select组件并没有自带滚动分页加载的功能&#xff0c;其虽然提供了自定义下拉菜单的底部的方式可以自定义上一页及下一页操作按钮的方式进行分页加载切换&#xff1a; 但如果不想通过点击分页按钮的方式&#xff0c;利用滚动触底进行下一页加载的话&#xff0c;…

3.4 XPath、Beautiful Soup 与 Pyquery的基本使用总结和比较

目录 一、三者共同点 二. 三者差异与基本使用 (一). 使用示例&#xff1a; (二). XPath (三). Beautiful Soup (四). pyquery (五). 三者差异 三.练习实战 一、三者共同点 导入&#xff0c;获得网页文本&#xff0c;str 和 bytes 类型均可作为参数传入。 import reque…

http postman

地址 &#xff1a; https://oaqas.lingyiitech.com:9800/auth-api/openapi/dingtalk-oa/topapi/message/corpconversation/asyncsend_v2?token40216bf0ceea8e56b778d537b20f5d23 https://oaqas.lingyiitech.com:9800/auth-api/openapi/dingtalk-oa/topapi/message/corpconve…

2024年太原等保测评中心名单看这里!

开年来&#xff0c;不少太原小伙伴打算做等保了。大家都在问&#xff0c;目前太原等保测评中心有哪些&#xff1f;在哪里丫&#xff1f;这不我们小编就给大家整理一下&#xff0c;仅供参考哈&#xff01; 2024年太原等保测评中心名单看这里&#xff01; 序号&#xff1a;1 …

Python入门:从基础到实践

&#x1f40d; Python入门&#xff1a;从基础到实践 &#x1f680; &#x1f31f; 引言 Python&#xff0c;作为一种高级编程语言&#xff0c;以其简洁明了的语法和强大的功能而广受欢迎。无论你是编程新手还是希望学习新语言的开发者&#xff0c;Python都是一个极佳的选择。…

接水问题(C++)

题意 学校里有一个水房&#xff0c;水房里一共装有 m个龙头可供同学们打开水&#xff0c;每个龙头每秒钟的供水量相等&#xff0c;均为 1。   现在有 n名同学准备接水&#xff0c;他们的初始接水顺序已经确定。 将这些同学按接水顺序从 1到 n编号&#xff0c;i号同学…

[C++]20.实现红黑树。

实现红黑树 一.基本概念&#xff1a;1.红黑树的概念&#xff1a;2.红黑树的性质&#xff1a; 二.实现红黑树&#xff1a;1.基本结构&#xff1a;2.插入节点的多种情况&#xff1a;1.叔叔存在且为红&#xff1a;2.叔叔不存在/存在且为黑(单旋变色)3.叔叔不存在/存在且为黑(多旋&…

C/C++中{}的用法总结(全)

C基础专栏&#xff1a;http://t.csdnimg.cn/UjhPR 目录 1.定义初始化列表&#xff08;Initializer List&#xff09; 2.类成员初始化列表 3.无默认构造函数的类的默认初始化&#xff08;C11 及以后版本&#xff09; 4.初始化器列表构造函数&#xff08;C11 及以后版本&…

计算机网络——分组延时、丢失和吞吐量

分组延迟是指从发送方发送数据包到接收方接收到数据包所经历的时间。 分组时延的四种类型&#xff1a; 传输时延、传播时延、排队时延、节点处理时延。 传输时延&#xff1a;传输时延是指分组从发送方到接收方所需的时间&#xff0c;取决于分组的长度和链路的传输速率。传输时…

centos配置nginx自动启动

查看是否存在相应的服务&#xff0c;如下&#xff0c;有nginx.service [rootnode142 ~]# systemctl list-unit-files |grep nginx nginx.service disabled 第一步&#xff1a;进入到/lib/systemd/system/目录 cd /lib/systemd/system 第二步&#xff1a;创建nginx.service文…

Docker学习之镜像管理(超详解析)

Docker镜像生命周期&#xff08;可以把docker镜像理解为虚拟机镜像&#xff09; 实验内容&#xff1a; 搜索官方仓库镜像 [rootlocalhost ~]# docker search busybox //以查找busybox为例 搜索说明&#xff1a;name镜像名称 description镜像说明 stars点赞数量 official…

四川宏博蓬达法律咨询有限公司:法律服务的行业翘楚

在当今社会&#xff0c;法律服务已经成为人们生活中不可或缺的一部分。随着法律意识的提高&#xff0c;选择一家专业、可靠的法律咨询公司显得尤为重要。四川宏博蓬达法律咨询有限公司&#xff0c;作为业内的佼佼者&#xff0c;以其卓越的服务质量和广泛的业务范围&#xff0c;…

Nacos 集群搭建

1 . 集群结构图 : 其中包括3个nacos结点&#xff0c;然后一个负载均衡器代理3个Nacos。这里负载均衡器可以使用nginx ; 我们计划的集群结构 : 三个nacos结点的地址 : 节点ipportnacos1192.168.150.18845nacos2192.168.150.18846nacos3192.168.150.18847 2 . 搭建集群 搭…