Skip to content

xzhyj93/puker-css-sprites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

puker-css-sprites

用css sprites实现的整副扑克牌的CSS插件

demo: https://xzhyj93.github.io/puker-css-sprites/

use CSS Sprites to show the whole Puker cards.
Usage:
    Class:
  • .puker-spade1, .puker-spade2, ..., .puker-spade13 can be used to show the Spade pattern A-K;
  • .puker-heart1, .puker-heart2, ..., .puker-heart13 can be used to show the Heart pattern A-K;
  • .puker-diamond1, .puker-diamond2, ..., .puker-diamond13 can be used to show the Diamond pattern A-K;
  • .puker-club1, .puker-club2, ..., .puker-club13 can be used to show the Club pattern A-K;
  • .puker-big-kingA, .puker-small-KingA, .puker-big-kingB, .puker-small-KingB, can be used to show the kings pattern;
  • besides, You should use .card to wrap 2 divs: which should be with class .face and .front.
At present, all puker cards are 80px*120px
用法:
  • 使用.puker-spade1, .puker-spade2, ..., .puker-spade13来表示黑桃A-K;
  • 使用.puker-heart1, .puker-heart2, ..., .puker-heart13来表示红桃A-K;
  • 使用.puker-diamond1, .puker-diamond2, ..., .puker-diamond13来表示方片A-K;
  • 使用.puker-club1, .puker-club2, ..., .puker-club13来表示梅花A-K;
  • 使用.puker-big-kingA, .puker-small-KingA,或 .puker-big-kingB, .puker-small-KingB来表示大小王
  • 使用一个.card类的div包裹一个div,这个子div需要具有.face类和.front类。在子类中设置以上的图案来选择其图案,不设定则为背景图案
目前,所有的扑克牌只有80px*120px大小

About

用css sprites实现的整副扑克牌的CSS插件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published