日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > HTML >内容正文

HTML

小而美的个人博客——前端——blog

發布時間:2025/4/5 HTML 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 小而美的个人博客——前端——blog 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

和上一頁頁面首頁一樣也是分成了三個部分,而且導航欄和底部和上次是一樣的,要改變的內容就只有中間內容部分

在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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。