博客园页⾯定制CSS代码-博客侧边栏公告-页⾸Html代码-页脚
Html代码
设置代码前说明:⾸先你得选⽤博客⽪肤darkgreentrip,否则会出错
页⾯定制CSS代码:html主页
说明:标注颜⾊位置可⾃⾏修改,第12⾏设置主页底层图⽚,可⾃⾏修改
#home {
margin: 0 auto;
width: 80%;/*原始65*/
min-width: 980px;/*页⾯顶部的宽度*/
background-color: rgba(245, 245, 245, 0.7);
padding: 30px;
margin-top: 50px;
margin-bottom: 50px;
box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
}
body {
background: rgba(12, 100, 129, 1) url('imagesblogs/cnblogs_com/Penn000/1013849/o_fr.jpg') fixed no-repeat;
background-position: 50% 5%;
background-size: cover;
}
#blogTitle {
height: 100px;  /*⾼度*/
clear: both;
background-color: rgba(245, 245, 245, 0);
}
#blogTitle h1 {
font-size: 36px;
font-weight: bold;
line-height: 1.8em;/*原始 1.6em*/
margin-top: 10px;/*原始 15px */
color: #548B54;
}
#blogTitle h2 {
font-weight: normal;
font-size: 17px;/*原始 16px ;font-size: 1.0rem;*/
line-height: 1.8;
color: #111;
font-weight: bold;
text-align: right;
float: right;
}
/*标题栏横幅颜⾊修改*/
#navigator{
background-color: rgba(0, 102, 255, 0.9);
}
#navList a:link, #navList a:visited, #navList a:active{
color: #eee;
font-size: 18px;
font-weight: bold;
}
.blogStats{
color: #eee;
}
.postTitle {
border-left: 8px solid rgba(0, 94, 255, 0.68);/*⼩⽅块颜⾊*/
margin-left: 10px;
margin-bottom: 10px;
font-size: 20px;
float: right;
width: 100%;
clear: both;
}
.postTitle a:link, .postTitle a:visited, .postTitle a:active {
color: #005eff;/*⽂章标题颜⾊*/
transition: all 0.4s linear 0s;
}
.
postTitle a:hover {
margin-left: 30px;
color: #0f3647;
text-decoration: none;
}
.postCon {
float: right;
line-height: 1.5em;
width: 100%;
clear: both;
padding: 10px 0;
}
.day .postTitle a {
padding-left: 10px;
}
.day {
background: rgba(255, 255, 255, 0.5);
}
/*⽂章附加信息*/
.postDesc {
background: url(images/posted_time.png) no-repeat 0 1px;
color: #757575;
float: left;
width: 100%;
clear: both;
text-align: left;
font-family: "微软雅⿊" , "宋体" , "⿊体" ,Arial;
font-size: 13px;
padding-right: 20px;/*5px  padding-left: 90px;posted 发表时间左边距离*/
margin-top: 20px;
line-height: 1.8;
padding-bottom: 35px;
}
.
newsItem, .catListEssay, .catListLink, .catListNoteBook, .catListTag, .catListPostCategory,
.catListPostArchive, .catListImageCategory, .catListArticleArchive, .catListView,
.catListFeedback, .mySearch, .catListComment, .catListBlogRank, .catList, .catListArticleCategory ,#blog-calendar {
background: rgba(255, 255, 255, 0.5);
margin-bottom: 35px;
word-wrap: break-word;
}
.CalTitle{
background: rgba(255, 255, 255, 0);
}
.catListTitle{
background-color: rgba(0, 94, 255, 0.9);/*侧边栏标题颜⾊*/
}
#topics{
background: rgba(255, 255, 255, 0.5);
}
.c_ad_block{
display: none;
}
#tbCommentBody{
width: 100%;
height: 200px;
background: rgba(255, 255, 255, 0.5);
}
#q{background: rgba(255, 255, 255, 0);}
.CalNextPrev{background: rgba(255, 255, 255, 0);}
blogs_code{
background: rgba(255, 255, 255, 0);
}
blogs_code div{
background: rgba(255, 255, 255, 0);
}
blogs_code_toolbar{
background: rgba(255, 255, 255, 0);
}
.entrylist{
background: rgba(255, 255, 255, 0.5);
}
#main{
min-width: 640px;
}
博客主页展⽰(可⾃⾏修改部分组件颜⾊):
博客侧边栏公告代码:
说明:公告栏时钟控件与⼩⽼⿏游戏控件可⾃⾏删减,换头像可⾃⾏修改图⽚地址
<style>
#back-top {
position: fixed;
bottom: 10px;
right: 5px;
z-index: 99;
}
#back-top span {
width: 50px;
height: 64px;
display: block;
background:url(imagesblogs/cnblogs_com/seanshao/855033/o_rocket.png) no-repeat center center;
}
#back-top a{outline:none}
</style>
<script type="text/javascript">
$(function() {
// hide #back-top first
$("#back-top").hide();
// fade in #back-top
$(window).scroll(function() {
if ($(this).scrollTop() > 500) {
$('#back-top').fadeIn();
} else {
$('#back-top').fadeOut();
}
});
// scroll body to 0px on click
$('#back-top a').click(function() {
$('body,html').animate({
scrollTop: 0
}, 800);
return false;
});
});
<!--  个⼈头像  -->
</script>
<p id="back-top" ><a href="#top"><span></span></a></p>
<img src="wwwblogs/images/cnblogs_com/knny/1551068/t_3d6c20c133%20(2).jpg" alt="⼀缕暖风" class="img_avatar" width="210px" height="210px" >
<!-- 公告栏时钟控件 -->
<embed wmode="transparent" src="filesblogs/files/jingmoxukong/honehone_clock_tr.swf" quality="high" bgcolor="#F
DF6E3"
width="230" height="110"
name="honehoneclock" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash"
pluginspage="www.macromedia/go/getflashplayer">
<!-- ⼩⽼⿏游戏控件 -->
2 <div className="sidebarMouse"><object type="application/x-shockwave-flash"
data="filesblogs/files/jingmoxukong/mouse.swf?
up_bodyColor=f0e9cc&up_feetColor=D4C898&up_eyeColor=000567&up_wheelSpokeColor=DEDEDE&up_wheelColor=FFFFFF&a mp;up_waterColor=E0EFFF&up_earColor=b0c4de&up_wheelOuterColor=FF4D4D&up_snoutColor=F7F4E9&up_bgColor=F0E4E4& amp;up_foodColor=cba920&up_wheelCenterColor=E4EB2F&up_tailColor=E6DEBE&"          width="230" height="160"><param
name="movie"          value="filesblogs/files/jingmoxukong/mouse.swf?
up_bodyColor=f0e9cc&up_feetColor=D4C898&up_eyeColor=000567&up_wheelSpokeColor=DEDEDE&up_wheelColor=FFFFFF&a mp;up_waterColor=E0EFFF&up_earColor=b0c4de&up_wheelOuterColor=FF4D4D&up_snoutColor=F7F4E9&up_bgColor=F0E4E4& amp;up_foodColor=cba920&up_wheelCenterColor=E4EB2E&up_tailColor=E6DEBE&"><param name="AllowScriptAccess"
value="always"><param name="wmode" value="opaque"></object></div>
动态时钟控件图⽰:
动态⼩⽼⿏游戏控件图⽰:
页⾸Html代码:
/*页⾸的跳转连接,*/

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。