<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>传智云课堂</title>
</head>
<body>
<html>
<head>
<title>CSS画梅花扑克牌</title>
<style>
.card { background-color: #fff; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); float: left; height: 280px; margin: 0 15px 15px 0; position: relative; width: 200px; z-index: 2; }
.card .corner { line-height: 1; overflow: hidden; position: absolute; text-align: center; }
.card .corner span { display: block; font-size: 24px; font-weight: bold; }
.card .corner .number { font-size: 32px; height: 32px; line-height: 32px; }
.card .corner.top { left: 8px; top: 12px; }
.card .corner.bottom { bottom: 12px; right: 8px; -moz-transform: rotate(180deg); -webkit-transform: rotate(180deg); }
.card .suit { font-size: 64px; font-weight: bold; height: 60px; line-height: 60px; overflow: hidden; position: absolute; text-align: center; width: 50px; }
.card .top_center { left: 76px; top: 24px; }
.card .bottom_center { bottom: 24px; left: 76px; -moz-transform: rotate(180deg); -webkit-transform: rotate(180deg); }
.card .back { background-color: red; -webkit-transform: rotateY(180deg); }
</style>
<body>
<div class="card two">
<div class="front">
<div class="corner top">
<span class="number">2</span>
<span>♣</span>
</div>
<span class="suit top_center">♣</span>
<span class="suit bottom_center">♣</span>
<div class="corner bottom">
<span class="number">2</span>
<span>♣</span>
</div>
</div>
<div class="back">
</div>
</div>
</body>
</html>
</body>
</html>
就喜欢这种骚东西,
|
|