jQuery 滑动对比插件 twentytwenty
- 授权协议: GPL
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/zurb/twentytwenty
- 软件文档: https://github.com/zurb/twentytwenty
软件介绍
twentytwenty 是一款基于 jQuery 的滑动对比插件,它也支持水平方向和垂直方向、支持设置前后对比区域大小。twentytwenty 的实现原理是两张图片叠在一起,然后是使用 CSS clip:rect 进行裁切。
用法示例
1、HTML
<div id="container1"> <!-- The before image is first --> <img src="http://placehold.it/400x200&text=1" /> <!-- The after image is last --> <img src="http://placehold.it/400x200&text=2" /> </div>
2、JavaScript
$(function(){
$('.twentytwenty-container').twentytwenty();
});
浏览器支持:
IE8+
Firefox (latest)
Chrome
Safari
Android
iOS (iPhone, iPad)
Mastering Regular Expressions, Second Edition
Jeffrey E F Friedl / O'Reilly Media / 2002-07-15 / USD 39.95
Regular expressions are an extremely powerful tool for manipulating text and data. They have spread like wildfire in recent years, now offered as standard features in Perl, Java, VB.NET and C# (and an......一起来看看 《Mastering Regular Expressions, Second Edition》 这本书的介绍吧!
图片转BASE64编码
在线图片转Base64编码工具
html转js在线工具
html转js在线工具
