网页图片简单的放大效果
作者:bulang发布时间:2025-09-02 16:31分类:网站搭建浏览:242评论:0
导读:样式代码<style> #imgbox-loading { position: abso...
样式代码
<style>
#imgbox-loading { position: absolute; top: 0; left: 0; cursor: pointer; display: none; z-index: 90; }
#imgbox-loading div { background: #FFF; width: 100%; height : 100%; }
#imgbox-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; display: none; z-index: 80; }
.imgbox-wrap { position: absolute; top: 0; left: 0; background: #FFF; display: none; z-index: 90; }
.imgbox-img { padding: 0; margin: 0; border: none; width: 100%; height: 100%; vertical-align: top; }
.imgbox-title { padding-top: 10px; font-size: 11px; text-align: center; font-family: Arial; color: #333; display: none; }
.imgbox-bg-wrap { position: absolute; padding: 0; margin: 0; display: none; }
.imgbox-bg { position: absolute; width: 20px; height: 20px; }
</style>js引入及代码
<script src="/haida/js/jqueryLibrary.min.js"></script>
<script src="/haida/js/jquery.imgbox.pack.js"></script>
<script>
$(function(){
$(".example1").imgbox();
$(".example2").imgbox({
'speedIn' : 0,
'speedOut' : 0,
'alignment' : 'center',
'overlayShow' : true,
'allowMultiple' : false
});
});
</script>html
<a class="example2" href="/haida/honor/jiance/jc01.jpg"><img alt="检测报告" src="/haida/honor/jiance/jc01.jpg" width="200" style="text-align:center;"/></a>
非常简单的一个放大图片效果,没有细节图,但是整张图方法,效果足够
展现方式有两种
example1、example2
足够使用
标签:图片放大
欢迎 你 发表评论:
- 文章归档
-
- 2025年11月 (1)
- 2025年10月 (3)
- 2025年9月 (1)
- 2025年8月 (1)
- 2025年7月 (1)
- 2025年6月 (2)
- 2025年5月 (4)
- 2025年4月 (5)
- 2025年2月 (4)
- 2025年1月 (3)
- 2024年12月 (6)
- 2024年11月 (9)
- 2024年10月 (8)
- 2024年9月 (1)
- 2024年8月 (7)
- 2024年7月 (4)
- 2024年6月 (9)
- 2024年5月 (2)
- 2024年4月 (2)
- 2024年3月 (1)
- 2024年1月 (1)
- 2023年12月 (5)
- 2023年11月 (30)
- 2023年10月 (1)
- 2023年9月 (3)
- 2023年8月 (7)
- 2023年7月 (26)
- 2023年6月 (46)
- 2023年5月 (20)
- 2023年4月 (66)
- 2023年3月 (32)
- 2023年2月 (27)
- 2023年1月 (24)
- 2022年12月 (95)
- 2022年11月 (48)
- 2022年10月 (59)
- 2022年9月 (81)
- 2022年8月 (186)
- 2022年7月 (394)
- 2022年6月 (242)
- 2022年5月 (1)
- 2021年6月 (1)
- 2020年8月 (1)
- 2008年11月 (1)



