Comment Function--Learn more about plugin

Source: Internet
Author: User

First enter the official website: http://duoshuo.com/, select I want to install, fill in the good information after the assignment code to the project is OK

Here is the code I copied:

<!--comment Box start-and-<!--please replace this here with the article id--> in your site <divclass="Ds-thread"data-thread-key="MessageBoard2"data-title="Please replace the title of the article"Data-url="Please replace the article URL"></div> <!--comment Box End---<!--say public JS code start (one page only needs to be inserted once)--<script type="Text/javascript">varDuoshuoquery = {short_name:"Shuai7boy" }; (function () {vards = Document.createelement ('Script'); Ds.type='Text/javascript'; Ds.Async=true; DS.SRC= (Document.location.protocol = ='https:'?'https:':'http:') +'//static.duoshuo.com/embed.js'; Ds.charset='UTF-8'; (document.getElementsByTagName ('Head')[0]             || document.getElementsByTagName ('Body')[0]). appendchild (DS);    })(); </script> <!--say public JS code end---
View Code

Comments display style background can be controlled, you can also customize CSS style, below is my custom style implementation of an effect:

Implementing CSS:

#ds-reset. Ds-avatar{background:none!important; Box-shadow:none!important;} #ds-reset. Ds-avatar img, #ds-thread #ds-reset ul.ds-children. Ds-avatar img{width:50px!important;height:50px!important; -webkit-transition:. 8s;-moz-transition:. 8s;-o-transition:. 8s;-ms-transition:. 8s;padding:3px;border:1px solid #ddd; background: #fff;}. DS-post:hover. Ds-avatar img{transform:rotate (720deg);-webkit-transform:rotate (720deg);-moz-transform:rotate ( 720DEG);-o-transform:rotate (720deg);-ms-transform:rotate (720deg); border-radius:30px!important;} #ds-reset. Ds-avatar img:hover{transform:rotate (720deg);-webkit-transform:rotate (720deg);-moz-transform:rotate ( 720DEG);-o-transform:rotate (720deg);-ms-transform:rotate (720deg); border-radius:30px!important;} #ds-thread #ds-reset ds-comment-body, #ds-thread #ds-reset ul.ds-children. ds-comment-body{padding-left:70px!important;} #ds-thread #ds-reset ds-comment-body, #ds-thread #ds-reset ul.ds-children. ds-comment-body{padding-left:70px!important;}. DS-post:hover{background: #eee!important;} #ds-thread #ds-reset ul.ds-children. ds-avatar{width:50px!important;} #ds-thread #ds-reset. Ds-replybox{padding:0 0 080px!important;} #ds-reset #ds-ctx. ds-ctx-entry. ds-ctx-body{margin-left:68px!important;} #ds-recent-comments Li.ds-comment:nth-of-type (1) {Border:none!important;}
View Code

ZJ ...

Comment Function--Learn more about plugin

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.