⽤HTML怎样编写评论区,可爱的博客园样式之⾃定义“评论
区”样式
大学四年个人总结# cute-cnblogs 评论区代码美化
说明
⼀些⼈可能⽐较喜欢个别区域的,这⾥是博客园评论区的样式代码。
(PS:基于博客园主题“SimpleMemor”进⾏的样式修改,勾选禁⽤默认样式了,可能主题不同,class啥的也不同,不同的只能⾃⼰耐⼼改⼀下啦~)
OωO表情是插件喔,github ,就是图⽚类型的需要js进⾏处理,因为发表评论的引⼊使⽤不⼀样,具体可以⾃⾏对⽐下官⽹与我引⼊的js,也可直接拿我的js去⽤~。
css
/*评论区*/
#commentform_title, .feedback_area_title {font: normal normal 16px/35px"Microsoft YaHei";margin: 10
px 0 30px;border-bottom: 2px solid #ccc;background-image: none;padding: 0;border-bottom: 0;}
#commentform_title:after, .feedback_area_title:after {content: '';display: block;width: 100%;text-align: center;position: relative;bottom: 16px;left: 110px;border-bottom: 1px dashed #e9e9e9;}
#tbCommentAuthor {padding-left: 10px;color: #555;border: 1px solid #ddd;border-radius: 3px;-moz-border-radius: 3px;-webkit-border-radius: 3px;width: 320px;height: 20px;background: #fff;}
mentbox_title {width: 100%;}
divmentform p{margin-bottom: 20px}
/*评论列表*/
.feedbackItem {margin-top: 30px;}
.feedbackListSubtitle {clear: both;color: #a8a8a8;padding: 8px 5px;}
.feedbackManage {width: 200px;text-align: right;float: right;}
.feedbackListSubtitle a:link, .feedbackListSubtitle a:visited, .feedbackListSubtitle a:active {color: #77
7;font-weight: 450;}
.louzhu {background: transparent url(/images/icoLouZhu.gif) no-repeat scroll right top;padding-right: 16px;}
.feedbackCon {border-bottom: 1px solid #EEE;padding: 10px 20px 10px 5px;min-height: 35px;_height: 35px;margin-bottom: 1em;line-height: 1.5;}
ment-avatar {width: 48px;height: 48px;border: 1px solid #dcd6b3;padding: 3px;border-radius: 50%;-webkit-transition: all .6s ease-out;-moz-transition: all .5s ease-out;-ms-transition: all .5s ease-out;-o-transition: all .5s ease-out;transition: all .5s ease-out;}
.blog_comment_body {display: inline-block;width: 70%;margin-left: 15px;vertical-align: initial!important;font-family: Lato, Helvetica, Arial, sans-serif;}
ment_vote {padding-right: 10px;}
ment_vote a {color: #999;}
.blog_comment_body a {color: #2daebf;}
ment-avatar:hover {transform: rotateZ(360deg);}
#comment_nav{padding-top: 10px;}水木清华是什么意思
.blog_comment_body img {max-width: 100px;}2020高考作文题目是什么
/*提交评论*/
ment_btn {width: 180px;height: 38px;padding: 8px 20px;text-align: center;font-size: 14px;color: #fff;border:
0;background: #7396a7 !important;border-radius: 3px;-moz-border-radius: 3px;-webkit-border-radius: 3px;-webkit-transition: all .4s ease;-moz-transition: all .4s ease;-o-transition: all .4s ease;-ms-transition: all .4s ease;transition: all .4s ease;cursor: pointer;display: inline-block;vertical-align: middle;outline: 0;text-decoration: none;}
ment_btn:hover {background: #8cb7cc!important;}
p#commentbox_opt {text-align: center;}
html
中秋节问候短信/*⽂章评论*/
var le = $(".feedbackItem").length
京东白条for(var i = 0;i < le;i++){
var src = $(".feedbackItem").eq(i).find(".feedbackCon").find("span").text()
$(".feedbackCon").eq(i).prepend('')
}
$("#tbCommentBody").attr("placeholder","请乖乖填写哦! ...")
$("#tbCommentBody").after('
OωO表情
')
var load_face = function(a){
var OwO_demo = new OwO({
logo: 'OωO表情',
container: ElementsByClassName('OwO')[0],
target: ElementById('tbCommentBody'),
api: 'miluluyo.github.io/OwO.json',
position: 'down',
width: '70%',
国庆节祝福语 简洁大气maxHeight: '250px'
});
a.classList.add('OwO-open');
a.οnclick=null
}
$("#commentbox_opt").nextAll().remove()
$("#btn_comment_submit").val("提交评论 (Ctrl + Enter)")
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论