标签:
譬如看看取消掉自定义背景图片是什么样子,同理也可以添加CSS样式代码
如此修改完后,就可在页面定制CSS代码框中填上你所需要修改的代码
下面是我的页面定制CSS代码:
1.html,body{
2. color: #807C7C;
3. font-family: "Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","WenQuanYi Micro Hei","Microsoft YaHei UI","Microsoft YaHei",sans-serif;
4. line-height: 1.75em;
5.}
6.body{
7. background-image: url(‘http://images.cnblogs.com/cnblogs_com/XBlack/741291/o_34.jpg‘);
8. background-repeat: no-repeat;
9. background-attachment: fixed;
10.}
11.#blogTitle h1 a, #blogTitle h2, #navList a{
12. font-family: "Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","WenQuanYi Micro Hei","Microsoft YaHei UI","Microsoft YaHei",sans-serif;
13.}
14.#blogTitle h1 a{
15. font-size:2em;
16.}
17.#main{
18. background: rgba(205, 207, 227, 0.1) linear-gradient(rgba(255, 255, 255, 0.1) 0px, rgba(255, 255, 255, 0.1) 100%) repeat scroll 0% 0%;
19. border-radius: 4px;
20.}
21.#navigator{
22. background:none;
23.}
24.#navList{
25. margin-left:0px;
26.}
27.#navigator a:hover{
28. color: #000;
29. background-color: #fff;
30.}
31.#navList a:link{
32. text-shadow:none;
33. padding:10px 15px;
34. border-radius: 2px;
35. border: #fff;
36.}
37..blogStats{
38. visibility:visible;
39.}
40..postTitle{
41. font-size:1.64em;
42.}
43..postTitle a:hover{
44. border: 1px solid #1FA6E6;
45. background: #1FA6E6;
46. color: #fff;
47. transition: all 0.2s ease-in-out;
48. -webkit-transition:all 0.2s ease-in-out;
49. border-radius:2px;
50.}
51..c_b_p_desc_readmore:hover{
52. border: 1px solid #e67e22;
53. background: #e67e22;
54. color: #fff;
55. transition: all 0.2s ease-in-out;
56. -webkit-transition:all 0.2s ease-in-out;
57. border-radius:2px;
58.}
59..c_b_p_desc{
60. font-size:1.2em;
61.}
62..newsItem .catListTitle{
63. border-top-width: 0px;
64. border-right-width: 0px;
65. border-bottom-width: 3px;
66. border-left-width: 0px;
67. border-bottom-style: solid;
68. border-bottom-color: #e67e22;
69. background:none;
70.}
71.a:link{
72. color:#e67e22;
73.}
74.#blog-sidecolumn .catListTitle{
75. border-top-width: 0px;
76. border-right-width: 0px;
77. border-bottom-width: 3px;
78. border-left-width: 0px;
79. border-bottom-style: solid;
80. border-bottom-color: #e67e22;
81. background:none;
82.}
83.a:hover, a:focus{
84. border: 1px solid #e67e22;
85. background: #e67e22;
86. color: #fff;
87. transition: all 0.2s ease-in-out;
88. -webkit-transition:all 0.2s ease-in-out;
89. border-radius:2px;
90.}
91.#mainContent{
92. border-radius:4px;
93.}
94..postDesc a:hover{
95. border: 1px solid #e67e22;
96. background: #e67e22;
97. color: #fff;
98. transition: all 0.2s ease-in-out;
99. -webkit-transition:all 0.2s ease-in-out;
100. border-radius:2px;
101.}
102.#cnblogs_post_body h2 {
103. background: none repeat scroll 0% 0% rgb(43, 102, 149);
104. border-radius: 6px 6px 6px 6px;
105. box-shadow: 0px 0px 0px 1px rgb(95, 90, 75), 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
106. color: rgb(255, 255, 255);
107. font-family: "微软雅黑","宋体","黑体",Arial;
108. font-size: 18px;
109. font-weight: bold;
110. height: 30px;
111. line-height: 30px;
112. margin: 15px 0px !important;
113. padding: 0px 0px 0px 0px;
114. text-shadow: 2px 2px 3px rgb(34, 34, 34);
115. width: 98%;
116. text-align: center;
117.}
118.#cnblogs_post_body h3 {
119. background: #24967A none repeat scroll 0% 0%;
120. border-radius: 6px 6px 6px 6px;
121. box-shadow: 0px 0px 0px 1px rgb(95, 90, 75), 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
122. color: rgb(255, 255, 255);
123. font-family: "微软雅黑","宋体","黑体",Arial;
124. font-size: 16px;
125. font-weight: bold;
126. height: 25px;
127. line-height: 25px;
128. margin: 15px 0px !important;
129. padding: 0px 0px 0px 20px;
130. text-shadow: 2px 2px 3px rgb(34, 34, 34);
131. width: 98%;
132. text-align: left;
133.}
134.#cnblogs_post_body h4 {
135. border-left: 3px solid #65716E;
136. border-bottom: 1px solid #999;
137. color: #30393B;
138. text-shadow: 1px 1px 1px #999;
139. padding: 0px 0px 0px 20px;
140. font-size: 16px;
141.}
142..hljs-dark .hljs{
143. border-radius: 4px;
144.}
145.#blog-sidecolumn .catListTitle, .newsItem .catListTitle, #profile_block, .catListTag ul li, .liScore, .liRank{
146. color:#D7CEB5;
147.}
148.#sideBarMain a:hover , #site_nav_under a:hover, #commentbox_opt a:hover,.c_ad_block a:hover, #comment_nav a:hover,#post_next_prev a:hover,#EntryTag a:hover,.postBody a:hover{
149. color: #FFF;
150.}
151..Cal {
152. color: #D7CEB5;
153.}
154..Cal td,.Cal th{
155. border-top-width: 0px;
156. border-right-width: 0px;
157. border-bottom-width: 1px;
158. border-left-width: 0px;
159. border-bottom-style: solid;
160. border-bottom-color: #222;
161.}
162..CalTitle {
163. width: 100%;
164. background:none;
165. color: #FFF;
166. border-bottom: 1px solid #666;
167.}
没好好学过CSS,使用这般耍赖的方法,倒是见笑了。
标签:
原文地址:http://www.cnblogs.com/XBlack/p/5094986.html