您现在的位置是:网站首页> 编程资料编程资料
CSS3实现网站商品展示效果图HTML5+CSS3:3D展示商品信息示例
2021-09-03
882人已围观
简介 这篇文章主要介绍了CSS3实现网站商品展示效果图,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
本文介绍了CSS3实现网站商品展示效果图,分享给大家,具体如下:
html代码
小米电视4A 43英寸青春版
全高清屏 / 人工智能语音
1499元
1699
CSS3代码
* { margin: 0; padding: 0; } ul, ol { list-style: none; } input, button { outline: none; border: none; } a { text-decoration: none; } .clearfix::before, .clearfix::after { content: ""; height: 0; line-height: 0; display: block; visibility: hidden; } .clearfix::after { clear: both; } body { padding: 100px; background-color: #f5f5f5; } .product li { float: left; width: 234px; height: 246px; padding: 34px 0 20px; z-index: 1; margin-left: 14px; margin-bottom: 14px; background: #fff; -webkit-transition: all .2s linear; transition: all .2s linear; position: relative; } .pro-img { width: 150px; height: 150px; margin: 0 auto 18px; } .pro-img a { width: 100%; height: 100%; } .pro-img img { display: block; width: 100%; height: 100%; } .product li h3 { margin: 0 10px; font-size: 14px; font-weight: 400; text-align: center; } .product li h3 a { color: #333; } .desc { margin: 0 10px 10px; height: 18px; font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; color: #b0b0b0; } .price { font-size: 14px; margin: 0 10px 10px; text-align: center; color: #ff6700; } .price del { color: #b0b0b0; } .review { position: absolute; bottom: 0; left: 0; z-index: 3; width: 234px; height: 0; overflow: hidden; font-size: 12px; background: #ff6700; opacity: 0; -webkit-transition: all .2s linear; transition: all .2s linear; } .review a { color: #757575; display: block; padding: 8px 30px; outline: 0; } .review a span { display: block; margin-bottom: 5px; color: #fff; } .product li:hover { -webkit-box-shadow: 0 15px 30px rgba(0,0,0,0.1); box-shadow: 0 15px 30px rgba(0,0,0,0.1); -webkit-transform: translate3d(0, -2px, 0); transform: translate3d(0, -2px, 0); } .product li:hover .review { opacity: 1; height: 76px; }运行效果图:
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
相关内容
- CSS中使用文本阴影与元素阴影效果css3中less实现文字长阴影(long shadow)CSS 实现多彩、智能的阴影效果
- 移动端自适应样式之@media的使用方法CSS Transition通过改变Height实现展开收起元素从QQtabBar看css命名规范BEM的详细介绍css实现两栏布局,左侧固定宽,右侧自适应的多种方法CSS 实现Chrome标签栏的技巧CSS实现两列布局的N种方法CSS实现隐藏搜索框功能(动画正反向序列)CSS3中Animation实现简单的手指点击动画的示例详解CSS中的特指度和层叠问题详解overflow:hidden的作用(溢出隐藏、清除浮动、解决外边距塌陷)关于CSS浮动与取消浮动的问题
- CSS实现ul和li横向排列的两种方法HTMl中标签中li横向排列的实现示例css实现图片横向排列滚动效果让几个横向排列的浮动子div居中显示的方法让横向排列的几个浮动(float:left)的子div居中显示CSS的ul和li实现横向排列和去掉li的点
- CSS 实现侧滑显示留言面板的网页组件功能ai怎么使用CSS属性面板?Dreamweaver中CSS面板该怎么设置?纯css3制作网站后台管理面板
- CSS控制网页背景颜色的代码纯CSS3实现网页背景音乐动画代码CSS实现网页背景图片自适应全屏的方法用网页技术CSS实现网页背景渐变的四种代码设置CSS 网页背景渐变实现代码CSS3教程(5):网页背景图片
- CSS完美解决前端图片变形问题的方法CSS实现图片等比例缩小不变形的实例代码关于css控制图片大小不变形的实现思路
- 常见的浏览器兼容性问题(小结)浅谈遇到的几个浏览器兼容性问题base64图片在各种浏览器的兼容性处理 对常见的css属性进行浏览器兼容性总结(推荐)CSS浏览器兼容性常见问题总结大全(推荐)避免不必要的浏览器兼容性问题的5个技巧详解CSS3浏览器兼容浅谈浏览器的兼容性(必看篇)详解IE浏览器的haslayout属性及相关兼容性问题解决浏览器hack总结 详细的浏览器兼容性的快速解决方法HTML5的video标签的浏览器兼容性增强方案分享
- CSS3关于z-index不生效问题的解决css之Display、Visibility、Opacity、rgba和z-index: -1的区别解决CSS中子元素z-index与父元素兄弟节点的层级问题css 层叠与z-index的示例代码z-index为负值的元素无法点击到的解决方法CSS z-index 层级关系优先级的概念css z-index层重叠顺序使用介绍css中z-index: 0和z-index: auto的区别
- css常用样式font设置字体的多种变换(实例详解)css动画效果之animation的常用样式浅谈html5标签css3的常用样式css 常用样式(分享)20个CSS/CSS3常用样式汇总CSS常用样式简单的总结包括定位、显示等属性CSS常用样式之绘制双箭头的示例代码
- css实现div内凹角样式的示例代码CSS Transition通过改变Height实现展开收起元素从QQtabBar看css命名规范BEM的详细介绍css实现两栏布局,左侧固定宽,右侧自适应的多种方法CSS 实现Chrome标签栏的技巧CSS实现两列布局的N种方法CSS实现隐藏搜索框功能(动画正反向序列)CSS3中Animation实现简单的手指点击动画的示例详解CSS中的特指度和层叠问题详解overflow:hidden的作用(溢出隐藏、清除浮动、解决外边距塌陷)关于CSS浮动与取消浮动的问题

