css实现图片信息展示
<style>
.layui-fluid{padding: 15px;}
.img-responsive{display: block;width: 100%;max-width: 100% ;height: auto;}
.my-layui-btn {display: inline-block;height: 38px;line-height: 38px;padding: 0 18px;background-color: #009688;color: #fff;white-space: nowrap;text-align: center;font-size: 14px;border: none;border-radius: 2px;cursor: pointer}
.img-responsive,.img-content,.img-data{border-radius: 3px;}
.img-list{font-size: 18px;color: white;}
.img-data,.img-content{transition: all 0.4s ease-out;}
.img-content{position: relative;max-height: 250px;overflow: hidden;box-shadow: 0px 15px 30px -17px rgba(0, 0, 0, 0.44);}
.img-content:hover{transform: scale(1.05);box-shadow: 0px 15px 30px -17px rgba(0, 0, 0, 0.64);}
.img-data{position: absolute;top:;bottom:;left:;right:;z-index:;overflow: hidden;text-overflow: ellipsis;opacity:;}
.img-data:hover{opacity:;background: rgba(1,1,1,.3);}
.layui-btn-group{width: 100%;position: relative;}
.next-day{position: absolute;right:;top:;}
.prev-day{position: absolute;top:;}
.date{box-sizing: border-box;width: 100%;background: transparent;padding: 0 80px 0 80px;}
.tip{position: absolute;top:;left:-10px;transform: translateX(-110%);background: #0C0C0C;border-radius: 2px;color: white;padding: 0 10px;display: none;}
.arrow-icon{display: block;position: absolute;right: -13px;top: 12px;border: 8px solid transparent;border-left-color: #0C0C0C;}
.img-more-btn{width: 40px;height: 40px;border-radius: 100%;padding:;position: relative;}
.layui-icon-down{display: block;transition: all .3s ease-out;}
</style>
<div class="layui-col-md3 img-info">
<div class="img-content">
<img src="${ctxPath}/static/img/natural1.jpg" class="img-responsive"/>
<div class="img-data">
2019/2/13 00:00:00
</div>
</div>
</div>
<div class="layui-col-md3 img-info">
<div class="img-content">
<img src="${ctxPath}/static/img/natural1.jpg" class="img-responsive"/>
<div class="img-data">
2019/2/13 00:00:00
</div>
</div>
</div>
<div class="layui-col-md3 img-info">
<div class="img-content">
<img src="${ctxPath}/static/img/natural1.jpg" class="img-responsive"/>
<div class="img-data">
2019/2/13 00:00:00
</div>
</div>
</div>
css实现图片信息展示的更多相关文章
- 纯CSS实现项目展示遮罩详情效果
本实例主要用于项目展示时鼠标hover后显示一个遮罩显示项目详情的效果,遮罩采用CSS的绝对定位以及CSS3盒子模型. 本实例应用广泛,很多品牌官方网站均有采用. hover: <!DOCTYP ...
- CSS 动画之十-图片+图片信息展示
这个动画主要是运用了一些css3的特性,效果是展示一张商品图片,然后在商品图片的制定位置显示该商品的详细信息.效果在chrome浏览器中预览. <!DOCTYPE html> <ht ...
- file 自定义上传附件并展示缩略图
效果图镇楼.. 写的有点乱.上传一个实例供大家参考--附件下载地址如何下: https://files.cnblogs.com/files/fchx91/uploadFiles.rar 2019- ...
- Github上html页面(包括CSS样式和JS效果)如何显示出来
在看Github上项目时,发现有的html页面效果能很好的展现出来,而有的则不能.对这个问题很好奇,因此研究了一下,最终做到了将页面展示出来的目的.下面以我的Github的开源项目bootstrap- ...
- Web 建站技术中,HTML、HTML5、XHTML、CSS、SQL、JavaScript、PHP、ASP.NET、Web Services 是什么(转)
Web 建站技术中,HTML.HTML5.XHTML.CSS.SQL.JavaScript.PHP.ASP.NET.Web Services 是什么?修改 建站有很多技术,如 HTML.HTML5.X ...
- 从项目中学习HTML+CSS
最近由于工作原因以及自己的懈怠,已经很久都没有更新过博客了.通过这段时间,我发现坚持一件事情是真的很难,都说万事开头难,但是在放弃这件事上好像开头了后面就顺理成章的继续下去了.中间即使不怎么情愿也在努 ...
- 简易博客[ html + css ] 练习
1. 前言 通过使用 html + css 编写一个简易的博客作为入门练习 2. 代码及实现 2.1 目录结构 2.2 代码部分 <!DOCTYPE html> <html lang ...
- 3 、操作元素 (属性 CSS 和 文档处理)
3 操作元素-属性 CSS 和 文档处理 3.1 属性操作 $("p").text() $("p").html() $(":check ...
- CSS制作图形速查表
很少会有人意识到,当浏览器绘制的border,会有一个角度的问题.我们就是得用这样的一个技巧来制作三角的效果.我们只需要保证一边的边框是有色,其他边框色为透明色,这样我们就很容易制作出三角形,然后改变 ...
随机推荐
- 201871010133-赵永军《面向对象程序设计(java)》第十五周学习总结
201871010133-赵永军<面向对象程序设计(java)>第十五周学习总结 项目 内容 这个作业属于哪个课程 https://www.cnblogs.com/nwnu-daizh/ ...
- csp 201409-3 字符串匹配
问题描述: 很简单,判断给定串是否在目标串中出现.分区分大小写和不区分大小写两种情况. csp特点: csp的第三题一般是字符串的处理,c++的string类虽然不好用,但是掌握的话在考试的时候可能能 ...
- 新建Springboot项目
软件为sts软件 1.新建项目 2.工程名称 3.选择依赖项,可以在搜索框中搜索 4.添加端口号 5.创建controller 6.创建controller类,并输入一下内容 package com. ...
- nginx发布静态资源
nginx发布静态资源 参考 ngx_http_index_module index指令 ngx_http_core_module http指令 location指令 listen指令 root指令 ...
- VIJOS-P1059 积木城堡
洛谷 P1504 积木城堡 https://www.luogu.org/problem/P1504 JDOJ 1240: VIJOS-P1059 积木城堡 https://neooj.com/oldo ...
- 洛谷 P1156 垃圾陷阱 题解
题目传送门 dp+排序+01背包 就完事了??? 貌似就是这样的 代码: //dp 排序 01背包 #include<iostream> #include<cstdio> #i ...
- [LeetCode] 31. Next Permutation 下一个排列
Implement next permutation, which rearranges numbers into the lexicographically next greater permuta ...
- 带有连接池的Http客户端工具类HttpClientUtil
一.背景 业务开发中,经常会遇到通过http/https向下游服务发送请求.每次都要重复造轮子写HttpClient的逻辑,而且性能.功能参差不齐.这里分享一个高性能的.带连接池的通用Http客户端工 ...
- thinkphp5.0 - 安装
1.thinkphp 5.0 可以通过下载,git 等方式安装,我这里采用下载完整版安装,解压到一个目录下就行了 2.配置 web 服务器配置文件,我是用的是 nginx(nginx/1.9.15) ...
- springcloud(六,多个服务提供者)
spring cloud (一.服务注册demo_eureka) spring cloud (二.服务注册安全demo_eureka) spring cloud (三.服务提供者demo_provid ...