无刷新生成一张信用卡的图片样式
XML/HTML Code
- <div class="demo-container">
- <div class="card-wrapper"></div>
- <div class="form-container active">
- <form action="">
- <input placeholder="Card number" type="text" name="number">
- <input placeholder="Full name" type="text" name="name">
- <input placeholder="MM/YY" type="text" name="expiry">
- <input placeholder="CVC" type="text" name="cvc">
- </form>
- </div>
- </div>
JavaScript Code
- <script>
- $('.active form').card({
- container: $('.card-wrapper')
- })
- </script>
原文地址:http://www.freejs.net/article_jquerywenzi_419.html