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,会有一个角度的问题.我们就是得用这样的一个技巧来制作三角的效果.我们只需要保证一边的边框是有色,其他边框色为透明色,这样我们就很容易制作出三角形,然后改变 ...
随机推荐
- Sentinel 学习资料
Sentinel 学习资料 网址 官方github https://github.com/alibaba/Sentinel 官方中文文档 https://github.com/alibaba/Sent ...
- Netty之ChannelHandler(三)
ChannelHandler是netty中的核心处理部分,我们使用netty的绝大部分代码都写在这部分,所以了解它的一些机制和特性是很有必要的. 一.Channel Channel接口抽象了底层soc ...
- [LeetCode] 827. Making A Large Island 建造一个巨大岛屿
In a 2D grid of 0s and 1s, we change at most one 0 to a 1. After, what is the size of the largest is ...
- [LeetCode] 190. Reverse Bits 颠倒二进制位
Reverse bits of a given 32 bits unsigned integer. Example 1: Input: 00000010100101000001111010011100 ...
- [LeetCode] 113. Path Sum II 二叉树路径之和之二
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given su ...
- [LeetCode] 62. Unique Paths 不同的路径
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The ...
- MySQL基础指令和安装
数据库概念 那Mysql能干嘛呢?它就是一款软件,安装在任何一台计算机或者服务器上的时候,只要我告诉它创建一个文件,新增一个数据,删除一个数据它就能帮我去做想要的操作 那我们暂且能不能理解为mysql ...
- apache启动错误 AH00072
错误描述: make_sock: could not bind to address [::]:443 G:\Apache24\bin>httpd.exe -w -n "Apache2 ...
- Oracle逻辑结构学习笔记
数据库(Database)由若干表空间(Tablespace)组成,表空间(Tablespace)由若干段(Segment)组成,段(Segment)由若干区(Extent)组成,区(Extent)又 ...
- commitizen规范代码提交
转载链接:https://www.jianshu.com/p/bd712e42f2e9 参考链接:https://segmentfault.com/a/1190000009048911 平时提交的变动 ...