zoukankan      html  css  js  c++  java
  • emacs配置&博客界面源代码

    emacs配置

    如果想要考场简单配置也可以去下面看,需要别的考场配置可以自己在下面比较全的里面找

    考试备忘录(有新的就会更的。。。)

    By Junlier

      1 (global-set-key [f9] 'compile-file)
      2 (global-set-key [f10] 'gud-gdb)
      3 (global-set-key (kbd "C-s") 'save-buffer)
      4 (global-set-key (kbd "C-z") 'undo)
      5 (global-set-key (kbd "RET") 'newline-and-indent)
      6 (global-linum-mode t)
      7 (show-paren-mode t)
      8 (define-key key-translation-map (kbd "C-d") (kbd "M-p M-y"))    
      9 (global-set-key (kbd "M-p M-y") 'kill-whole-line)
     10 (define-key key-translation-map (kbd "C-a") (kbd "C-x h"))
     11 (setq c-default-style "awk")
     12 ;;;考场必备
     13 (ido-mode t)
     14 (setq default-frame-alist
     15              '((vertical-scroll-bars)
     16                (top . 25)
     17                (left . 45)
     18                (width . 120)
     19                (height . 40)
     20                (background-color . "grey15")
     21                (foreground-color . "grey")
     22                (cursor-color . "gold1")
     23                (mouse-color . "gold1")
     24                (tool-bar-lines . 0)
     25                (menu-bar-lines . 1)
     26                (scroll-bar-lines . 0)
     27                (right-fringe)
     28                (left-fringe)))
     29 (global-hl-line-mode 1)
     30 (set-face-background 'highlight "gray5")
     31 (set-face-foreground 'region "cyan")
     32 (set-face-background 'region "blue")
     33 (set-face-foreground 'secondary-selection "skyblue")
     34 (set-face-background 'secondary-selection "darkblue")
     35 ;;;;;设置org模式
     36 (setq org-startup-indented t)
     37 ;(setq org-log-done 'time)
     38 ;(s.etq org-log-done 'note)
     39 ;
     40 ;;;无关紧要
     41 (set-cursor-color "wheat")
     42 (set-mouse-color "wheat")
     43 (global-font-lock-mode t);;高亮
     44 ;;;;;设置编译信息
     45 (defun compile-file ()
     46   (interactive)
     47   (compile (format "g++ -o %s %s -g -lm -Wall"  (file-name-sans-extension (buffer-name))(buffer-name))))
     48 ;;(global-set-key (kbd "<f9>") 'compile-file)
     49 ;;;;;设置一键调试
     50 ;;;;;改变emacs标题栏的标题
     51 (setq frame-title-format "%b By LJL")
     52 ;;;;;允许emacs和外部其他程序的粘贴
     53 (setq x-select-enable-clipboard t)
     54 ;; 显示列号
     55 (setq column-number-mode t)
     56 ;;设置tab为2个空格的宽度
     57 (setq default-tab-width 4)
     58 (setq c-basic-offset 4)
     59 ;;;;;启用时间显示设置,在minibuffer上面的那个杠上(忘了叫什么来着)
     60 (display-time-mode 1)
     61 ;;;;;时间使用24小时制
     62 (setq display-time-24hr-format t)
     63 ;;;;;时间显示包括日期和具体时间
     64 (setq display-time-day-and-date t)
     65 ;;;;;时间的变化频率,单位多少来着?
     66 (setq display-time-interval 10)
     67 ;;;;;是用滚轴鼠标
     68 (mouse-wheel-mode t)
     69 ;;;;;备份设置
     70 ;;;;;emacs还有一个自动保存功能,默认在~/.emacs.d/auto-save-list里,这个非常有用,我这里没有改动,具体可以参见Sams teach yourself emacs in 24hours(我简称为sams24)
     71 ;;;;;备份设置方法,直接拷贝
     72 (setq backup-by-copying t)
     73 ;; 自动存盘
     74 (setq auto-save-mode t)
     75 ;;;;;去掉烦人的警告铃声
     76 (setq visible-bell nil)
     77 (setq ring-bell-function 'ignore)
     78 ;;;;;指针不要闪,我得眼睛花了
     79 (blink-cursor-mode -1)
     80 ;;;;;滚动页面时比较舒服,不要整页的滚动
     81 (setq scroll-step 1
     82         scroll-margin 3
     83         scroll-conservatively 10000)
     84 ;;;;;设定删除保存记录为200,可以方便以后无限恢复
     85 (setq kill-ring-max 200)
     86 ;;;;;修改透明度
     87 (set-frame-parameter (selected-frame) 'alpha (list 85 50))
     88 (add-to-list 'default-frame-alist (cons 'alpha (list 85 50)))
     89 (setq-default cursor-type 'bar)
     90 (show-paren-mode 1);;括号匹配
     91 (fset 'yes-or-no-p 'y-or-n-p);;酱油的
     92 (setq make-backup-files nil)
     93 (global-auto-revert-mode t);自动reload文件
     94 (global-set-key (kbd "<f8>") 'gdb-many-windows)
     95 (custom-set-variables
     96  ;; custom-set-variables was added by Custom.
     97  ;; If you edit it by hand, you could mess it up, so be careful.
     98  ;; Your init file should contain only one such instance.
     99  ;; If there is more than one, they won't work right.
    100  '(blink-cursor-mode nil)
    101  '(column-number-mode t)
    102  '(cua-mode t nil (cua-base))
    103  '(display-time-mode t)
    104  '(inhibit-startup-screen t)
    105  '(show-paren-mode t))
    106 (custom-set-faces
    107  ;; custom-set-faces was added by Custom.
    108  ;; If you edit it by hand, you could mess it up, so be careful.
    109  ;; Your init file should contain only one such instance.
    110  ;; If there is more than one, they won't work right.
    111  '(default ((t (:family "Ubuntu Mono" :foundry "unknown" :slant normal :weight bold :height 143 :width normal)))))
    112 (auto-insert-mode)  ;;; Adds hook to find-files-hook
    113 (setq auto-insert-directory "~/.emacs.d/mytemplates/") ;;; Or use custom, *NOTE* Trailing slash important
    114 (setq auto-insert-query nil) ;;; If you don't want to be prompted before insertion
    115 (define-auto-insert "." "moban.cpp")

    By Matsuk zhu鸡

    (global-set-key [f9] 'compile-file)
    (global-set-key [f10] 'gud-gdb)
    (global-set-key (kbd "C-s") 'save-buffer)
    (global-set-key (kbd "C-z") 'undo)
    (global-set-key (kbd "RET") 'newline-and-indent)
    (global-linum-mode t)
    (show-paren-mode t)
    (define-key key-translation-map (kbd "C-d") (kbd "M-p M-y"))    
    (global-set-key (kbd "M-p M-y") 'kill-whole-line)
    (define-key key-translation-map (kbd "C-a") (kbd "C-x h"))
    (setq c-default-style "awk")
    (setq x-select-enable-clipboard t)
    ;;;考场必备
    (ido-mode t)
    
    (setq default-frame-alist
                 '((vertical-scroll-bars)
                   (top . 25)
                   (left . 45)
                   (width . 120)
                   (height . 40)
                   (background-color . "grey15")
                   (foreground-color . "grey")
                   (cursor-color . "gold1")
                   (mouse-color . "gold1")
                   (tool-bar-lines . 0)
                   (menu-bar-lines . 1)
                   (scroll-bar-lines . 0)
                   (right-fringe)
                   (left-fringe)))
    
    
    
    (global-hl-line-mode 1)
    
    (set-face-background 'highlight "gray5")
    (set-face-foreground 'region "cyan")
    (set-face-background 'region "blue")
    (set-face-foreground 'secondary-selection "skyblue")
    (set-face-background 'secondary-selection "darkblue")
    
    ;;;;;设置org模式
    (setq org-startup-indented t)
    ;(setq org-log-done 'time)
    ;(s.etq org-log-done 'note)
    ;
    
    ;;;无关紧要
    (set-cursor-color "wheat")
    (set-mouse-color "wheat")
    (global-font-lock-mode t);;高亮
    ;;;;;设置编译信息
    (defun compile-file ()
      (interactive)
      (compile (format "g++ -o %s %s -g -lm -Wall"  (file-name-sans-extension (buffer-name))(buffer-name))))
    ;;(global-set-key (kbd "<f9>") 'compile-file)
    ;;;;;设置一键调试
    ;;;;;改变emacs标题栏的标题
    (setq frame-title-format "%b (;*=*)/")
    ;;;;;允许emacs和外部其他程序的粘贴
    (setq x-select-enable-clipboard t)
    ;; 显示列号
    (setq column-number-mode t)
    ;;设置tab为2个空格的宽度
    (setq default-tab-width 4)
    (setq c-basic-offset 4)
    ;;;;;启用时间显示设置,在minibuffer上面的那个杠上(忘了叫什么来着)
    (display-time-mode 1)
    ;;;;;时间使用24小时制
    (setq display-time-24hr-format t)
    ;;;;;时间显示包括日期和具体时间
    (setq display-time-day-and-date t)
    ;;;;;时间的变化频率,单位多少来着?
    (setq display-time-interval 10)
    ;;;;;是用滚轴鼠标
    (mouse-wheel-mode t)
    ;;;;;备份设置
    ;;;;;emacs还有一个自动保存功能,默认在~/.emacs.d/auto-save-list里,这个非常有用,我这里没有改动,具体可以参见Sams teach yourself emacs in 24hours(我简称为sams24)
    ;;;;;备份设置方法,直接拷贝
    (setq backup-by-copying t)
    ;; 自动存盘
    (setq auto-save-mode t)
    ;;;;;去掉烦人的警告铃声
    (setq visible-bell nil)
    ;;;;;滚动页面时比较舒服,不要整页的滚动
    (setq scroll-step 1
            scroll-margin 3
            scroll-conservatively 10000)
    ;;;;;设定删除保存记录为200,可以方便以后无限恢复
    (setq kill-ring-max 200)
    ;;;;;修改透明度
    (set-frame-parameter (selected-frame) 'alpha (list 85 50))
    (add-to-list 'default-frame-alist (cons 'alpha (list 85 50)))
    (setq-default cursor-type 'bar)
    
    (show-paren-mode 1);;括号匹配
    (fset 'yes-or-no-p 'y-or-n-p);;酱油的
    (setq make-backup-files nil)
    (global-auto-revert-mode t);自动reload文件
    
    
    
    
    
    (global-set-key (kbd "<f8>") 'gdb-many-windows)
    
    
    (custom-set-variables
     ;; custom-set-variables was added by Custom.
     ;; If you edit it by hand, you could mess it up, so be careful.
     ;; Your init file should contain only one such instance.
     ;; If there is more than one, they won't work right.
     '(column-number-mode t)
     '(cua-mode t nil (cua-base))
     '(display-time-mode t)
     '(inhibit-startup-screen t)
     '(show-paren-mode t))
    (custom-set-faces
     ;; custom-set-faces was added by Custom.
     ;; If you edit it by hand, you could mess it up, so be careful.
     ;; Your init file should contain only one such instance.
     ;; If there is more than one, they won't work right.
     '(default ((t (:family "Ubuntu Mono" :foundry "unknown" :slant normal :weight normal :height normal :width normal)))))
    (auto-insert-mode)  ;;; Adds hook to find-files-hook
    (setq auto-insert-directory "~/.emacs.d/mytemplates/") ;;; Or use custom, *NOTE* Trailing slash important
    (setq auto-insert-query nil) ;;; If you don't want to be prompted before insertion
    (define-auto-insert "." "moban.cpp")

    By Mr Unknown

    (global-hl-line-mode t)
    (ido-mode t)
    (set-background-color "black")
    (set-foreground-color "pink")
    (scroll-bar-mode -1)
    (global-linum-mode t)
    (set-scroll-bar-mode nil)
    (setq-default cursor-type 'bar)
    (add-hook 'c-mode-hook 'hs-minor-mode)
    (add-hook 'c++-mode-hook 'hs-minor-mode)  
    (setq kill-ring-max 200)
    (custom-set-faces
     ;; custom-set-faces was added by Custom.
     ;; If you edit it by hand, you could mess it up, so be careful.
     ;; Your init file should contain only one such instance.
     ;; If there is more than one, they won't work right.
     '(default ((t (:family "Courier 10 Pitch" :foundry "bitstream" :slant normal :weight normal :height 120 :width normal)))))
    (custom-set-variables
     ;; custom-set-variables was added by Custom.
     ;; If you edit it by hand, you could mess it up, so be careful.
     ;; Your init file should contain only one such instance.
     ;; If there is more than one, they won't work right.
     '(blink-cursor-mode nil)
     '(column-number-mode t)
     '(cua-mode t nil (cua-base))
     '(display-time-mode t)
     '(inhibit-startup-screen t)
     '(show-paren-mode t)
     '(tool-bar-mode nil))
    
    (set-face-foreground 'highlight "white")
    (set-face-background 'highlight "Blue")
    (set-face-foreground 'region "cyan")
    (set-face-background 'region "dark slate gray")
    (setq-default indent-tabs-mode nil)
    (setq default-tab-width 2)
    (setq c-basic-offset 2)
    (setq tab-stop-list ())
    (display-time-mode 1)
    
    (setq scroll-margin 3 scroll-conservatively 10000)
    (setq frame-title-format "emacs %b by_Fenghr")
    (setq-default kill-whole-line t)
    (setq make-backup-files nil)
    (setq-default make-backup-files nil)
    (setq user-full-name "Fenghr")
    
    (defun common-compile ()
      (interactive)
      (compile (format "g++ -o %s %s -g -Wall"  (file-name-sans-extension (buffer-name))(buffer-name))))
    (defun wuxianzhan+O2 ()
      (interactive)
      (compile (format "g++ -o %s %s -g -Wall -O2"  (file-name-sans-extension (buffer-name))(buffer-name))))
    (defun open-in-file()
      (interactive)
      ;;(shell-command (format "if not exist %s.in cd.script -f %s.in" (file-name-sans-extension (buffer-name))(file-name-sans-extension (buffer-name))))
      (shell-command (format "touch %s.in" (file-name-sans-extension (buffer-name))))
      (shell-command (format "xdg-open %s.in" (file-name-sans-extension (buffer-name))))
      (shell-command (format "rm %s.in~" (file-name-sans-extension (buffer-name))))
    )
    (defun only-run ()
      (interactive)
      (shell-command (format "./%s" (file-name-sans-extension (buffer-name))))
    )
    (defun run-and-show-result ()
      (interactive)
      (shell-command (format "./%s" (file-name-sans-extension (buffer-name))))
      (shell-command (format "xdg-open %s.out" (file-name-sans-extension (buffer-name))))
    )
    (global-set-key [f1] 'speedbar)
    (global-set-key [f2] 'delete-other-windows)
    (global-set-key [f3] 'hs-hide-block)
    (global-set-key [f4] 'hs-show-block)
    (global-set-key [f5] 'wuxianzhan+O2)
    (global-set-key [f6] 'gud-gdb)
    (global-set-key [f7] 'calc)
    (global-set-key [f8] 'zone)
    (global-set-key [f9] 'common-compile)
    (global-set-key [f10] 'open-in-file)
    (global-set-key [f11] 'only-run)
    (global-set-key [f12] 'run-and-show-result)
    (set-frame-parameter (selected-frame) 'alpha (list 85 55))
    (add-to-list 'default-frame-alist (cons 'alpha (list 85 55)))
    (put 'scroll-left 'disabled nil)

    用起来的感想吧?

    Junlier的字体比较粗,matsuk的字体比较清秀,其他的这两个差不多。。。

    然后fhr那个就比较骚了。。。

    博客源代码

    这个是我的源代码,中间可以找到background换背景之类的,然后一些也有注释。。。看不懂

    反正先放上来了。。。

    如果想要侧边栏和界面首尾的什么东西的代码就单独联系吧。。。

    /*
    Date: 17.V.2011
    Author: pumbur <pumbur@pumbur.net>
    */
    .cnblogs-markdown .hljs {
      display: block;
      overflow-x: auto;
      padding: 0.5em;
      background: black !important;
      opacity:1 !important;
      color:#F8F8F2  !important;
      font-size:15px !important;
    }
    a
    {
    cursor:url('http://fq.wc.lt//up/1499563659.cur'),auto;
    }
    
    .cnblogs-markdown .hljs,
    .cnblogs-markdown .hljs-subst {
      color: #aaa;
    }
    
    .cnblogs-markdown .hljs-section {
      color: #fff;
    }
    
    .cnblogs-markdown .hljs-quote,
    .cnblogs-markdown .hljs-meta-keyword {
      color: #B85C00;
    }
    
    .cnblogs-markdown .hljs-metahttp://images.cnblogs.com/cnblogs_com/cjoierljl/1185318/o_2018-04-13%2019-50-31%e5%b1%8f%e5%b9%95%e6%88%aa%e5%9b%be.png
    {
    color:Crimson ;
    }
    
    .cnblogs-markdown .hljs-meta-string
    {
      color:pink;
    }
    
    .cnblogs-markdown .hljs-comment{
      color:skyblue;
    }
    
    .cnblogs-markdown .hljs-string,
    .cnblogs-markdown .hljs-symbol,
    .cnblogs-markdown .hljs-bullet,
    .cnblogs-markdown .hljs-regexp {
      color: #ffcc33;
    }
    
    .cnblogs-markdown .hljs-number
    {
        color:DarkOrchid ;
    }
    .cnblogs-markdown .hljs-addition {
      color: #00cc66;
    }
    
    .cnblogs-markdown .hljs-built_in
    {
      color:gold;
    }
    .cnblogs-markdown .hljs-builtin-name,
    .cnblogs-markdown .hljs-literal,
    .cnblogs-markdown .hljs-type,
    .cnblogs-markdown .hljs-template-variable,
    .cnblogs-markdown .hljs-attribute,
    .cnblogs-markdown .hljs-link {
      color: #32aaee;
    }
    
    .cnblogs-markdown .hljs-keyword
    {
         color:#74E22D;
    }
    
    .cnblogs-markdown .hljs-selector-tag,
    .cnblogs-markdown .hljs-name,
    .cnblogs-markdown .hljs-selector-id,
    .cnblogs-markdown .hljs-selector-class {
      color: #6644aa;
    }
    
    .cnblogs-markdown .hljs-title
    {
      color :red;
    }
    .cnblogs-markdown .hljs-variable,
    .cnblogs-markdown .hljs-deletion,
    .cnblogs-markdown .hljs-template-tag {
      color: #bb1166;http://images.cnblogs.com/cnblogs_com/cjoierljl/1185318/o_curry4.jpg
    }
    
    .cnblogs-markdown .hljs-section,
    .cnblogs-markdown .hljs-doctag,
    .cnblogs-markdown .hljs-strong {
      font-weight: bold;
    }
    
    .cnblogs-markdown .hljs-emphasis {
      font-style: italic;
    }
    
    
    
    #blogTitle h1 {
        font-size: 40px;
        font-weight: bold;
        line-height: 1.5em;
        margin-top: 20px;
    }
    
    #blogTitle h2 {
        font-weight: normal;
        font-size: 18px;
        line-height: 1.846153846;
        color: #757575;
        float: left;
    }
    .postBody a:link, .postBody a:visited, .postBody a:active {
        text-decoration: none;
    }
    .postBody a:link,
    .postBody a:visited{
    color:#8470FF;}
    .postBody a:hover,
    .postBody a:active{
    color: #00FF7F;}
    
    #sideBar {
        margin-top: -15px;
         320px;
        min-height: 200px;
        padding: 0px 0 0px 5px;
        float: right;
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    #home {
        margin: 0 auto;
            margin-top: 0px;
            margin-bottom: 0px;
         85%;
        opacity:0.8;
        min- 1050px;
        background-color: #FFF;
        padding: 30px;
        margin-top: 50px;
        margin-bottom: 50px;
        box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
    }
    
    #mainContent {
         90%;
    }
    
    
    
    body{
    background: url(https://www.cnblogs.com/images/cnblogs_com/cjoierljl/1185318/o_curry22bizhi.png) fixed no-repeat top center;
    cursor:url('http://fq.wc.lt//up/1499563659.cur'),auto;
    }
    
    #cnblogs_post_body {
        margin-bottom: 20px;
        font-size: 16px;
    }
    
    /*发表文章的标题*/
    .postTitle {
        border-left: 3px solid #21759b;
        margin-bottom: 10px;
        font-size:20px;
        float: right;
         100%;
        clear: both;
    }
        .postTitle a:link, .postTitle a:visited, .postTitle a:active {
            color: #21759b;
            transition: all 0.4s linear 0s;
        }
    
        .postTitle a:hover {
            margin-left: 30px;
            color: #0f3647;
            text-decoration: none;
        }
        
    
    
        #cnblogs_post_body
        {
            color: black;      
            font: 0.875em/1.5em "微软雅黑" , "PTSans" , "Arial" ,sans-serif;
            font-size: 16px;
        }
       #cnblogs_post_body h1 {
        background: DeepSkyBlue ;
        border-radius: 6px 6px 6px 6px;
        box-shadow: 0 0 0 1px DeepSkyBlue , 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
        color: #FFFFFF;
        font-family: "微软雅黑" , "宋体" , "黑体" ,Arial;
        font-size: 18px;
        font-weight: bold;
        height: 40px;
        line-height: 25px;
        margin: 18px 0 !important;
        padding: 8px 0 5px 5px;
        text-shadow: 2px 2px 3px #222222;
    }
     #cnblogs_post_body h2{
            background: MediumSpringGreen ;
            border-radius: 6px 6px 6px 6px;
            box-shadow: 0 0 0 1px MediumSpringGreen , 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
            color: #FFFFFF;
            font-family: "微软雅黑" , "宋体" , "黑体" ,Arial;
            font-size:17px;
            font-weight: bold;
            height: 33px;
            line-height: 23px;
            margin: 12px 0 !important;
            padding: 5px 0 5px 10px;
            text-shadow: 2px 2px 3px #222222;
        }
    
    #cnblogs_post_body h3{
            background: #FC9D9A ;
            border-radius: 6px 6px 6px 6px;
            box-shadow: 0 0 0 1px #FC9D9A , 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
            color: #FFFFFF;
            font-family: "微软雅黑" , "宋体" , "黑体" ,Arial;
            font-size:15px;
            font-weight: bold;
            height: 33px;
            line-height: 23px;
            margin: 12px 0 !important;
            padding: 5px 0 5px 10px;
            text-shadow: 2px 2px 3px #222222;
        }
    
    
    
    
    
    /* 评论开始 */
    #blog-comments-placeholder {
        margin: 10px 30px;
        border-radius: 5px;
    }
    div#comments_pager_top {
        display: none;
    }
    #blog-comments-placeholder > br {
        display: none;
    }
    /* 评论列表 */
    .feedback_area_title {
        margin: 0px;
        padding: 10px 10px;
        color: #272727;
        font-weight: normal;
        border-bottom: solid 1px #ccc;
    }
    .feedbackManage {
         130px;
        display: none;
        position: absolute;
        right: 120px;
        top: 0px;
    }
    .feedbackItem:hover .feedbackManage {
        display: block;
    }
    /* 所有评论里面的A标签 */
    .feedbackItem a {
        color: #989898 !important;
        transition: all .2s;
    }
    .feedbackItem a:hover {
        color: #FF661C !important;
        text-decoration: underline;
    }
    /* 评论分割线 */
    .feedbackCon {
        border-bottom: solid 1px #E4E4E4;
        background: none;
        clear: both;
    }
    /* 楼层 */
    .feedbackListSubtitle a.layer {
        background: #B2E866;
        color: #414141 !important;
        padding: 2px 4px;
        border-radius: 2px;
        margin-right: 4px;
        /*display: none;*/
    }
    /* 评论人 */
    .feedbackListSubtitle a[target="_blank"] {
        color: #FF6969 !important;
    }
    /* 评论时间 */
    .feedbackItem .comment_date {
        color: #BCBCBC;
        margin-right: 4px;
    }
    /* 楼主颜色 */
    .feedbackListSubtitle {
        color: #0AB300;
    }
    /* 支持与反对 */
    .comment_vote {
        float: right;
        margin-top: -34px;
        display: none;
    }
    /* 鼠标经过时显示支持与反对 */
    .feedbackItem:hover .comment_vote {
        display: block;
    }
    /* 评论内容颜色 */
    .feedbackItem {
        color: #464646;
        position: relative;
    }
    /* 评论背景色 */
    .blog_comment_body {
        background: #B2E866;
        float: left;
        padding: 14px 10px;
        border-radius: 5px;
        position: relative;
        overflow: visible;
        margin-left: 33px;
        max- 700px;
    }
    /* 评论三角形 */
    .blog_comment_body:before {
        content: '';
        display: block;
        position: absolute;
        left: -17px;
        top: 9px;
         0;
        height: 0;
        border-right: solid 18px #B2E866;
        border-top: solid 6px rgba(0, 0, 0, 0);
        border-bottom: solid 10px rgba(0, 0, 0, 0);
    }
    /* 评论头像 */
    .blog_comment_body:after {
        content: attr(data-louceng);
        display: block;
         48px;
        height: 48px;
        position: absolute;
        left: -72px;
        top: 0px;
        text-align: center;
        line-height: 48px;
        font-size: 18px;
        color: #FFF;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.42);
        font-family: 'Microsoft Yahei';
        background: linear-gradient(top , rgb(116, 218, 45) 12% , rgb(135, 255, 75) 35% , rgb(71, 179, 28) 86%);
        background: -o-linear-gradient(top , rgb(116, 218, 45) 12% , rgb(135, 255, 75) 35% , rgb(71, 179, 28) 86%);
        background: -ms-linear-gradient(top , rgb(116, 218, 45) 12% , rgb(135, 255, 75) 35% , rgb(71, 179, 28) 86%);
        background: -moz-linear-gradient(top , rgb(116, 218, 45) 12% , rgb(135, 255, 75) 35% , rgb(71, 179, 28) 86%);
        background: -webkit-linear-gradient(top , #74DA2D 12% , #87FF4B 35% , #47B31C 86%);
        background: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wAARCAAwADADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTV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G81/wDtsSsknnI20n5TjIz/AJ7V20VSre+4dbro9Nv8zjlmFbBr2cZatWe3Xff7vM//2Q==) no-repeat;
        background-size: contain;
    }
    #blog-comments-placeholder .feedbackItem:nth-child(10n+0) .blog_comment_body:after {
        background-image: url();
    }
    #blog-comments-placeholder .feedbackItem:nth-child(10n+1) .blog_comment_body:after {
        background-image: url();
    }
    #blog-comments-placeholder .feedbackItem:nth-child(10n+2) .blog_comment_body:after {
        background-image: url();
    }
    #blog-comments-placeholder .feedbackItem:nth-child(10n+3) .blog_comment_body:after {
        background-image: url();
    }
    #blog-comments-placeholder .feedbackItem:nth-child(10n+4) .blog_comment_body:after {
        background-image: url();
    }
    #blog-comments-placeholder .feedbackItem:nth-child(10n+5) .blog_comment_body:after {
        background-image: url();
    }
    #blog-comments-placeholder .feedbackItem:nth-child(10n+6) .blog_comment_body:after {
        background-image: url();
    }
    #blog-comments-placeholder .feedbackItem:nth-child(10n+7) .blog_comment_body:after {
        background-image: url();
    }
    #blog-comments-placeholder .feedbackItem:nth-child(10n+8) .blog_comment_body:after {
        background-image: url();
    }
    #blog-comments-placeholder .feedbackItem:nth-child(10n+9) .blog_comment_body:after {
        background-image: url();
    }
    
    
    /* 清除浮动 */
    .feedbackCon:after {
        content: '';
        display: block;
        clear: both;
    }
    /* 引用边框 */
    .comment_quote {
        border: 1px solid #63921F;
        border-radius: 3px;
    }
    /* 隐藏小图标 */
    .feedbackItem .sendMsg2This {
        display: none;
    }
    
    /* 楼主自己的样式 */
    .myself .blog_comment_body {
        float: right;
        margin-right: 72px;
        background: #98DDFF;
    }
    .myself .blog_comment_body:before {
        right: -17px;
        left: initial;
        border-left: solid 18px #98DDFF;
        border-right: none;
    }
    .myself .blog_comment_body:after {
        content: '';
        display: block;
         48px;
        height: 48px;
        background-image: url(https://pic.cnblogs.com/avatar/1195371/20170706205806.png) !important;
        background-size: contain;
        position: absolute;
        right: -72px;
        top: 0px;
        left: initial;
    }
    .myself .comment_vote {
        float: left;
        margin-left: -40px;
    }
    .myself .comment_quote {
        border: 1px solid #4491B7;
    }
    .myself .feedbackListSubtitle {
        float: right;
        margin-right: 10px;
    }
    .myself .feedbackListSubtitle a.layer {
        display: inline-block;
    }
    .myself .feedbackManage {
        left: 66px;
        right: initial;
        top: 5px;
    }
    /* 评论结束 */
    
    
    #comment_form_container 
    .comment_textarea {
        color: #F8F8F2;
        background-color: black;
         100%;
        height: 360px;
    }
    
    /* 广告分割线 */
    .ad_text_commentbox {
        margin-left: -30px;
        margin-right: -5px;
        background: #EBEBEB;
        height: 160px;
    }
    .ad_text_commentbox:after {
        content: '下面是广告辣QwQ,随它去吧';
        text-align: center;
        display: block;
        line-height: 160px;
        color: #F44336;
        font-size: 20px;
        font-family: 'Microsoft Yahei';
        text-shadow: 1px 1px 1px #FFF;
    }
    
    /*推荐和反对*/
    #div_digg {
        padding: 10px;
        position: fixed;
        _position: absolute;
        z-index: 1000;
        bottom: 20px;
        right: 0;
        _right: 17px;
        border: 1px solid #D9DBE1;
        background-color: #FFFFFF;
        filter: alpha(Opacity=80);
        -moz-opacity: 0.8;
        opacity: 0.8;
    }
    
    .icon_favorite {
        background: transparent url('https://files.cnblogs.com/files/ECJTUACM-873284962/kj.gif') no-repeat 0 0;
        padding-left: 16px;
    }
    
    #blog_post_info_block a {
        text-decoration: none;
        color: #5B9DCA;
        padding: 3px;
    }




    哪怕人间是炼狱,梦想永远是天堂
    继续走下去吧,理想永远都年轻,花儿一定会再次盛开
  • 相关阅读:
    微软外服 AlI In One
    js 循环多次和循环一次的时间的性能对比 All In One
    vue inject All In One
    Excel 表格数据倒置 All In One
    SVG tickets All In One
    OH MY ZSH All In One
    js array for loop performance compare All In One
    mac terminal show You have new mail All In one
    新闻视频 26 制作母版页
    转自牛腩 母版页和相对路径
  • 原文地址:https://www.cnblogs.com/cjoierljl/p/8473540.html
Copyright © 2011-2022 走看看