demo: https://xzhyj93.github.io/puker-css-sprites/
use CSS Sprites to show the whole Puker cards.-
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.
- 使用.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类。在子类中设置以上的图案来选择其图案,不设定则为背景图案