和上一页页面首页一样也是分成了三个部分,而且导航栏和底部和上次是一样的,要改变的内容就只有中间内容部分

在css目录里新建两个css文件

附上代码:
body{
background: url("…/images/background1.jpg");
}
.m-padded-mini{
padding: 0.2em !important;
}
.m-padded-tiny{
padding: 0.3em !important;
}
.m-padded-tb-mini{
padding-top: 0.2em !important;
padding-bottom:0.2em !important;
}
.m-padded-tb-tiny{
padding-top: 0.3em !important;
padding-bottom:0.3em !important;
}
.m-padded-tb-small{
padding-top: 0.5em !important;
padding-bottom:0.5em !important;
}
.m-padded-tb{
padding-top: 1em !important;
padding-bottom:1em !important;
}
.m-padded-tb-large{
padding-top: 2em !important;
padding-bottom:2em !important;
}
.m-padded-tb-big{
padding-top: 3em !important;
padding-bottom:3em !important;
}
.m-padded-tb-huge{
padding-top: 4em !important;
padding-bottom:4em !important;
}
.m-padded-tb-massive{
padding-top: 5em !important;
padding-bottom:5em !important;
}
.m-padded-lr-responsive{
padding-left: 4em !important;
padding-right: 4em !important;
}
.m-padded-lr{
padding-left: 4em !important;
padding-right: 4em !important;
}

/-----text-----/
.m-text{
font-weight: 300 !important;
letter-spacing: 1px !important;
line-height: 1.8;
}
.m-text-thin{
font-weight: 300 !important;
}
.m-text-spaced{
letter-spacing: 1px !important;
}
.m-text-lined{
line-height: 1.8;
}

/-----margin-----/
.m-margin-top-small{
margin-top: 0.5em !important;

}
.m-margin-top{
margin-top: 1em !important;

}
.m-margin-top-large{
margin-top: 2em !important;

}
.m-margin-tb-tiny{
margin-top: 0.3em !important;
margin-bottom: 0.3em !important;
}
.m-margin-bottom-small{
margin-bottom: 0.5em !important;
}

/-----opacity-----/
.m-opacity-mini{
opacity: 0.8 !important;
}
.m-opacity-tiny{
opacity: 0.6 !important;
}

/-----position-----/
.m-right-top{
position: absolute;
top: 0;
right: 0;
}

/-----display-----/
.m-inline-block{
display: inline-block !important;
}

/----container----/
.m-container{
max-width: 72em !important;
margin: auto !important;
}
.m-container-small{
max-width: 60em !important;
margin: auto !important;
}

/—shadow—/
.m-shadow-small{
-webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

/----color----/
.m-black{
color: #333 !important;
}

.m-mobile-show{
display: none !important;
}

@media screen and (max-width: 768px) {
.m-mobile-hide{
display: none !important;
}
.m-mobile-show{
display: block !important;
}
.m-padded-lr-responsive{
padding-left: 0 !important ;
padding-right: 0 !important;
}
.m-mobile-lr-clear{
padding-left: 0 !important ;
padding-right: 0 !important;
}
.m-mobile-wide{
width: 100% !important;
}
}

二:@charset “utf-8”;

/* 要注意表单元素并不继承父级 font 的问题 */
.typo button,.typo input,.typo select,.typo textarea {
font: 300 1em/1.8 PingFang SC, Lantinghei SC, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
}

.typo button::-moz-focus-inner,
.typo input::-moz-focus-inner {
padding: 0;
border: 0;
}

/* 去掉各Table cell 的边距并让其边重合 */
.typo table {
border-collapse: collapse;
border-spacing: 0;
}

/* 去除默认边框 */
.typo fieldset, img {
border: 0;
}

/* 块/段落引用 */
.typo blockquote {
position: relative;
color: #999;
font-weight: 400;
border-left: 1px solid #1abc9c;
padding-left: 1em;
margin: 1em 3em 1em 2em;
}

@media only screen and ( max-width: 640px ) {
.typo blockquote {
margin: 1em 0;
}
}

/* Firefox 以外,元素没有下划线,需添加 */
.typo acronym, abbr {
border-bottom: 1px dotted;
font-variant: normal;
text-decoration: none;
}

/* 添加鼠标问号,进一步确保应用的语义是正确的(要知道,交互他们也有洁癖,如果你不去掉,那得多花点口舌) */
.typo abbr {
cursor: help;
}

/* 一致的 del 样式 */
.typo del {
text-decoration: line-through;
}

.typo address, .typo caption, .typo cite, .typo code, .typo dfn, .typo em, .typo th, .typo var {
font-style: normal;
font-weight: 400;
}

/* 去掉列表前的标识, li 会继承,大部分网站通常用列表来很多内容,所以应该当去 */
.typo ul,.typo ol {
list-style: none;
}

/* 对齐是排版最重要的因素, 别让什么都居中 */
.typo caption,.typo th {
text-align: left;
}

q:before, q:after {
content: ‘’;
}

/* 统一上标和下标 */
.typo sub, .typo sup {
font-size: 75%;
line-height: 0;
position: relative;
}

:root sub, :root sup {
vertical-align: baseline; /* for ie9 and other modern browsers */
}

.typo sup {
top: -0.5em;
}

.typo sub {
bottom: -0.25em;
}

/* 让链接在 hover 状态下显示下划线 */
.typo a {
color: #1abc9c;
}

a:hover {
text-decoration: underline;
}

.typo a {
border-bottom: 1px solid #1abc9c;
}

.typo a:hover {
border-bottom-color: #555;
color: #555;
text-decoration: none;
}

/* 默认不显示下划线,保持页面简洁 */
ins, a {
text-decoration: none;
}

/* 专名号:虽然 u 已经重回 html5 Draft,但在所有浏览器中都是可以使用的,

  • 要做到更好,向后兼容的话,添加 class=“typo-u” 来显示专名号
  • 关于 标签:http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-u-element
  • 被放弃的是 4,之前一直搞错 http://www.w3.org/TR/html401/appendix/changes.html#idx-deprecated
  • 一篇关于 标签的很好文章:http://html5doctor.com/u-element/
    */
    u, .typo-u {
    text-decoration: underline;
    }

/* 标记,类似于手写的荧光笔的作用 */
mark {
background: #fffdd1;
border-bottom: 1px solid #ffedce;
padding: 2px;
margin: 0 5px;
}

/* 代码片断 */
pre, code, pre tt {
font-family: Courier, ‘Courier New’, monospace;
}

pre {
background: #f8f8f8;
border: 1px solid #ddd;
padding: 1em 1.5em;
display: block;
-webkit-overflow-scrolling: touch;
}

/* 一致化 horizontal rule */
hr {
border: none;
border-bottom: 1px solid #cfcfcf;
margin-bottom: 0.8em;
height: 10px;
}

/* 底部印刷体、版本等标记 /
small, .typo-small,
/
图片说明 */
figcaption {
font-size: 0.9em;
color: #888;
}

strong, b {
font-weight: bold;
color: #000;
}

/* 可拖动文件添加拖动手势 */
[draggable] {
cursor: move;
}

.clearfix:before, .clearfix:after {
content: “”;
display: table;
}

.clearfix:after {
clear: both;
}

.clearfix {
zoom: 1;
}

/* 强制文本换行 */
.textwrap, .textwrap td, .textwrap th {
word-wrap: break-word;
word-break: break-all;
}

.textwrap-table {
table-layout: fixed;
}

/* 提供 serif 版本的字体设置: iOS 下中文自动 fallback 到 sans-serif */
.serif {
font-family: Palatino, Optima, Georgia, serif;
}

/* 保证块/段落之间的空白隔行 */
.typo p, .typo pre, .typo ul, .typo ol, .typo dl, .typo form, .typo hr, .typo table,
.typo-p, .typo-pre, .typo-ul, .typo-ol, .typo-dl, .typo-form, .typo-hr, .typo-table, blockquote {
margin-bottom: 1.2em
}

h1, h2, h3, h4, h5, h6 {
font-family: PingFang SC, Verdana, Helvetica Neue, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
font-weight: 100;
color: #000;
line-height: 1.35;
}

/* 标题应该更贴紧内容,并与其他块区分,margin 值要相应做优化 */
.typo h1, .typo h2, .typo h3, .typo h4, .typo h5, .typo h6,
.typo-h1, .typo-h2, .typo-h3, .typo-h4, .typo-h5, .typo-h6 {
margin-top: 1.2em;
margin-bottom: 0.6em;
line-height: 1.35;
}

.typo h1, .typo-h1 {
font-size: 2em;
}

.typo h2, .typo-h2 {
font-size: 1.8em;
}

.typo h3, .typo-h3 {
font-size: 1.6em;
}

.typo h4, .typo-h4 {
font-size: 1.4em;
}

.typo h5, .typo h6, .typo-h5, .typo-h6 {
font-size: 1.2em;
}

/* 在文章中,应该还原 ul 和 ol 的样式 */
.typo ul, .typo-ul {
margin-left: 1.3em;
list-style: disc;
}

.typo ol, .typo-ol {
list-style: decimal;
margin-left: 1.9em;
}

.typo li ul, .typo li ol, .typo-ul ul, .typo-ul ol, .typo-ol ul, .typo-ol ol {
margin-bottom: 0.8em;
margin-left: 2em;
}

.typo li ul, .typo-ul ul, .typo-ol ul {
list-style: circle;
}

/* 同 ul/ol,在文章中应用 table 基本格式 */
.typo table th, .typo table td, .typo-table th, .typo-table td, .typo table caption {
border: 1px solid #ddd;
padding: 0.5em 1em;
color: #666;
}

.typo table th, .typo-table th {
background: #fbfbfb;
}

.typo table thead th, .typo-table thead th {
background: #f1f1f1;
}

.typo table caption {
border-bottom: none;
}

/* 去除 webkit 中 input 和 textarea 的默认样式 */
.typo-input, .typo-textarea {
-webkit-appearance: none;
border-radius: 0;
}

.typo-em, .typo em, legend, caption {
color: #000;
font-weight: inherit;
}

/* 着重号,只能在少量(少于100个字符)且全是全角字符的情况下使用 */
.typo-em {
position: relative;
}

.typo-em:after {
position: absolute;
top: 0.65em;
left: 0;
width: 100%;
overflow: hidden;
white-space: nowrap;
content: “・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・”;
}

/* Responsive images */
.typo img {
max-width: 100%;
}

在中间内容部分又分为多个小部分,
第一个部分图片:

文章内容部分:


中间内容部分还包括了点击赞赏就会跳出支付宝和微信二维码:

博客信息

评论区:

<div class="ui teal segment"><div class="ui threaded comments"><h3 class="ui dividing header">评论</h3><div class="comment"><a class="avatar"><img src="./static/images/8.jpg"></a><div class="content"><a class="author">Matt</a><div class="metadata"><span class="date">Today at 5:42PM</span></div><div class="text">How artistic!</div><div class="actions"><a class="reply">回复</a></div></div></div><div class="comment"><a class="avatar"><img src="./static/images/8.jpg"></a><div class="content"><a class="author">李总</a><div class="metadata"><span class="date">昨天 12:30AM</span></div><div class="text"><p>这对我的研究非常的有用,谢谢!</p></div><div class="actions"><a class="reply">回复</a></div></div><div class="comments"><div class="comment"><a class="avatar"><img src="./static/images/8.jpg"></a><div class="content"><a class="author">张三</a><div class="metadata"><span class="date">Just now</span></div><div class="text">你总是对的</div><div class="actions"><a class="reply">回复</a></div></div></div></div></div><div class="comment"><a class="avatar"><img src="./static/images/8.jpg"></a><div class="content"><a class="author">Joe Henderson</a><div class="metadata"><span class="date">5 days ago</span></div><div class="text">Dude, this is awesome. Thanks so much</div><div class="actions"><a class="reply">回复</a></div></div></div></div>

留言框:

小而美的个人博客——前端——blog相关推荐

  1. 小而美的个人博客——前端——types and archives

    老规矩先拿出我们的上次准备好的模板,还是主要改变中间部分的内容,今天的内容叫上,因和上次的重合都很高,所有我们会复制上次大量的代码 看到图片就知道上次的集合是大体都是一样的 第一部分: 复制上次的标签 ...

  2. 小而美的个人博客——前端——about

    今天我们要做的就是关于这个页面: 从个图片上看主要是两个内容,第二个部分是比较复杂的 这里插入图片我们就忽略了 直接看第二个部分的第一个小的部分 附上代码: 第二部分: 附上代码: 第三部分: 附上代 ...

  3. 小而美的个人博客——前端——tags

    如图所示我们这里要单独办之前我们写过的导航栏部分和底部部分单独放在一个心的文件上,因为我们之后的很多的页面都是在这个的基础之上来进行开发,只是中间内容部分会变化. 今天我们要做的就是tags这个页面, ...

  4. 【收藏】go博客 zxysilent / blog

    一个go.echo.vue 开发的快速.简洁.美观.前后端分离的个人博客系统(blog).也可方便二次开发为CMS(内容管理系统)和各种企业门户网站(正在更新权限管理) blog.zxysilent. ...

  5. 斌伯的博客园Blog开张大吉

    using System; namespace BinBo {       class BinBoBlog       {              static void Main(string[] ...

  6. JavaScript综合项目:博客前端

    文章目录 项目1 博客前端:理解JavaScript库 一.项目介绍 1.博客主页 2.微博主页 二.理解JavaScript库 三.创建基础库 项目1 博客前端:理解JavaScript库 一.项目 ...

  7. 新手搭建 WordPress 网站终极解决方案 基于 Bitnami 堆栈快速搭建完美个人博客(Blog)

    为了搭建一个自己的博客,对于没有相关知识的我来说,真的时相当不容易,经过很长时间的摸索研究,总算是搭起了这个博客(Blog),那么第一篇文章就是来记录一下,经过反复的折腾后感觉最适合我自己的一个方法, ...

  8. 一个小而美的博客——前端——index

    在这里就提一些前期的工作准备了,我们要用webstrom来进行我们前端部分的开发 创建一个叫 blog的项目,项目的结构如下图 创建index首页 我们index的页面布局主要分成了三个部分,分别是导 ...

  9. Spring boot开发小而美的个人博客

    1.功能 2.页面设计与开发 2.1设计 前端展示:首页.详情页.分类.标签.归档.关于我 后台管理:模板页 2.2页面开发 创建blog 在blog里创建static文件夹,在static里面创建c ...

最新文章

  1. Java程序猿笔记——基于redis分布式锁实现“秒杀”
  2. Struts 2的文件上传
  3. 《可穿戴创意设计:技术与时尚的融合》一一第2章 与可穿戴设备有关的故事...
  4. [XSY] 树与图(树形DP、生成函数、分治NTT、重链剖分)
  5. php和c语言那个竞争大,【后端开发】php和c语言哪个难
  6. 高效率去掉js数组中重复项
  7. Swift4.0复习协议
  8. 谭浩强C语言第四版第九章课后习题7--9题(建立,输出,删除,插入链表处理)...
  9. 动态创建Sql Server数据库相关(全)
  10. centos7 防火墙_【Linux简单实用小命令001】CentOS 7、8的防火墙端口开放
  11. layui扩展第三方模块_Layui集成第三方插件nicescroll
  12. java怎么解析json_基于java解析JSON的三种方式详解
  13. iOS调用百度地图 V2.3.0
  14. 华为机式(矩阵相乘)
  15. 【Grasshopper基础13】创建可在画布上自由传递的自定义类型数据(上)—— IGH_Goo接口的重要性及其实现
  16. MyISAM 与 InnoDB
  17. DPDK-RSS负载均衡分流
  18. Windows11不显示WiFi图标
  19. 经典算法——直接插入排序
  20. 视频缓存VideoCache

热门文章

  1. 重建输入表 - 脱壳篇04
  2. Winform开发框架之混合型框架的实现
  3. linux tomcat 进程杀掉_Linux下Tomcat的启动、关闭、杀死进程
  4. acs880变频器选型手册_据说这是变频器知识里讲的最全的了,小编拿来分享给大家!...
  5. git 移动分支指针_git 分支( branch ) 的基本使用
  6. 【Paper】2021_Analysis of the Consensus Protocol of Heterogeneous Agents with Time-Delays
  7. 【控制】《多智能体系统一致性与复杂网络同步控制》郭凌老师-第3章-具有扩散作用的多智能体系统领导-跟随一致性
  8. 七、Linux串口编程
  9. GitNote 基于 Git 的跨平台笔记软件正式发布
  10. 《C++入门经典(第6版)》——1.3 创建您的第一个程序