<!DOCTYPE html>
<html lang="zh-cn" style="width: 100%;height: 100%;">
<head>
<meta charset="UTF-8">
<title>预览明信片</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="Houyuqing">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
   <style>
    
.pre-top {
text-align: center;
padding-bottom: px;
line-height: ;
} .pre-top span {
font-size: px;
color: #fff;
padding: px;
} .pre-top span:nth-of-type() {
position: relative;
} .pre-top span:nth-of-type():after {
position: absolute;
content: '';
z-index: ;
width: px;
height: px;
top: px;
right: -px;
background: #fff;
} .preview {
height: %;
width: %;
box-sizing: border-box;
perspective: px;
} .preview figure {
margin: ;
height: %;
transform-style: preserve-3d;
transition: s transform;
} .figure1 {
transform: rotateY(.5turn);
} .preview figure img {
width: %;
height: %;
box-sizing: border-box;
border: px solid #fff;
box-shadow: px px px #a6a3a4;
} .preview figcaption {
position: absolute;
top: ;
left: ;
width: %;
height: %;
z-index: ;
background-image: url("../images/img-back.png");
background-size: cover;
transform: rotateY(.5turn) translateZ(px);
}
.preview figcaption h1 {
position: absolute;
} .fig-word {
font-size: px;
color: #000;
padding: px px;
}     
</style>
</head>
<body class="word-back">
<div class="pre-top">
<span class="commRed span1">正面</span>
<span class="span2">背面</span>
</div>
<div class="preview">
<figure class="relative">
<img src="../images/11.jpg" alt="" class="">
<figcaption>
<p class="fig-word css11339c70851c62b">这是好友给你的悄悄哦这是好友给你的悄悄哦这是好友给你的悄悄哦这是好友给你的悄悄哦这是好友给你的悄悄哦这是好友给你的悄悄哦这是好友给你的悄悄哦</p>
</figcaption>
</figure>
</div>
<script src="../js/jquery.min.js"></script>
<script>
// 正面
$('.span1').click(function () {
$('figure').removeClass('figure1');//背面消失
$(this).addClass('commRed').siblings().removeClass('commRed');//加红色
});
// 背面
$('.span2').click(function () {
$('figure').addClass('figure1');//背面出现
$(this).addClass('commRed').siblings().removeClass('commRed');//加红色
});
// 点击页面转换正背面
$('.preview').click(function () {
if($('.span1').is('.commRed')){
$('figure').addClass('figure1');//背面出现
$('.span1').removeClass('commRed').siblings().addClass('commRed');//加红色
}else {
$('figure').removeClass('figure1');//背面消失
$('.span2').removeClass('commRed').siblings().addClass('commRed');//加红色
}
})
</script> </body>
</html>
.pre-top {
text-align: center;
padding-bottom: px;
line-height: ;
} .pre-top span {
font-size: px;
color: #fff;
padding: px;
} .pre-top span:nth-of-type() {
position: relative;
} .pre-top span:nth-of-type():after {
position: absolute;
content: '';
z-index: ;
width: px;
height: px;
top: px;
right: -px;
background: #fff;
} .preview {
height: %;
width: %;
box-sizing: border-box;
perspective: px;
} .preview figure {
margin: ;
height: %;
transform-style: preserve-3d;
transition: s transform;
} .figure1 {
transform: rotateY(.5turn);
} .preview figure img {
width: %;
height: %;
box-sizing: border-box;
border: px solid #fff;
box-shadow: px px px #a6a3a4;
} .preview figcaption {
position: absolute;
top: ;
left: ;
width: %;
height: %;
z-index: ;
background-image: url("../images/img-back.png");
background-size: cover;
transform: rotateY(.5turn) translateZ(px);
}
.preview figcaption h1 {
position: absolute;
}

最新文章

  1. node.js安装
  2. Bash Shell内建命令和保留字
  3. [转]MySQL与MongoDB的操作对比
  4. Java反射机制(Class类的使用)
  5. 不用标准库实现memmove,借助一个缓冲区temp,即使src和dest所指的内存有重叠也能正确拷贝
  6. swift笔记06
  7. Entity Framework笔记(二)
  8. js面向对象的学习笔记九(BOM 与 DOM 经常使用的属性分析)
  9. Web App、Hybrid App与Native App
  10. ReactJS antd 环境中项目上传图片后压缩(lrz的使用)
  11. Nginx 反向代理 -- 一路上的坑转载
  12. 【PAT】B1073 多选题常见计分法(20 分)
  13. Docker 配置固定IP及桥接的实现方法(转载)
  14. idea找不到import project
  15. python记录_day01 初始
  16. Warning: 执行完毕, 但带有警告 trigger trigger_EqPic_insert 已编译。
  17. C#之代码优化
  18. SQL Server 基础之《学生表-教师表-课程表-选课表》(二)
  19. DXT 图片压缩(DXTC/DirectX Texture Compression Overview)
  20. Centos6.5安装pip命令以及中途遇到的问题

热门文章

  1. 进程互斥软件实现之Lamport面包店算法
  2. ODOO/OPENERP的网页模块QWEB简述
  3. light oj 1422 区间dp
  4. boost 字符串大小写转换
  5. 廖雪峰Java10加密与安全-3摘要算法-3SHA-1算法
  6. Spriongboot+quartz定时任务
  7. C++项目使用的开源库记录
  8. LA3983 Robotruck
  9. webpack处理字体文件
  10. 微信小程序--导航跟随