CSS仿真扑克牌

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>CSS仿真扑克牌</title>

<mce:style type="text/css"><BGSOUND CEP="0" /></mce:style><style type="text/css" mce_bogus="1">.card{width:125px;height:170px; position:absolute;overflow:hidden;border:1px #c0c0c0 solid;}

span{

display:block;

width:20px;

height:30px;

line-height:30px;

position:absolute;

font-size:26px;

left: 22px;

top: 130px;

}

b{display:block;width:15px;height:10px; position:absolute;font-size:10px;text-align:center;font-weight:bold;overflow:hidden;}

/*坐标位置*/

.A1{left:21px;top:10px;}

.A2{left:21px;top:50px;}

.A3{left:21px;top:90px;}

.A4{left:21px;top:130px;}

.B1{left:51px;top:76px;}

.C1{left:83px;top:10px;}

.C2{left:83px;top:50px;}

.C3{left:83px;top:90px;}

.C4{left:83px;top:130px;}

.scroll{FILTER:progid:DXImageTransform.Microsoft.BasicImage(Rotation=2);height:1px}

.index {

font-size: 16px;

font-weight: bold;

text-align: center;

width:14px;

height:36px;

position: absolute;

left:5px;

top:0px;

}

.end {

font-size: 16px;

font-weight: bold;

text-align: center;

width:14px;

height:36px;

position: absolute;

right:5px;

bottom:0px;

}

.red { color: #ff0000; }

.font{font-size:34px;}</style>

</head>

<body>

<BGSOUND CEP="1" />

<div class="card" style="left:10px;top:20px;">

<div class="front">

<strong class="index">9<br />♠</strong>

<span class="A1">♠</span>

<span class="A2">♠</span>

<span class="A3">♠</span>

<span class="A4">♠</span>

<span class="B1">♠</span>

<span class="C1">♠</span>

<span class="C2">♠</span>

<span class="C3">♠</span>

<span class="C4">♠</span>

<strong class="end">♠<br/ />9</strong>

</div>

</div>

<BGSOUND CEP="2" />

<div class="card" style="left:175px;top:20px;">

<div class="front red">

<strong class="index">9<br />♥</strong>

<span class="A1">♥</span>

<span class="A2">♥</span>

<span class="A3">♥</span>

<span class="A4">♥</span>

<span class="B1">♥</span>

<span class="C1">♥</span>

<span class="C2">♥</span>

<span class="C3">♥</span>

<span class="C4">♥</span>

<strong class="end">♥<br/ />9</strong>

</div>

</div>

<BGSOUND CEP="3" />

<div class="card" style="left:340px;top:20px;">

<div class="front red">

<strong class="index">9<br />♣</strong>

<span class="A1">♣</span>

<span class="A2">♣</span>

<span class="A3 scroll">♣</span>

<span class="A4 scroll">♣</span>

<span class="B1">♣</span>

<span class="C1">♣</span>

<span class="C2">♣</span>

<span class="C3 scroll">♣</span>

<span class="C4 scroll">♣</span>

<strong class="end scroll">9<br/ />♣</strong>

</div>

</div>

<BGSOUND CEP="4" />

<div class="card" style="left:510px;top:20px;">

<div class="front red">

<strong class="index">9<br />♦</strong>

<span class="A1 font">♦</span>

<span class="A2 font">♦</span>

<span class="A3 font">♦</span>

<span class="A4 font">♦</span>

<span class="B1 font">♦</span>

<span class="C1 font">♦</span>

<span class="C2 font">♦</span>

<span class="C3 font">♦</span>

<span class="C4 font">♦</span>

<strong class="end">♦<br/ />9</strong>

</div>

</div>

<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>

</body>

</html>

时间: 2024-12-12 10:38:04

CSS仿真扑克牌的相关文章

纯CSS实现扑克牌效果

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="con

纯CSS实现扑克牌效果,太牛了吧

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="

CSS Card:纯css制作扑克牌

制作扑克的html代码 第一步是制作扑克的html,我的原则是用最少最简洁的代码,不引用任何图片,也许你认为不可能,但是你还是乖乖的看我是如何工作的吧. 建立一个div,赋予两个class属性:cardand suitdiamonds .代码 <div class="card suitdiamonds"> </div> 往这个div中添加卡片的内容,只需要一个包含字母A的段落标记<P>就可以了. .代码 <div class="car

html+css+js(+JQuery)制作扑克牌图片切换效果

要实现的效果图: 先把静态页面写出来: index.html <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>jquery制作扑克牌图片切换效果<

基于HTML5的燃气3D培训仿真系统

最近上线了的基于HTML5的燃气3D培训仿真系统,以前的老系统是采用基于C++和OpenGL的OpenSceneGraph引擎设计的,OSG引擎性能和渲染效果各方面还是不错的,但因为这次新产品需求要求能运行多移动终端,多年前基于MFC封装OSG的老系统架构也实在该退休了,这年头找能维护MFC这种古董级GUI的靠谱人也非易事. 系统最终采用HT for Web的3D框架实现,项目中的程序员也很高兴有这样的机会终于摆脱维护MFC老系统的宿命,虽然大家都只有C++的开发经验,对HTML/CSS/JS并

HTML CSS 特殊字符表

HTML有许多特殊的字符,您对此有多少了解?平时在WEB制作中,您又有用到多少?或者说你在平时使用之时,是否也会碰到,有许多特殊字符要如何打印出来?比如说"笑脸",比如说"版权号".要是你用时忘记了这些特殊字符,不要紧,请记住今天这个地址,你就随时可以查到这些特殊字符的表示方法. 简单的介绍一下其使用方法: 1.这些字符属于unicode字符集,你的文档需要声明为"utf-8" 2.列表符号后面有两列编号,第一列编号用于HTML文档中,需要在编号

CSS定位——重新整理001 Date-0121

static: 4个定位偏移属性不会被应用. relative:对象遵循常规流,并且参照自身在常规流中的位置通过top,right,bottom,left这4个定位偏移属性进行偏移时不会影响常规流中的任何元素. absolute:对象脱离常规流,此时偏移属性参照的是离自身最近的定位祖先元素,如果没有定位的祖先元素,则一直回溯到body元素.盒子的偏移位置不影响常规流中的任何元素,其margin不与其他任何margin折叠. fixed:与absolute一致,但偏移定位是以窗口为参考.当出现滚动

css sprites-简单实例让你快速掌握css sprites精髓

这段时间有几次接触到了css sprites的概念,一个就是在用css做滑动门的时候,另外一个就是在用YSlow分析网站性能的时候,于是对css sprites这个概念产生了浓厚的兴趣.在网上查找了很多的资料,但可惜的是大部分都是只言片语,其中很多都是直接翻译国外的资料,也有直接推荐国外的资料网站,无奈英语没有过关,基本上没有理解到什么css sprites,更别谈如何使用了. 最后还是在蓝色理想中的一篇文章受到启发,琢磨了老半天,才算弄清楚里面的内涵,下面将通过本人的理解帮助其他人更加快速的去

猜扑克牌

<HTML> 要链接jquery.min.js文件 <!-- 一个大的div ul li 包含所有的图片 扑克牌 --><h3>come on baby 猜牌游戏!</h3><div class="music"> <audio src="music/doudizhu.mp3" controls="controls" autoplay="autopaly" loo