viewer.js一个强大的的图像查看插件(支持旋转、缩放)

      发布在:前端技术      评论:0 条评论
<p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);"><strong>一、简介</strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">Viewer.js 是一款强大的图片查看器。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">Viewer.js 有以下特点:</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">支持移动设备触摸事件<br/>支持响应式<br/>支持放大/缩小<br/>支持旋转(类似微博的图片旋转)<br/>支持水平/垂直翻转<br/>支持图片移动<br/>支持键盘<br/>支持全屏幻灯片模式(可做屏保)<br/>支持缩略图<br/>支持标题显示<br/>支持多种自定义事件<br/>Viewer.js 提供了纯 JS 版本和 jQuery 版本,版本名字虽然一样,但代码不一样,不能通用。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);"><strong>二、下载</strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">纯JS版本:</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">下载地址:<a href="https://github.com/fengyuanchen/viewerjs" style="color: rgb(66, 139, 202); text-decoration-line: none;">https://github.com/fengyuanchen/viewerjs</a></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">演示地址:<a href="http://demo.jb51.net/js/viewerjs/js/" style="color: rgb(66, 139, 202); text-decoration-line: none;">http://demo.jb51.net/js/viewerjs/js/</a></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">jQuery 版本:</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">下载地址:<a target="_blank" href="https://github.com/fengyuanchen/jquery-viewer" style="color: rgb(66, 139, 202); text-decoration-line: none;">https://github.com/fengyuanchen/jquery-viewer</a></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">演示地址:<a target="_blank" href="http://demo.jb51.net/js/viewerjs/jquery/" style="color: rgb(66, 139, 202); text-decoration-line: none;">http://demo.jb51.net/js/viewerjs/jquery/</a></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);"><strong>三、使用方法</strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">1、直接引入文件</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">Javascript版:</p><blockquote style="margin: 0px auto 10px; padding: 4px 4px 4px 10px; outline: none; background: rgb(241, 247, 253); border-left: 3px solid rgb(158, 206, 241); color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal;"><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px 4px; outline: none; line-height: 30px;">&lt;link rel=&quot;stylesheet&quot; href=&quot;css/viewer.min.css&quot; rel=&quot;external nofollow&quot; rel=&quot;external nofollow&quot; &gt;<br/>&lt;script src=&quot;js/viewer.min.js&quot;&gt;&lt;/script&gt;</p></blockquote><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">jQuery版:</p><blockquote style="margin: 0px auto 10px; padding: 4px 4px 4px 10px; outline: none; background: rgb(241, 247, 253); border-left: 3px solid rgb(158, 206, 241); color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal;"><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px 4px; outline: none; line-height: 30px;">&lt;link rel=&quot;stylesheet&quot; href=&quot;css/viewer.min.css&quot; rel=&quot;external nofollow&quot; rel=&quot;external nofollow&quot; &gt;<br/>&lt;script src=&quot;js/jquery.min.js&quot;&gt;&lt;/script&gt;<br/>&lt;script src=&quot;js/viewer.min.js&quot;&gt;&lt;/script&gt;</p></blockquote><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">4、JavaScript</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">Javascript版:</p><div class="jb51code" style="margin: 5px 0px 0px 5px; padding: 0px; outline: none; line-height: 32px; width: 800px; overflow: hidden; clear: both; position: relative; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);"><div style="margin: 0px; padding: 0px; outline: none; line-height: 32px;"><div class="syntaxhighlighter js" style="padding: 1px; outline: none; width: 800px; line-height: 32px; margin: 1em 0px !important; position: relative !important; overflow: auto !important; font-size: 1em !important;"><table width="800"><tbody style="word-break: break-all !important; border-radius: 0px !important; background: none !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; text-align: left !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important;"><tr style="word-break: break-all !important; border-radius: 0px !important; background: none !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important;" class="firstRow"><td class="gutter" style="padding: 8px; border-color: rgb(193, 218, 215); line-height: 22px; margin: 0px !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none !important; inset: auto !important; float: none !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; color: rgb(175, 175, 175) !important;" width="NaN"><div class="line number1 index0 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">1</div><div class="line number2 index1 alt1" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">2</div><div class="line number3 index2 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">3</div><div class="line number4 index3 alt1" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">4</div><div class="line number5 index4 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">5</div><div class="line number6 index5 alt1" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">6</div><div class="line number7 index6 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">7</div></td><td class="code" style="padding: 8px; border-color: rgb(193, 218, 215); line-height: 22px; margin: 0px !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none !important; inset: auto !important; float: none !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important;" width="764"><div class="container" style="line-height: 17.6px; margin: 0px !important; padding: 0px !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: relative !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important;"><div class="line number1 index0 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;"><code class="js keyword" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; font-weight: bold !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: rgb(0, 102, 153) !important;">var</code> <code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">image = </code><code class="js keyword" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; font-weight: bold !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: rgb(0, 102, 153) !important;">new</code> <code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">Viewer(document.getElementById(</code><code class="js string" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: blue !important;">&#39;image&#39;</code><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">),{</code></div><div class="line number2 index1 alt1" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;"><code class="js spaces" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important;">&nbsp;</code><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">url: </code><code class="js string" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: blue !important;">&#39;data-original&#39;</code></div><div class="line number3 index2 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;"><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">});</code></div>&nbsp;<div class="line number5 index4 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;"><code class="js keyword" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; font-weight: bold !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: rgb(0, 102, 153) !important;">var</code> <code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">viewer = </code><code class="js keyword" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; font-weight: bold !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: rgb(0, 102, 153) !important;">new</code> <code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">Viewer(document.getElementById(</code><code class="js string" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: blue !important;">&#39;viewer&#39;</code><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">),{</code></div><div class="line number6 index5 alt1" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;"><code class="js spaces" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important;">&nbsp;</code><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">url: </code><code class="js string" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: blue !important;">&#39;data-original&#39;</code></div><div class="line number7 index6 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;"><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">});</code></div></div></td></tr></tbody></table></div></div></div><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);">jQuery 版:</p><div class="jb51code" style="margin: 5px 0px 0px 5px; padding: 0px; outline: none; line-height: 32px; width: 800px; overflow: hidden; clear: both; position: relative; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);"><div style="margin: 0px; padding: 0px; outline: none; line-height: 32px;"><div class="syntaxhighlighter js" style="padding: 1px; outline: none; width: 800px; line-height: 32px; margin: 1em 0px !important; position: relative !important; overflow: auto !important; font-size: 1em !important;"><table width="800"><tbody style="word-break: break-all !important; border-radius: 0px !important; background: none !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; text-align: left !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important;"><tr style="word-break: break-all !important; border-radius: 0px !important; background: none !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important;" class="firstRow"><td class="gutter" style="padding: 8px; border-color: rgb(193, 218, 215); line-height: 22px; margin: 0px !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none !important; inset: auto !important; float: none !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; color: rgb(175, 175, 175) !important;" width="NaN"><div class="line number1 index0 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">1</div><div class="line number2 index1 alt1" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">2</div><div class="line number3 index2 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">3</div><div class="line number4 index3 alt1" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">4</div><div class="line number5 index4 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">5</div><div class="line number6 index5 alt1" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">6</div><div class="line number7 index6 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 0.5em 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;">7</div></td><td class="code" style="padding: 8px; border-color: rgb(193, 218, 215); line-height: 22px; margin: 0px !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none !important; inset: auto !important; float: none !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important;" width="764"><div class="container" style="line-height: 17.6px; margin: 0px !important; padding: 0px !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: relative !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important;"><div class="line number1 index0 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;"><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">$(</code><code class="js string" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: blue !important;">&#39;#image&#39;</code><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">).viewer({</code></div><div class="line number2 index1 alt1" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;"><code class="js spaces" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important;">&nbsp;</code><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">url: </code><code class="js string" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: blue !important;">&#39;data-original&#39;</code></div><div class="line number3 index2 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;"><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">});</code></div>&nbsp;<div class="line number5 index4 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;"><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">$(</code><code class="js string" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: blue !important;">&#39;#viewer&#39;</code><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">).viewer({</code></div><div class="line number6 index5 alt1" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;"><code class="js spaces" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important;">&nbsp;</code><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">url: </code><code class="js string" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: blue !important;">&#39;data-original&#39;</code></div><div class="line number7 index6 alt2" style="line-height: 17.6px; color: rgb(159, 184, 204); margin: 0px !important; padding: 0px 1em !important; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; background: none rgb(252, 252, 252) !important; border: 0px !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;"><code class="js plain" style="margin: 3px auto 0px; padding: 0px 0px 0px 5px; background: rgb(255, 255, 255); border-left: 3px solid rgb(108, 226, 108); line-height: 30px; width: 640px; font-size: 14px; clear: both; outline: 0px !important; word-break: break-all !important; border-radius: 0px !important; border-top: 0px !important; border-right: 0px !important; border-bottom: 0px !important; border-image: initial !important; inset: auto !important; float: none !important; height: auto !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; box-sizing: content-box !important; font-family: Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; min-height: auto !important; color: black !important;">});</code></div></div></td></tr></tbody></table></div></div></div><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);"><strong>四、配置</strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 3px 0px; outline: none; line-height: 30px; color: rgb(34, 34, 34); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);"><br/></p><table width="820"><thead><tr class="firstRow"><th style="margin: 0px; padding: 8px; outline: none; font-style: inherit; font-weight: inherit; text-align: left; border-color: rgb(193, 218, 215); line-height: 22px; background: rgb(202, 232, 234);">名称</th><th style="margin: 0px; padding: 8px; outline: none; font-style: inherit; font-weight: inherit; text-align: left; border-color: rgb(193, 218, 215); line-height: 22px; background: rgb(202, 232, 234);">类型</th><th style="margin: 0px; padding: 8px; outline: none; font-style: inherit; font-weight: inherit; text-align: left; border-color: rgb(193, 218, 215); line-height: 22px; background: rgb(202, 232, 234);">默认值</th><th style="margin: 0px; padding: 8px; outline: none; font-style: inherit; font-weight: inherit; text-align: left; border-color: rgb(193, 218, 215); line-height: 22px; background: rgb(202, 232, 234);">说明</th></tr></thead><tbody><tr><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">inline</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">布尔值</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">false</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">启用 inline 模式</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">button</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">布尔值</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">true</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">显示右上角关闭按钮(jQuery 版本无效)</td></tr><tr><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">navbar</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">布尔值/整型</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">true</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">显示缩略图导航</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">title</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">布尔值/整型</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">true</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">显示当前图片的标题(现实 alt 属性及图片尺寸)</td></tr><tr><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">toolbar</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">布尔值/整型</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">true</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">显示工具栏</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">tooltip</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">布尔值</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">true</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">显示缩放百分比</td></tr><tr><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">movable</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">布尔值</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">true</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">图片是否可移动</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">zoomable</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">布尔值</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">true</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">图片是否可缩放</td></tr><tr><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">rotatable</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">布尔值</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">true</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">图片是否可旋转</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">scalable</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">布尔值</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">true</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">图片是否可翻转</td></tr><tr><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">transition</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">布尔值</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">true</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">使用 CSS3 过度</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">fullscreen</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">布尔值</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">true</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">播放时是否全屏</td></tr><tr><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">keyboard</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">布尔值</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">true</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">是否支持键盘</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">interval</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">整型</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">5000</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">播放间隔,单位为毫秒</td></tr><tr><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">zoomRatio</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">浮点型</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">0.1</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">鼠标滚动时的缩放比例</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">minZoomRatio</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">浮点型</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">0.01</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">最小缩放比例</td></tr><tr><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">maxZoomRatio</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">数字</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">100</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">最大缩放比例</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">zIndex</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">数字</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">2015</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">设置图片查看器 modal 模式时的 z-index</td></tr><tr><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">zIndexInline</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">数字</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">0</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">设置图片查看器 inline 模式时的 z-index</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">url</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">字符串/函数</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">src</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">设置大图片的 url</td></tr><tr><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">build</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">函数</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">null</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">回调函数,具体查看演示</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">built</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">函数</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">null</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">回调函数,具体查看演示</td></tr><tr><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">show</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">函数</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">null</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">回调函数,具体查看演示</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">shown</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">函数</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">null</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">回调函数,具体查看演示</td></tr><tr style="background: rgba(255, 255, 153, 0.4);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">hide</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">函数</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">null</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">回调函数,具体查看演示</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">hidden</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">函数</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">null</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">回调函数,具体查看演示</td></tr><tr><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">view</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">函数</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">null</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">回调函数,具体查看演示</td></tr><tr style="background-color: rgb(245, 250, 250);"><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">viewed</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">函数</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">null</td><td style="margin: 0px; padding: 8px; outline: none; border-color: rgb(193, 218, 215); line-height: 22px; text-align: left;">回调函数,具体查看演示<br/><br/></td></tr></tbody></table><p>实列:</p><pre style="background-color:#262e37;color:#ffffff;font-family:&#39;Consolas&#39;,monospace;font-size:11.3pt;">&lt;<span style="color:#c32867;font-weight:bold;">div </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;carousel_banner&quot; </span><span style="color:#a6e22e;">id</span><span style="color:#e6db74;font-weight:bold;">=&quot;bannerImg1&quot;</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">div </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;prev&quot; </span><span style="color:#a6e22e;">id</span><span style="color:#e6db74;font-weight:bold;">=&quot;prev1&quot;</span>&gt;&lt;/<span style="color:#c32867;font-weight:bold;">div</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">div </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;next&quot; </span><span style="color:#a6e22e;">id</span><span style="color:#e6db74;font-weight:bold;">=&quot;next1&quot;</span>&gt;&lt;/<span style="color:#c32867;font-weight:bold;">div</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">ul </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;clearfix&quot;</span>&gt;<br/><br/> &lt;<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">a </span><span style="color:#a6e22e;">href</span><span style="color:#e6db74;font-weight:bold;">=&quot;javascript:</span><span style="color:#e6db74;background-color:#191f26;font-weight:bold;">;</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">img </span><span style="color:#a6e22e;">src</span><span style="color:#e6db74;font-weight:bold;">=&quot;http://cg.80zx.com.cn/FtxveQXtpa5yF7C_npAtbZT_bgq9.jpg!watermark&quot; </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;image0&quot;<br/></span><span style="color:#e6db74;font-weight:bold;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#a6e22e;">alt</span><span style="color:#e6db74;font-weight:bold;">=&quot;</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">制造业工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">车间工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">汽车工厂</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂车间模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂厂房模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">标准化车间工厂</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">a</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">a </span><span style="color:#a6e22e;">href</span><span style="color:#e6db74;font-weight:bold;">=&quot;javascript:</span><span style="color:#e6db74;background-color:#191f26;font-weight:bold;">;</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">img </span><span style="color:#a6e22e;">src</span><span style="color:#e6db74;font-weight:bold;">=&quot;http://cg.80zx.com.cn/FlabJiXN4Q5iB3J4L9P4JvNnE5iW.jpg!watermark&quot; </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;image1&quot;<br/></span><span style="color:#e6db74;font-weight:bold;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#a6e22e;">alt</span><span style="color:#e6db74;font-weight:bold;">=&quot;</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">制造业工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">车间工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">汽车工厂</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂车间模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂厂房模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">标准化车间工厂</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">a</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">a </span><span style="color:#a6e22e;">href</span><span style="color:#e6db74;font-weight:bold;">=&quot;javascript:</span><span style="color:#e6db74;background-color:#191f26;font-weight:bold;">;</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">img </span><span style="color:#a6e22e;">src</span><span style="color:#e6db74;font-weight:bold;">=&quot;http://cg.80zx.com.cn/Fqa4dzhFZW2LUD_5ANN6ug6IVmAk.jpg!watermark&quot; </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;image2&quot;<br/></span><span style="color:#e6db74;font-weight:bold;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#a6e22e;">alt</span><span style="color:#e6db74;font-weight:bold;">=&quot;</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">制造业工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">车间工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">汽车工厂</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂车间模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂厂房模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">标准化车间工厂</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">a</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">a </span><span style="color:#a6e22e;">href</span><span style="color:#e6db74;font-weight:bold;">=&quot;javascript:</span><span style="color:#e6db74;background-color:#191f26;font-weight:bold;">;</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">img </span><span style="color:#a6e22e;">src</span><span style="color:#e6db74;font-weight:bold;">=&quot;http://cg.80zx.com.cn/Fv4rtv0-CFoAtYzGdGYQif_eIQyb.jpg!watermark&quot; </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;image3&quot;<br/></span><span style="color:#e6db74;font-weight:bold;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#a6e22e;">alt</span><span style="color:#e6db74;font-weight:bold;">=&quot;</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">制造业工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">车间工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">汽车工厂</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂车间模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂厂房模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">标准化车间工厂</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">a</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">a </span><span style="color:#a6e22e;">href</span><span style="color:#e6db74;font-weight:bold;">=&quot;javascript:</span><span style="color:#e6db74;background-color:#191f26;font-weight:bold;">;</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">img </span><span style="color:#a6e22e;">src</span><span style="color:#e6db74;font-weight:bold;">=&quot;http://cg.80zx.com.cn/FmIwJQ1kb97WkGStBBeJ9QBk7ww6.jpg!watermark&quot; </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;image4&quot;<br/></span><span style="color:#e6db74;font-weight:bold;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#a6e22e;">alt</span><span style="color:#e6db74;font-weight:bold;">=&quot;</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">制造业工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">车间工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">汽车工厂</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂车间模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂厂房模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">标准化车间工厂</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">a</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">a </span><span style="color:#a6e22e;">href</span><span style="color:#e6db74;font-weight:bold;">=&quot;javascript:</span><span style="color:#e6db74;background-color:#191f26;font-weight:bold;">;</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">img </span><span style="color:#a6e22e;">src</span><span style="color:#e6db74;font-weight:bold;">=&quot;http://cg.80zx.com.cn/Fsku4soYE9TrumtMeVjBUoCjYkcx.jpg!watermark&quot; </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;image5&quot;<br/></span><span style="color:#e6db74;font-weight:bold;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#a6e22e;">alt</span><span style="color:#e6db74;font-weight:bold;">=&quot;</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">制造业工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">车间工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">汽车工厂</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂车间模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂厂房模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">标准化车间工厂</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">a</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">a </span><span style="color:#a6e22e;">href</span><span style="color:#e6db74;font-weight:bold;">=&quot;javascript:</span><span style="color:#e6db74;background-color:#191f26;font-weight:bold;">;</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">img </span><span style="color:#a6e22e;">src</span><span style="color:#e6db74;font-weight:bold;">=&quot;http://cg.80zx.com.cn/FgRKjuCamWVyY8VVT0sGr6FzntfR.jpg!watermark&quot; </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;image6&quot;<br/></span><span style="color:#e6db74;font-weight:bold;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#a6e22e;">alt</span><span style="color:#e6db74;font-weight:bold;">=&quot;</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">制造业工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">车间工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">汽车工厂</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂车间模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂厂房模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">标准化车间工厂</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">a</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">a </span><span style="color:#a6e22e;">href</span><span style="color:#e6db74;font-weight:bold;">=&quot;javascript:</span><span style="color:#e6db74;background-color:#191f26;font-weight:bold;">;</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">img </span><span style="color:#a6e22e;">src</span><span style="color:#e6db74;font-weight:bold;">=&quot;http://cg.80zx.com.cn/Fk46iOP7v8Zqe3czt3db9CkF5gKw.jpg!watermark&quot; </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;image7&quot;<br/></span><span style="color:#e6db74;font-weight:bold;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#a6e22e;">alt</span><span style="color:#e6db74;font-weight:bold;">=&quot;</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">制造业工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">车间工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">汽车工厂</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂车间模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂厂房模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">标准化车间工厂</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">a</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">a </span><span style="color:#a6e22e;">href</span><span style="color:#e6db74;font-weight:bold;">=&quot;javascript:</span><span style="color:#e6db74;background-color:#191f26;font-weight:bold;">;</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">img </span><span style="color:#a6e22e;">src</span><span style="color:#e6db74;font-weight:bold;">=&quot;http://cg.80zx.com.cn/FiN0H265oaNOwZPsF88Ol4ETwuWT.jpg!watermark&quot; </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;image8&quot;<br/></span><span style="color:#e6db74;font-weight:bold;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#a6e22e;">alt</span><span style="color:#e6db74;font-weight:bold;">=&quot;</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">制造业工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">车间工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">汽车工厂</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂车间模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂厂房模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">标准化车间工厂</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">a</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">a </span><span style="color:#a6e22e;">href</span><span style="color:#e6db74;font-weight:bold;">=&quot;javascript:</span><span style="color:#e6db74;background-color:#191f26;font-weight:bold;">;</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">img </span><span style="color:#a6e22e;">src</span><span style="color:#e6db74;font-weight:bold;">=&quot;http://cg.80zx.com.cn/FggQ22Sq2rJnOqP6GNEVGf2WvDHJ.jpg!watermark&quot; </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;image9&quot;<br/></span><span style="color:#e6db74;font-weight:bold;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#a6e22e;">alt</span><span style="color:#e6db74;font-weight:bold;">=&quot;</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">制造业工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">车间工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">汽车工厂</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂车间模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂厂房模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">标准化车间工厂</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">a</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">a </span><span style="color:#a6e22e;">href</span><span style="color:#e6db74;font-weight:bold;">=&quot;javascript:</span><span style="color:#e6db74;background-color:#191f26;font-weight:bold;">;</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">img </span><span style="color:#a6e22e;">src</span><span style="color:#e6db74;font-weight:bold;">=&quot;http://cg.80zx.com.cn/Fi1-SPOIw-oGVSskxEPIvAO0EbH2.jpg!watermark&quot; </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;image10&quot;<br/></span><span style="color:#e6db74;font-weight:bold;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#a6e22e;">alt</span><span style="color:#e6db74;font-weight:bold;">=&quot;</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">制造业工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">车间工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">汽车工厂</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂车间模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂厂房模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">标准化车间工厂</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">a</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">a </span><span style="color:#a6e22e;">href</span><span style="color:#e6db74;font-weight:bold;">=&quot;javascript:</span><span style="color:#e6db74;background-color:#191f26;font-weight:bold;">;</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;<span style="color:#c32867;font-weight:bold;">img </span><span style="color:#a6e22e;">src</span><span style="color:#e6db74;font-weight:bold;">=&quot;http://cg.80zx.com.cn/FvdMqHphuGZexvzPaYNwviDgHUAK.jpg!watermark&quot; </span><span style="color:#a6e22e;">class</span><span style="color:#e6db74;font-weight:bold;">=&quot;image11&quot;<br/></span><span style="color:#e6db74;font-weight:bold;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#a6e22e;">alt</span><span style="color:#e6db74;font-weight:bold;">=&quot;</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">制造业工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">车间工厂模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">汽车工厂</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂车间模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">工厂厂房模型</span><span style="color:#e6db74;font-weight:bold;">,</span><span style="color:#e6db74;font-weight:bold;font-family:&#39;宋体&#39;,monospace;">标准化车间工厂</span><span style="color:#e6db74;font-weight:bold;">&quot;</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">a</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">li</span>&gt;<br/> &lt;/<span style="color:#c32867;font-weight:bold;">ul</span>&gt;<br/>&lt;/<span style="color:#c32867;font-weight:bold;">div</span>&gt;</pre><pre style="background-color:#262e37;color:#ffffff;font-family:&#39;Consolas&#39;,monospace;font-size:11.3pt;"><span style="color:#660e7a;font-weight:bold;">$</span>(<span style="color:#e6db74;">&#39;</span><span style="color:#e6db74;background-color:#191f26;">#bannerImg1</span><span style="color:#e6db74;">&#39;</span>).<span style="color:#4ac60a;">on</span>(<span style="color:#e6db74;">&#39;click&#39;</span>, <span style="color:#e6db74;">&#39;ul li a&#39;</span>, <span style="color:#f92672;">function </span>() {<br/> <span style="color:#f92672;">var </span><span style="color:#64a2a2;">src </span><span style="color:#f92672;">= </span><span style="color:#660e7a;font-weight:bold;">$</span>(<span style="color:#f92672;">this</span>).<span style="color:#4ac60a;">find</span>(<span style="color:#e6db74;">&#39;img&#39;</span>).<span style="color:#4ac60a;">attr</span>(<span style="color:#e6db74;">&#39;src&#39;</span>);<br/> <span style="color:#5b7773;background-color:#191f26;">// var i &nbsp; &nbsp; &nbsp;= 0;</span><span style="color:#5b7773;"><br/></span><span style="color:#5b7773;"> &nbsp; &nbsp;</span><span style="color:#f92672;">var </span><span style="color:#64a2a2;">index </span><span style="color:#f92672;">= </span><span style="color:#ae81ff;">0</span>;<br/> <span style="color:#f92672;">var </span><span style="color:#64a2a2;">$ul </span><span style="color:#f92672;">= </span><span style="color:#660e7a;font-weight:bold;">$</span>(<span style="color:#e6db74;">&#39;</span><span style="color:#e6db74;background-color:#191f26;">&lt;ul&gt;&lt;/ul&gt;</span><span style="color:#e6db74;">&#39;</span>);<br/> <span style="color:#660e7a;font-weight:bold;">$</span>(<span style="color:#e6db74;">&#39;</span><span style="color:#e6db74;background-color:#191f26;">#bannerImg1 ul li a img</span><span style="color:#e6db74;">&#39;</span>).<span style="color:#4ac60a;">each</span>(<span style="color:#f92672;">function </span>(<span style="color:#fd971f;font-style:italic;">i</span>, <span style="color:#fd971f;font-style:italic;">item</span>) {<br/> <span style="color:#f92672;">var </span><span style="color:#64a2a2;">image </span><span style="color:#f92672;">= </span><span style="color:#660e7a;font-weight:bold;">$</span>(<span style="color:#fd971f;font-style:italic;">item</span>).<span style="color:#4ac60a;">attr</span>(<span style="color:#e6db74;">&#39;src&#39;</span>);<br/><br/> <span style="color:#64a2a2;">$ul</span>.<span style="color:#4ac60a;">append</span>(<span style="color:#660e7a;font-weight:bold;">$</span>(<span style="color:#e6db74;">&#39;</span><span style="color:#e6db74;background-color:#191f26;">&lt;li&gt;&lt;img src=&quot;</span><span style="color:#e6db74;">&#39; </span><span style="color:#f92672;">+ </span><span style="color:#64a2a2;">image </span><span style="color:#f92672;">+ </span><span style="color:#e6db74;">&#39;</span><span style="color:#e6db74;background-color:#191f26;">&quot;&gt;&lt;/li&gt;</span><span style="color:#e6db74;">&#39;</span>));<br/><br/> <span style="color:#f92672;">if </span>(<span style="color:#64a2a2;">image </span><span style="color:#f92672;">== </span><span style="color:#64a2a2;">src</span>) {<br/> <span style="color:#64a2a2;">index </span><span style="color:#f92672;">= </span><span style="color:#fd971f;font-style:italic;">i</span>;<br/> }<br/><br/> });<br/> <span style="color:#f92672;">new </span><span style="color:#660e7a;font-weight:bold;">Viewer</span>(<span style="color:#64a2a2;">$ul</span>.<span style="color:#4ac60a;">get</span>(<span style="color:#ae81ff;">0</span>), {<br/> <span style="color:#660e7a;font-weight:bold;">initialViewIndex</span><span style="color:#f92672;">: </span><span style="color:#64a2a2;">index</span>,<br/> <span style="color:#660e7a;font-weight:bold;">title</span><span style="color:#f92672;">: false</span>,<br/> <span style="color:#660e7a;font-weight:bold;">transition</span><span style="color:#f92672;">: false<br/></span><span style="color:#f92672;"> &nbsp; &nbsp;</span>}).<span style="color:#4ac60a;">show</span>();<br/>});</pre><p>最终效果图<img src="http://img.80zx.com/ueditor/image/202205/1651563673f5e564.jpg" title="viewerjs使用效果" alt="viewerjs使用效果"/></p><p>通过给图片增加data-image属性绑定图片放大事件代码参考</p><pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:&#39;JetBrains Mono&#39;,monospace;font-size:9.8pt;"><span style="color:#e8bf6a;">&lt;script&gt;<br/></span><span style="color:#e8bf6a;"> &nbsp;</span><span style="color:#9876aa;">$</span>(<span style="color:#6a8759;">&#39;body&#39;</span>).<span style="color:#ffc66d;">off</span>(<span style="color:#6a8759;">&#39;click&#39;</span><span style="color:#cc7832;">, </span><span style="color:#6a8759;">&#39;[data-image]&#39;</span>).<span style="color:#ffc66d;">on</span>(<span style="color:#6a8759;">&#39;click&#39;</span><span style="color:#cc7832;">, </span><span style="color:#6a8759;">&#39;[data-image]&#39;</span><span style="color:#cc7832;">, function </span>() {<br/> <span style="color:#cc7832;">var </span>viewer = <span style="color:#cc7832;">new </span><span style="color:#9876aa;">Viewer</span>(<span style="color:#9876aa;">$</span>(<span style="color:#cc7832;">this</span>).<span style="color:#ffc66d;">get</span>(<span style="color:#6897bb;">0</span>)<span style="color:#cc7832;">, </span>{<br/> <span style="color:#9876aa;">url</span>: <span style="color:#6a8759;">&#39;src&#39;</span><span style="color:#cc7832;">,<br/></span><span style="color:#cc7832;"> &nbsp; &nbsp; &nbsp;</span><span style="color:#ffc66d;">hidden</span>: <span style="color:#cc7832;">function </span>() {<br/> viewer.<span style="color:#ffc66d;">destroy</span>()<span style="color:#cc7832;">;<br/></span><span style="color:#cc7832;"> &nbsp; &nbsp; &nbsp;</span>}<span style="color:#cc7832;">,<br/></span><span style="color:#cc7832;"> &nbsp; &nbsp;</span>})<span style="color:#cc7832;">;<br/></span><span style="color:#cc7832;"> &nbsp; &nbsp;</span>viewer.<span style="color:#ffc66d;">show</span>()<span style="color:#cc7832;">;<br/></span><span style="color:#cc7832;"> &nbsp; &nbsp;return false;<br/></span><span style="color:#cc7832;"> &nbsp;</span>})<span style="color:#cc7832;">;<br/></span><span style="color:#e8bf6a;">&lt;/script&gt;</span></pre><p><br/></p>
相关文章
热门推荐