csdn 部落格的css樣式 v3

來源:互聯網
上載者:User

著作權聲明:原創作品,允許轉載,轉載時請務必以超連結形式標明文章原始出版、作者資訊和本聲明。否則將追究法律責任。http://blog.csdn.net/mayongzhan - 馬永占,myz,mayongzhan

僅相隔一天就出了個v3。
修正了一個bug,firefox左側內容寬度錯誤。
修改了幾個東西
右上的搜尋預設為搜自己部落格的,
左邊隱藏個人資訊,部落格統計,
收藏的按鈕變灰,不加粗,
上一篇下一篇加到標題下面,

詳見紅字

#SubscriptionList {display:none;}
#csdnblog_sidebar {width:200px;}
#csdnblog_sidebar div.gutter{width:100%;margin:0px;}
.aboutauthor{padding:0px;border-left:0px;border-bottom:0px;border-top:0px;border-right:1px dotted #AAA;}
#csdnblog_content {width:800px;}
#csdnblog_allwrap {min-width:1000px;}
.publiclist_sidebar ul li {margin:0px;padding:0px;}
.publiclist_sidebar ul li a {margin:0px;padding:0px;}
.user_article h1 img{display:none;}
.user_article p{text-indent:0em;}
.blogstory p{text-indent:0em;}
.aboutauthor{width:200px;}

以下是css解決不了的,所以要使用js解決.
先引用google的jquery,引用自己站的jquery也行。
對了還有一個highlighter.js
csdn竟然用了這個,而且用的一塌糊塗,嚴重影響了我的js.不過這個還是小問題,
大問題是竟然csdn寫的js有錯誤document.write裡面竟然有語法錯誤,他們自己還不知道,鬱悶啊.忍了,等他們發現,我的這個東西就正常了.

<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js">
</script>
<script type="text/javascript" src="/SyntaxHighlighter/jquery.highlighter.js"></script>
<script language="javascript" type="text/javascript">
$jQ = jQuery;
$jQ("dd:contains('次訪問,排名'):first").html("");
$jQ("dt:contains('ID:'):first span").html("");
$jQ("dt:contains('的文章'):first").html("");
$jQ("dd:contains('原創'):first").html("");
$jQ("dd:contains('翻譯'):first").html("");
$jQ("dd:contains('轉載'):first").html("");
$jQ("dd:contains('評論'):first").html("");
$jQ("#Search_ddlSearchScope > option[value!='all']").attr("selected","true");
$jQ(document).ready(function(){
var blogTitle = $jQ('.user_article > h1');
var blogNextPrev =$jQ("#Post\\.ascx_ViewPost_PreviousAndNextEntriesDown");
if (blogNextPrev.html() != null) {
blogTitle.html(blogTitle.html() + "<div> </div><div>" + blogNextPrev.html() + "</div>");
}
$jQ('.fav_csdnstylebykimi').css("color","#999999");
$jQ('.fav_csdnstylebykimi').css("font-weight","normal");
});
</script>

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.