Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the magnification effect of picture list hover by CSS

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you CSS how to achieve picture list hover magnification effect, I believe that most people do not understand, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

The code is as follows:

Sheet hover magnification

* {margin:0;padding:0;}

Body {margin-top:80px;font-size:12px;font-family: "Microsoft Acer", arial,sans-serif;color:#9C9C91;background:#fff;}

A {color:#333;text-decoration: none;}

A:hover {color:#f00;}

.wrap {width:720px;background:#f2f2f2;margin:0 auto;}

Ul.works {list-style:none;margin:0;padding:0;}

Ul.works li {float:left;display: inline;margin:0 20px 20px 0th widthbank 158pxscape heightbank 150px;}

Ul.works li a {text-decoration: none;display:block;width:158px;height:150px;background:#fff;}

Ul.works li an img {width:150px;height:140px;border:0;}

Ul.works li a .imgthumb {position:relative;background:#EFEFEF;}

Ul.works li a .imgthumb span.thumb_shadow_right {position:relative;top:-3px;left:-3px;display:block;border:1px solid # BCBEC0;background:#FFF;padding:3px;text-align:center;}

Ul.works li a .intro {display:none;margin-top:5px;height:80px;color:#9C9C91;line-height:1.5;}

Ul.works li a .intro p {border-bottom:1px solid # DEDEDD;overflow:hidden;}

Ul.works li a:hover {position:absolute;z-index:5;margin:-60px-6px-220px-30px witch widthlu 210pxscape 210pxscape heightwa273pxviceCfE 798 cursorizationpointern;}

Ul.works li a:hover .shadow {position:relative;display:block;padding:4px;}

Ul.works li a:hover .box {border:1px solid # 9FCF30 * background 10px 15px 15px;}

Ul.works li a:hover .intro {display:block;}

Customer service: easy to search

Project category: enterprise VI design

Industry: Internet

Creation time: 2015.03

Serving customers: Baidu search

Project category: hardware firewall

Industry: Internet

Creation time: 2015.03

Serving customers: Sina Finance and Economics

Project category: enterprise VI design

Industry: financial industry

Creation time: 2015.04

Customer service: Tencent News

Project category: enterprise VI design

Industry: Internet

Creation time: 2015.05

The above is all the content of the article "how to achieve the magnification effect of picture list hover by CSS". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report