記錄我在定製我的blog頁面效果時遇到的技巧及方法等。css
在首頁html內輸入如下代碼可添加博主名到頁面頂端,也可添加副標題:html
<header class="main-header" id="site-head"> <div id="top" class="vertical"> <div id="site-head-content" class="inner row"> <div class="col-md-9"> <div class="site-description"> <h2 class="blog-title">YourBlogName</h1> <h3 class="blog-description">SubtitleContent</h2> </div> </div> </div> </div> </header>
建立CSS編寫頁面字體的信息及背景圖;首先須要引入所建立的CSS,方法爲經過link標籤引入,在首頁html輸入:git
<link type="text/css" rel="stylesheet" href="https://blog-static.cnblogs.com/files/YourBolg/YourTheme.css"/>
.css
文檔到博客-管理-文件內,以便上述代碼調用關於.css
文件的定製信息包括各種標題、字體樣式、背景圖片等信息,能力有限暫不細講,但若採用其餘主題可有更便捷方法實現更換背景圖、修改字體等功能。github
在首頁html內輸入如下代碼便可實現標籤:字體
<a href="https://github.com/YourGithub"> <img style="position: fixed; top: 0; right: 0; border: 0; z-index:9999;" src="https://github.blog/wp-content/uploads/2008/12/forkme_right_red_aa0000.png?resize=149%2C149" class="attachment-full size-full" alt="Fork Me On GitHub" data-recalc-dims="1"> </a>