CSDN blog CSS style v3_javascript tips

Source: Internet
Author: User
Copyright Notice: Original works, allow reprint, reprint, please be sure to hyperlink form to indicate the original publication of the article, the author's information and this statement. Otherwise, legal liability will be held. Http://blog.csdn.net/mayongzhan-Ma Yongjin, Myz,mayongzhan

There was a V3 only one day apart.
Fixed a bug,firefox left content width error.
Modified a few things
The search on the right is the default for searching your own blog,
Hide personal information on the left, blog stats,
The Favorites button turns gray, not bold,
The next one is added under the heading,

See the Scarlet Letter for details

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

The following is not a CSS solution, so use JS to solve.
Google's jquery is quoted first, and you can quote your own jquery.
Yes, there's another highlighter.js.
Csdn unexpectedly use this, and use of a mess, seriously affected my JS. But this is still a small problem,
Big problem is unexpectedly csdn write JS error document.write inside unexpectedly have grammatical errors, they don't know, depressed ah. Endure, and when they find out, my this thing is normal.


<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, Rank '): First"). html ("");
$jQ ("Dt:contains (' ID: '): A-SPAN"). HTML ("");
$jQ ("Dt:contains (' article '): a"). html ("");
$jQ ("Dd:contains": "The original"). html ("");
$jQ ("Dd:contains"): HTML ("");
$jQ ("Dd:contains (' reprint '): A"). html ("");
$jQ ("Dd:contains (' comments '): a"). 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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.