csdn部落格的css樣式 v5

來源:互聯網
上載者:User

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

- 馬永占,myz,mayongzhan

 

面對csdn極其xx的改版,徹底xx。改吧。

csdn把左右對調了一下,左邊是文章,右邊是導航,我x,你要換也要給個配置,可以手動調節行不?
左右換了之後document.ready就不需要了,注釋掉。
去公告條相容首頁和內容頁。
去掉收藏按鈕的樣式修改
調整了一下css,以適應csdn的修改。

 

詳見紅字

 

#SubscriptionList {display:none;}
#csdnblog_allwrap {width:1000px;}
#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_content div.gutter{}

.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;}

<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>&nbsp;</div><div>" + blogNextPrev.html()  + "</div>");
}
if ($jQ('#csdnblog_content > .gutter > script').length != 0) {

var csdnTempScriptSrc = $jQ('#csdnblog_content > .gutter > script')[0].src;
if (csdnTempScriptSrc == 'http://blog.csdn.net/js/PrintNotice.js' || csdnTempScriptSrc == '/js/PrintNotice.js') {
$jQ("script ~ .default_contents:first").css('display','none');
}
}
//});

</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.