<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<style>
*{margin:0px;padding:0px;}
body{background-color:gray}
#head{height:100px;background-color:gray;}
#body{
width:98%;height:800px;margin:0 auto;background-color:lightgray;position:relative;
//-webkit-border-radius: 1em;-moz-border-radius: 1em;
border-radius: 1em;
font-family: "Arial","Microsoft YaHei","黑体","宋体",sans-serif;
}
#left{width:68%;height:100%;float:left;}
#right{width:32%;height:100%;float:right;background-color:#bbb;border-radius:1em;}
#foot{height:46px;}
#foot p{line-height:46px;text-align:center;}
.comment{
margin-top:4% ;margin-left:14%;padding:2%;width:68%;background-color:#aaa;border: 1px dashed #888;border-radius:1em;
position:relative;display:a;
}
.comment:hover img{border-radius:1em;border: 2px solid #888;}
.comment:hover{background-color:#bbb;}
.comment img{position:absolute;top:-1%;left:-10%;border-radius:2em;border:2px solid #888;}
.comment p{text-indent:2em; margin-top:0.4%;}
.comment span{position:absolute;top:10%;right:4%;font-size:0.9em;font-weight:none;color:#444}
.comment .name{color:black;font-weight:bold;text-decoration:none;}
.comment .name:hover{text-decoration:underline;}
.comment .up{color:#555;text-decoration:none;position:absolute;bottom:4%;right:8%;}
.comment .up:hover{color:#000;}
</style>
<script> </script>
</head>
<body>
<div id="head"> </div>
<div id="body">
<div id='left'>
<div class='comment'> <img src='img/1.png' alt='head pic' />
<a class="name" href="">motivate</a>
<p>跟oncopy事件类似,oncut事件也需要返回false才能禁止剪切。大家可以试试在上面的在线测试中把“return false;”这一句删除会看到,虽然弹出了提示框,但是内容还是被剪切了!</p>
<span>2016/10/12</span>
<a class='up' href="">赞</a>
</div> <div class='comment'>
<img src='img/2.png' alt='head pic' />
<a class="name" href="">backin</a>
<p>其实上述方法不能真正做到完全屏蔽,因为我们可以到浏览器中设置“禁用JavaScript”,这时使用JavaScript实现屏蔽复制就无效了。进一步扩展,使用这种屏蔽方式也极大影响了用户体验,大家在实际开发的时候如果不想你的网站成为鸟不拉屎的地方的话,还是少点用。</p>
<span>2016/10/13</span>
<a class='up' href="">赞</a>
</div> </div>
<div id='right'> </div>
</div>
<div id="foot">
<p>copyright@shunshou</p>
</div> </body>
</html>

css简单评论页面的更多相关文章

  1. HTML与CSS简单页面效果实例

    本篇博客实现一个HTML与CSS简单页面效果实例 index.html <!DOCTYPE html> <html> <head> <meta charset ...

  2. 3.8.1 HTML与CSS简单页面效果实例

    HTML与CSS简单页面效果实例 <!DOCTYPE html> <html> <head> <meta charset="utf-8" ...

  3. 我的Vue之旅 07 Axios + Golang + Sqlite3 实现简单评论机制

    第三期 · 使用 Vue 3.1 + TailWind.CSS + Axios + Golang + Sqlite3 实现简单评论机制 效果图 CommentArea.vue 我们需要借助js的Dat ...

  4. CSS补充之--页面布局、js补充,dom补充

    CSS补充之--页面布局 主站一:(下面是一个大致的模板) <div class="pg-header"> <div style="width: 120 ...

  5. css3 calc():css简单的数学运算-加减乘除

    css3 calc():css简单的数学运算–加减乘除 多好的东西啊,不用js,一个css就解决了. .box{ border:1px solid #ddd; width:calc(100% - 10 ...

  6. 一小时搞定DIV+CSS布局-固定页面开度布局

    本文讲解使用DIV+CSS布局最基本的内容,读完本文你讲会使用DIV+CSS进行简单的页面布局. 转载请标明:http://www.kwstu.com/ArticleView/divcss_20139 ...

  7. (转)一小时搞定DIV+CSS布局-固定页面开度布局

    本文讲解使用DIV+CSS布局最基本的内容,读完本文你讲会使用DIV+CSS进行简单的页面布局. 转载请标明:http://www.kwstu.com/ArticleView/divcss_20139 ...

  8. 自学jQueryMobile之简单创建页面

    首先简答介绍一下JQueryMobile吧,我觉得用一句话来讲就是可以 "写更少的代码,做更多的事情" : 它可以通过一个灵活及简单的方式来布局网页,且兼容所有移动设备.这也是我自 ...

  9. CSS简单使用

    CSS简单使用 标签 : 前端技术 CSS(Cascading Style Sheet : 层叠样式表单)用来定义网页显示效果. 可以解决HTML代码对样式定义的重复,提高后期样式代码的可维护性,并增 ...

随机推荐

  1. VO对象和PO对象的区别

    VO,值对象(Value Object),PO,持久对象(Persisent Object),它们是由一组属性和属性的get和set方法组成.从结构上看,它们并没有什么不同的地方.但从其意义和本质上来 ...

  2. java中cookie存取值

    cookie存值: Cookie userCookie=new Cookie("loginInfo",loginInfo); userCookie.setMaxAge(30*24* ...

  3. myeclipse中如何修改项目的名称

     第一种:myeclipse通用版 1.打比方,比如复制一个现有的项目,重命名项目名称,这里举例名称重新命名为"劳黑炭" 2.要清楚的是,这里的项目名称重新命名了,但是Web项目本 ...

  4. 如何将 NavigationBar 的半透明效果关闭?

    如何将 NavigationBar 的半透明效果关闭?只需三行代码就可以:self.navigationController.navigationBar.barTintColor = [UIColor ...

  5. Vue.js与MVVM

    MVVM 是Model-View-ViewModel 的缩写,它是一种基于前端开发的架构模式,其核心是提供对View 和 ViewModel 的双向数据绑定,这使得ViewModel 的状态改变可以自 ...

  6. 卡拉OK效果的实现-iOS音乐播放器

    自己编写的音乐播放器偶然用到这个模块,发现没有思路,而且上网搜了搜,关于这方面的文章不是很多,没找到满意的结果,然后自己也是想了想,最终实现了这种效果,想通了发现其实很简单. 直接上原理: 第一种: ...

  7. node.js express架构安装部署

    安装-g:表示全局安装(必须以安装node.js) npm install -g express-generator 创建一个express架构的项目文件夹express testWebApp 在pa ...

  8. Python 逐行修改txt每条记录的内容

    Txt中保存以些数据,这些数据中我们要逐行read line出来进行处理,约定第一个字符为"#"的数据表示已经处理. 一个办法是读取txt,新增另外一个已完成处理txt来保存完成的 ...

  9. 使用base.调用父类里面的属性

    使用base.调用父类里面的属性public class parent { public string a; }public class child :parent { public string g ...

  10. Python-面向对象(类)一

    一.如何创建类 class cls: pass 二.创建方法 构造方法: __init__(self, arg) obj = 类('a1') 普通方法: obj = 类('xxx') obj.普通方法 ...