如何在博客园中查看别人的自定义样式?
很简单。找到他的主页,如果你用的是google浏览器,鼠标右键点击检查-Sources->customcss
custom英文的意思就是定制的意思。这个就是了。
你可以把这些样式 放到你后台管理的页面定制css代码框里面。
下面是我个人的CSS样式:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | /*可折叠的代码区1背景色*/ .cnblogs_code { background-color: #f5f5f5; } /*代码字体*/ .cnblogs_code pre { font-family: Consolas !important; } .cnblogs_code span { font-family: Consolas !important; } /*评论框*/ div.commentform textarea.comment_textarea { line-height: 2; /*外边距*/ color: #0d07effa; background: #dee7de; letter-spacing: 2px; /*字体间距*/ } /*评论按钮*/ .comment_btn:hover { height: 41px; width: 96px; margin: 2px; padding: 4px; line-height: 23px; background-color: lightslategray; border: outset #edb2b2 3px; } /*关注按钮*/ #green_channel #green_channel_follow { background-color: #e33100; -webkit-animation-name: bigAssButtonPulse; -webkit-animation-duration: 1s; -webkit-animation-timing-function: linear; -webkit-animation-iteration-count: infinite; } /*好文要顶*/ #green_channel #green_channel_digg { background-color: #ff1493; } /*h2*/ #cnblogs_post_body h2 { font-size: 16px; font-weight: bold; line-height: 1.5; margin: 10px 0; } #cnblogs_post_body h2 { color: #fff; background-color: #333; -moz-border-radius: 3px; border-radius: 3px; padding: 3px; margin: 10px 0px; text-shadow: 2px 2px 3px #404040; } /*分类标签样式*/ .catListTag ul li { float: left; margin: 0 0 7px 8px; position: relative; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 0.75em; font-weight: bold; text-decoration: none; color: #996633; text-shadow: 0px 1px 0px rgba(255, 255, 255, .4); padding: 0.417em 0.417em 0.417em 0.917em; border-top: 1px solid #83a; border-right: 1px solid #f33926c4; border-bottom: 1px solid #83a; -webkit-border-radius: 0 0.25em 0.25em 0; -moz-border-radius: 0 0.25em 0.25em 0; border-radius: 0 0.25em 0.25em 0; filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, StartColorStr='#feda71', EndColorStr='#feba47'); -webkit-box-shadow: inset 0 1px 0 #faeaba, 0 1px 1px rgba(0, 0, 0, .1); -moz-box-shadow: inset 0 1px 0 #faeaba, 0 1px 1px rgba(0, 0, 0, .1); box-shadow: inset 0 1px 0 #faeaba, 0 1px 1px rgba(0, 0, 0, .1); } .catListTag ul li:hover { -webkit-animation-name: bigAssButtonPulse; -webkit-animation-duration: 1s; -webkit-animation-timing-function: linear; -webkit-animation-iteration-count: infinite; background-image: -webkit-linear-gradient(top, rgb(254, 225, 141), rgb(254, 200, 108)); background-image: -moz-linear-gradient(top, rgb(254, 225, 141), rgb(254, 200, 108)); background-image: -o-linear-gradient(top, rgb(254, 225, 141), rgb(254, 200, 108)); background-image: -ms-linear-gradient(top, rgb(254, 225, 141), rgb(254, 200, 108)); background-image: linear-gradient(top, rgb(254, 225, 141), rgb(254, 200, 108)); filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, StartColorStr='#fee18d', EndColorStr='#fec86c'); border-color: #e1b160; } /*隐藏新闻广告*/ .c_ad_block { display: none; } /*顶部背景*/ div#blogTitle { background: url(http://images.cnblogs.com/cnblogs_com/sesefadou/1112130/o_bg-blue.png) left top repeat-x; } /*主题背景色*/ body { background: #eee; } /*Hello world标题样式*/ div#blogTitle .title a { color: #999; font-family: cursive; } div#blogTitle .title { padding-top: 25px; } /*代码块2背景变黑*/ .syntaxhighlighter .line.alt2 { background-color: #333333 !important; } .syntaxhighlighter .line.alt1 { background-color: #333 !important; } /*代码块字体颜色变白#eee*/ syntaxhighlighter .plain, .syntaxhighlighter .plain a { color: #eee !important; } .syntaxhighlighter .plain, .syntaxhighlighter .plain a { color: #eee !important; } .syntaxhighlighter .functions { color: #eeeeee !important; } .syntaxhighlighter .comments, .syntaxhighlighter .comments a { color: #eeeeee !important; } .syntaxhighlighter .value { color: #eee !important; } .syntaxhighlighter .keyword { color: #eee !important; } /*代码块蓝字变浅蓝*/ .syntaxhighlighter .string, .syntaxhighlighter .string a { color: #069 !important; } .syntaxhighlighter .keyword { font-weight: normal !important; color: #069 !important; } /*代码区绿线变红线*/ .syntaxhighlighter .gutter .line { border-right: 2px solid rgb(173, 39, 39) !important; } /*去掉a标签连接下面的下划线*/ .postCon a, .postBody a, .feedbackCon a { border-bottom: none!important; } |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了