我做了一个博客皮肤,效果就是现在你看到的样子(本来打算截图的,想想好像多余了...),分享给大家,有兴趣的话你也可以动手改改。
下面说说要怎么做,首先你要有一个博客园的博客,然后找到博客后台管理里的设置,选择Custom模板,并禁用模板默认CSS,在下图所示编辑区里写上你的css代码就可以了。
当然你可以在上述步骤做完之后可以把页面保存下来,能更方便的编辑css文件。打开博客主页ctrl+s就可以保存下来你的博客页面了,其实不只是主页,还有文章页面你也要保存下来进行修改。保存下来的页面只要添加自己的css文件进行编辑,就可以在浏览器里调试,最终把css代码贴上去,并点击设置页面最下面的"保存"按钮就可以看到自己做的皮肤啦!
下面是我的css代码,提供给大家参考。

1 /* Author: Io_oTI*/ 2 3 4 /*Public*/ 5 6 * { 7 margin: 0; 8 padding: 0; 9 box-sizing: border-box; 10 transition: all 0.5s; 11 } 12 13 ::selection, 14 ::-moz-selection { 15 background: rgba(204, 204, 204, 0.7); 16 } 17 18 html { 19 background: #202125; 20 } 21 22 html, 23 body { 24 color: gray; 25 margin: 0; 26 padding: 0; 27 overflow-x: hidden; 28 font-size: 14px; 29 font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; 30 } 31 32 h1 { 33 font-size: 30px; 34 font-weight: bold 35 } 36 37 h2 { 38 font-size: 18px; 39 font-weight: bold 40 } 41 42 h3, 43 .entrylistItemTitle { 44 font-size: 15px; 45 font-weight: bold 46 } 47 48 ul { 49 padding: 0; 50 list-style: none; 51 } 52 53 a { 54 color: gray; 55 text-decoration: none; 56 } 57 58 a:hover { 59 color: #E30; 60 } 61 62 canvas { 63 position: fixed; 64 z-index: -1; 65 } 66 67 /*header*/ 68 69 #header { 70 width: 100vw; 71 height: 100vh; 72 display: table-cell; 73 vertical-align: middle; 74 } 75 76 #blogTitle, 77 #navigator { 78 text-align: center; 79 } 80 81 a#Header1_HeaderTitle { 82 font-size: 48px; 83 padding: 0px 5px; 84 border-radius: 10px; 85 } 86 87 a#Header1_HeaderTitle:hover { 88 color: gray; 89 /* box-shadow: 0px 2px 3px 1px black; */ 90 } 91 92 #navList li { 93 display: inline-block; 94 } 95 96 .blogStats { 97 width: 240px; 98 margin: auto; 99 border-radius: 1em; 100 background: #C4E17F linear-gradient(to right, #C4E17F, #C4E17F 12.5%, #F7FDCA 12.5%, #F7FDCA 25%, #FECF71 25%, #FECF71 37.5%, #F0776C 37.5%, #F0776C 50%, #DB9DBE 50%, #DB9CBE 62.5%, #C49CDE 62.5%, #C49CDE 75%, #669AE1 75%, #669AE1 87.5%, #62C2E4 87.5%, #62C2E4) repeat scroll 0% 0%; 101 background-size: 200%; 102 animation: conveyor 4s ease infinite; 103 } 104 105 106 /*main*/ 107 108 #main { 109 margin: auto; 110 padding: 0 20px; 111 } 112 113 114 /*mainContent*/ 115 116 #mainContent { 117 margin: 0 auto; 118 } 119 120 121 /*main panel*/ 122 123 .day, 124 .commentform, 125 .entrylist, 126 #post_detail, 127 #blog-comments-placeholder, 128 #myposts, 129 .gallery { 130 margin: 0px auto 20px; 131 } 132 133 .forFlow { 134 border-radius: 3px; 135 background: rgba(51, 51, 51, 0.7); 136 } 137 138 .dayTitle { 139 float: left; 140 margin-right: 20px; 141 } 142 143 .postCon, 144 .entrylistPostSummary { 145 margin: 10px auto; 146 } 147 148 .dayTitle, 149 .postTitle { 150 font-size: 20px; 151 padding-top: 20px; 152 } 153 154 .postBody { 155 padding: 0px; 156 } 157 158 .cnblogs_code { 159 color: gray; 160 border: none; 161 border-radius: 3px; 162 background: rgba(34, 34, 34, 0.7); 163 } 164 165 .code_img_opened, 166 .cnblogs_code a, 167 .cnblogs_code div, 168 .cnblogs_code img { 169 background: none; 170 } 171 172 173 /*paging*/ 174 175 .topicListFooter { 176 margin: 0px; 177 } 178 179 .pager { 180 margin: 0 0 20px; 181 padding: 5px; 182 border-radius: 3px; 183 background: rgba(238, 238, 238, 0.7); 184 } 185 186 .pager a { 187 border-color: lightgray; 188 border-radius: 3px; 189 } 190 191 .pager a:hover { 192 color: #3F51B5; 193 } 194 195 /*option*/ 196 197 #green_channel { 198 max-width: 271px; 199 float: right; 200 border: none; 201 margin: 0; 202 overflow: unset; 203 } 204 205 #green_channel a { 206 float: left; 207 margin: 3px 6px 3px 0px; 208 padding: 3px 7px; 209 background: none; 210 box-shadow: none; 211 text-shadow: none; 212 border-radius: 3px; 213 vertical-align: middle; 214 } 215 216 #green_channel #green_channel_weibo, 217 #green_channel #green_channel_wechat { 218 padding: 0px 2px; 219 } 220 221 #div_digg { 222 float: right; 223 width: 124px; 224 margin: 1px 6px; 225 padding: 10px 0; 226 } 227 228 .diggit, 229 .buryit, 230 #green_channel #green_channel_digg, 231 #green_channel #green_channel_follow, 232 #green_channel #green_channel_favorite { 233 background: rgba(34, 34, 34, 0.7); 234 } 235 236 .diggit:hover { 237 background: rgba(153, 204, 153, 0.7); 238 } 239 240 .buryit:hover { 241 background: rgba(153, 153, 204, 0.7); 242 } 243 244 #green_channel #green_channel_digg:hover { 245 background: rgba(45, 174, 191, 0.7); 246 } 247 248 #green_channel #green_channel_follow:hover { 249 background: rgba(227, 49, 0, 0.7); 250 } 251 252 #green_channel #green_channel_favorite:hover { 253 background: rgba(255, 181, 21, 0.7); 254 } 255 256 .diggit, 257 .buryit { 258 width: 59px; 259 height: 24px; 260 padding: 0px 6px; 261 text-align: left; 262 position: relative; 263 border-radius: 3px; 264 } 265 266 .buryit { 267 margin: 2px 0px 0px 6px; 268 } 269 270 .diggit:before, 271 .buryit:before { 272 top: 3px; 273 right: 6px; 274 position: absolute; 275 font-weight: bold; 276 } 277 278 .diggit:before { 279 color: rgba(255, 0, 0, 0.5); 280 content: "♥"; 281 animation: beats 1s ease infinite; 282 } 283 284 .buryit:before { 285 color: black; 286 content: "♠"; 287 } 288 289 .buryit:hover:before { 290 animation: rotate 0.5s ease infinite; 291 } 292 293 .diggnum, 294 .burynum { 295 color: white; 296 } 297 298 299 /*comment title*/ 300 301 .feedback_area_title, 302 #commentform_title { 303 font-size: 16px; 304 font-weight: bold; 305 } 306 307 #commentform_title { 308 padding: 0; 309 background-image: none; 310 } 311 312 313 /*comment*/ 314 315 .feedbackItem { 316 margin-top: 20px; 317 border-radius: 4px; 318 background: rgba(34, 34, 34, 0.7); 319 } 320 321 .feedbackListSubtitle { 322 margin-top: 10px; 323 padding: 5px 10px; 324 } 325 326 .feedbackCon { 327 padding: 5px 10px; 328 border-bottom-left-radius: 4px; 329 border-bottom-right-radius: 4px; 330 background: rgba(68, 68, 68, 0.7); 331 } 332 333 .feedbackManage { 334 float: right; 335 } 336 337 div.commentform input.author { 338 color: lightgray; 339 padding: 0; 340 font-size: 14px; 341 border: none; 342 background-color: transparent; 343 background-image: none; 344 } 345 346 .commentbox_title, 347 div.commentform textarea { 348 width: 100%; 349 } 350 351 352 /* menu button */ 353 354 .tols { 355 right: 0px; 356 bottom: 91px; 357 width: 30px; 358 margin: 5px; 359 padding: 5px; 360 position: fixed; 361 } 362 363 .back-top, 364 .refresh-cmts { 365 width: 20px; 366 height: 20px; 367 display: block; 368 } 369 370 .back-top { 371 display: none; 372 margin-bottom: 10px; 373 animation: tly .6s ease infinite; 374 } 375 376 .back-top:before { 377 border-left: 3px solid black; 378 border-top-left-radius: 2px; 379 border-top: 3px solid black; 380 content: ''; 381 display: block; 382 height: 12px; 383 left: 2.3px; 384 position: absolute; 385 top: 5px; 386 transform: rotate(45deg); 387 width: 12px; 388 } 389 390 .refresh-cmts { 391 border-radius: 100%; 392 border-width: 3px; 393 border-style: solid; 394 border-color: black transparent black black; 395 } 396 397 .refresh-cmts:before, 398 .refresh-cmts:after { 399 background: rgba(0, 0, 0, 0.7); 400 border-radius: 3px; 401 content: ''; 402 display: block; 403 position: relative; 404 } 405 406 .refresh-cmts:before { 407 top: -5px; 408 right: -12px; 409 width: 3px; 410 height: 8px; 411 } 412 413 .refresh-cmts:after { 414 top: -7px; 415 right: -7px; 416 width: 8px; 417 height: 3px; 418 } 419 420 .refresh-cmts:hover { 421 animation: rot .8s ease; 422 } 423 424 .show { 425 display: block; 426 } 427 428 #menu { 429 display: none; 430 } 431 432 #menu~label { 433 right: 0px; 434 bottom: 61px; 435 position: fixed; 436 cursor: pointer; 437 display: block; 438 margin: 5px; 439 padding: 5px; 440 transition: all .5s ease; 441 } 442 443 #menu~label span { 444 background-color: rgba(0, 0, 0, 0.7); 445 border-radius: 5px; 446 display: block; 447 height: 3px; 448 margin: 3px auto; 449 transition: transform .8s ease; 450 width: 20px; 451 } 452 453 #menu:checked~label .top { 454 -webkit-transform: translateY(5.5px) rotate(-45deg); 455 -moz-transform: translateY(5.5px) rotate(-45deg); 456 -ms-transform: translateY(5.5px) rotate(-45deg); 457 -o-transform: translateY(5.5px) rotate(-45deg); 458 transform: translateY(5.5px) rotate(-45deg); 459 } 460 461 #menu:checked~label .middle { 462 -webkit-transform: scaleX(0); 463 -moz-transform: scaleX(0); 464 -ms-transform: scaleX(0); 465 -o-transform: scaleX(0); 466 transform: scaleX(0); 467 } 468 469 #menu:checked~label .bottom { 470 -webkit-transform: translateY(-5.5px) rotate(45deg); 471 -moz-transform: translateY(-5.5px) rotate(45deg); 472 -ms-transform: translateY(-5.5px) rotate(45deg); 473 -o-transform: translateY(-5.5px) rotate(45deg); 474 transform: translateY(-5.5px) rotate(45deg); 475 } 476 477 #menu:checked~#sideBar { 478 right: 0px; 479 } 480 481 #menu:checked~label, 482 #menu:checked~.tols { 483 right: 280px; 484 } 485 486 /*sideBar*/ 487 488 #sideBar { 489 top: 0px; 490 right: -280px; 491 width: 280px; 492 height: 100%; 493 overflow-y: auto; 494 position: fixed; 495 transition: all .5s ease; 496 background: rgba(51, 51, 51, 0.7); 497 } 498 499 #sideBarMain { 500 padding: 55px 0; 501 } 502 503 .profile { 504 border-radius: 100%; 505 display: block; 506 height: 150px; 507 margin: 0 auto; 508 padding: 5px; 509 text-align: center; 510 width: 150px; 511 } 512 513 .head-img { 514 top: 10px; 515 width: 120px; 516 border-radius: 100%; 517 overflow: visible; 518 box-sizing: border-box; 519 position: relative; 520 animation: scales_bs 1s linear infinite; 521 } 522 523 #profile_block { 524 text-align: center; 525 } 526 527 #blog-calendar { 528 color: white; 529 margin: 10px 15px; 530 padding: 10px; 531 font-size: 12px; 532 border-radius: 3px; 533 background: rgba(34, 34, 34, 0.7); 534 } 535 536 #blog-calendar:hover { 537 background: rgba(153, 204, 153, 0.7); 538 } 539 540 #blog-calendar td:hover { 541 border-radius: 3px; 542 background: rgba(119, 170, 119, 0.7); 543 } 544 545 #leftcontentcontainer { 546 padding: 0px 15px; 547 } 548 549 .CalNextPrev, 550 .CalNextPrev { 551 font-weight: bold; 552 } 553 554 .div_my_zzk { 555 margin: 20px 0px; 556 } 557 558 .input_my_zzk, 559 .btn_my_zzk, 560 .comment_btn, 561 #commentbox_opt a, 562 div.commentform textarea { 563 color: gray; 564 margin: 2px auto; 565 padding: 2px 5px; 566 border: none; 567 border-radius: 3px; 568 background: rgba(68, 68, 68, 0.7); 569 } 570 571 /* .btn_my_zzk, 572 .comment_btn, 573 #commentbox_opt a { 574 color: gray; 575 background: gray; 576 } */ 577 578 .btn_my_zzk:hover, 579 .comment_btn:hover, 580 #commentbox_opt a:hover { 581 background: rgba(34, 34, 34, 0.7); 582 } 583 584 .input_my_zzk, 585 input.btn_my_zzk { 586 width: 100%; 587 height: 25px; 588 } 589 590 .commentbox_title { 591 border: none; 592 } 593 594 .commentbox_tab:hover, 595 .commentbox_tab.active { 596 color: white; 597 } 598 599 #tbCommentBodyPreview { 600 margin: 0; 601 } 602 603 div.commentform textarea { 604 height: 160px; 605 margin: 0; 606 } 607 608 .comment_textarea { 609 width: 100%; 610 color: gray; 611 margin: 0; 612 padding: 10px; 613 border: none; 614 background: rgba(34, 34, 34, 0.7) 615 } 616 617 .commentform { 618 margin: 0 619 } 620 621 .input_my_zzk:hover, 622 .input_my_zzk:focus { 623 outline: 0; 624 color: gray; 625 background: rgba(34, 34, 34, 0.7) 626 } 627 628 div#blog-sidecolumn div { 629 margin-bottom: 15px; 630 } 631 632 .catListTitle { 633 margin-bottom: 5px; 634 } 635 636 637 /*footer*/ 638 639 #footer { 640 margin-top: 20px; 641 padding: 20px; 642 text-align: center; 643 background: rgba(51, 51, 51, 0.7); 644 } 645 646 647 /* Responsive */ 648 649 @media (min-width: 768px) { 650 651 #main { 652 width: 90%; 653 } 654 655 .forFlow { 656 padding: 10px; 657 } 658 } 659 660 @media (min-width: 992px) { 661 #main { 662 width: 75%; 663 } 664 665 .forFlow { 666 padding: 15px; 667 } 668 } 669 670 @media (min-width: 1200px) { 671 672 #main { 673 width: 60%; 674 } 675 676 .forFlow { 677 padding: 20px; 678 } 679 680 } 681 682 683 /*animation*/ 684 685 @keyframes conveyor { 686 50% { 687 background-position: 100% 0%; 688 } 689 } 690 691 @keyframes beats { 692 40% { 693 transform: scale(1.1, 1.1); 694 text-shadow: 0px 0px 1px rgba(255, 0, 0, 0.5); 695 } 696 } 697 698 @keyframes rotate { 699 25% { 700 transform: rotate(20deg); 701 } 702 703 50% { 704 transform: rotate(0deg); 705 } 706 707 75% { 708 transform: rotate(-20deg); 709 } 710 } 711 712 @keyframes rot { 713 100% { 714 transform: rotate(360deg); 715 } 716 } 717 718 @keyframes tly { 719 75% { 720 -webkit-transform: translateY(2px); 721 -moz-transform: translateY(2px); 722 -ms-transform: translateY(2px); 723 -o-transform: translateY(2px); 724 transform: translateY(2px); 725 } 726 } 727 728 @keyframes scales_bs { 729 50% { 730 box-shadow: 0px 0px 0px 10px rgba(0, 0, 0, 0.5); 731 } 732 733 100% { 734 box-shadow: 0px 0px 0px 20px rgba(0, 0, 0, 0); 735 } 736 } 737 738 @keyframes scales { 739 50% { 740 transform: scale(1.05, 1.05); 741 } 742 } 743 744 745 /*AD Kill*/ 746 747 .newsItem h3, 748 .diggword, 749 #navigator, 750 #author_profile, 751 #comment_nav, 752 #lnkBlogLogo, 753 #under_post_news, 754 #under_post_kb, 755 #ad_t2, 756 #ad_c1, 757 #ad_c2, 758 #cnblogs_c1, 759 #cnblogs_c2 { 760 display: none; 761 }
(代码更新:20160614)
(代码更新:20160727)分页按钮的优化
(代码更新:20181225)
(代码更新:20190215)
(代码更新:20200711)同化评论框