Welcome to the website navigation,本站只接受合法正规的企业网站,欢迎站长们提交你的网站获得展示和流量有任何问题请联系站长,欢迎大家加入本站。

                
提交网站
  • 网站:76083
  • 待审:5
  • APP:577
  • 文章:304416
  • 会员:56004
文字内链包年1000元 文字内链包年1000元 文字内链包年1000元 AI办公网站 AI绘画工具 AIchat

名站导航为爱好css的朋友们提供相关的知识。

IE与Firefox中兼容的html设计中使用CSS教程改变鼠标为手形cEGAIChat_企业网址导航_网址分类目录_企业黄页网址提交查询专业网站!

cEGAIChat_企业网址导航_网址分类目录_企业黄页网址提交查询专业网站!

  • 此篇文章具体介绍如下
非常不错的效果代码。


<!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" xml:lang="en" lang="en"> <head> <title>BrainJar.com: Playing Cards with CSS教程</title> <meta http-equiv="Content-Type" content="text/html;charset=gb2312" /> <style id="cardStyles" type="text/css教程"> /****************************************************************************** * Styles for playing cards. * ******************************************************************************/ .card { background-image: url("graphics/cardback.gif"); border-color: #808080 #000000 #000000 #808080; border-width: 1px; border-style: solid; font-size: 20pt; position: absolute; width: 3.75em; height: 5.00em; } .front { background-color: #ffffff; color: #000000; position: absolute; width: 100%; height: 100%; } .red { color: #ff0000; } .index { font-size: 50%; font-weight: bold; text-align: center; position: absolute; left: 0.25em; top: 0.25em; } .ace { font-size: 300%; position: absolute; left: 0.325em; top: 0.250em; } .face { border: 1px solid #000000; position: absolute; left: 0.50em; top: 0.45em; width: 2.6em; height: 4.0em; } .spotA1 { position: absolute; left: 0.60em; top: 0.5em; } .spotA2 { position: absolute; left: 0.60em; top: 1.5em; } .spotA3 { position: absolute; left: 0.60em; top: 2.0em; } .spotA4 { position: absolute; left: 0.60em; top: 2.5em; } .spotA5 { position: absolute; left: 0.60em; top: 3.5em; } .spotB1 { position: absolute; left: 1.55em; top: 0.5em; } .spotB2 { position: absolute; left: 1.55em; top: 1.0em; } .spotB3 { position: absolute; left: 1.55em; top: 2.0em; } .spotB4 { position: absolute; left: 1.55em; top: 3.0em; } .spotB5 { position: absolute; left: 1.55em; top: 3.5em; } .spotC1 { position: absolute; left: 2.50em; top: 0.5em; } .spotC2 { position: absolute; left: 2.50em; top: 1.5em; } .spotC3 { position: absolute; left: 2.50em; top: 2.0em; } .spotC4 { position: absolute; left: 2.50em; top: 2.5em; } .spotC5 { position: absolute; left: 2.50em; top: 3.5em; } /****************************************************************************** * Miscellaneous styles. * ******************************************************************************/ body { background-color: #40a040; } </style> <script type="text/javascript">//<![CDATA[ var minSize = 8; function resizeCards(d) { var n; // Change the font size on the "card" style class. // DOM-compliant browsers. if (document.styleSheets[1].css教程Rules) { n = parseInt(document.styleSheets[1].css教程Rules[0].style.fontSize, 10); document.styleSheets[1].css教程Rules[0].style.fontSize = Math.max(n d, minSize) "pt"; // For NS 6.1, insert a dummy rule to force styles to be reapplied. if (navigator.userAgent.indexOf("Netscape6/6.1") >= 0) document.styleSheets[1].insertRule(null, document.styleSheets[1].css教程Rules.length); } // IE browsers. else if (document.styleSheets[1].rules[0]) { n = parseInt(document.styleSheets[1].rules[0].style.fontSize, 10); document.styleSheets[1].rules[0].style.fontSize = Math.max(n d, minSize) "pt"; } return false; } //]]></script> </head> <body> <!-- Normal page content. --> <div style="position:relative;margin-top:1em;"> <div class="card" style="left:0em;top:0em;"> <div class="front"> <div class="index">10 </div> <div class="spotA1"></div> <div class="spotA2"></div> <div class="spotA4"></div> <div class="spotA5"></div> <div class="spotB2"></div> <div class="spotB4"></div> <div class="spotC1"></div> <div class="spotC2"></div> <div class="spotC4"></div> <div class="spotC5"></div> </div> </div> <div class="card" style="left:4em;top:0em;"> <div class="front red"> <div class="index">9 </div> <div class="spotA1"></div> <div class="spotA2"></div> <div class="spotA4"></div> <div class="spotA5"></div> <div class="spotB3"></div> <div class="spotC1"></div> <div class="spotC2"></div> <div class="spotC4"></div> <div class="spotC5"></div> </div> </div> <div class="card" style="left:8em;top:0em;"> <div class="front"> <div class="index">8 </div> <div class="spotA1"></div> <div class="spotA3"></div> <div class="spotA5"></div> <div class="spotB2"></div> <div class="spotB4"></div> <div class="spotC1"></div> <div class="spotC3"></div> <div class="spotC5"></div> </div> </div> <div class="card" style="left:12em;top:0em;"> <div class="front red"> <div class="index">7 </div> <div class="spotA1"></div> <div class="spotA3"></div> <div class="spotA5"></div> <div class="spotB2"></div> <div class="spotC1"></div> <div class="spotC3"></div> <div class="spotC5"></div> </div> </div> <div class="card" style="left:16em;top:0em;"> <div class="front"> <div class="index">6 </div> <div class="spotA1"></div> <div class="spotA3"></div> <div class="spotA5"></div> <div class="spotC1"></div> <div class="spotC3"></div> <div class="spotC5"></div> </div> </div> <div class="card" style="left:20em;top:0em;"> <div class="front red"> <div class="index">5 </div> <div class="spotA1"></div> <div class="spotA5"></div> <div class="spotB3"></div> <div class="spotC1"></div> <div class="spotC5"></div> </div> </div> <div class="card" style="left:0em;top:6em;"> <div class="front"> <div class="index">4 </div> <div class="spotA1"></div> <div class="spotA5"></div> <div class="spotC1"></div> <div class="spotC5"></div> </div> </div> <div class="card" style="left:4em;top:6em;"> <div class="front red"> <div class="index">3 </div> <div class="spotB1"></div> <div class="spotB3"></div> <div class="spotB5"></div> </div> </div> <div class="card" style="left:8em;top:6em;"> <div class="front"> <div class="index">2 </div> <div class="spotB1"></div> <div class="spotB5"></div> </div> </div> <div class="card" style="left:12em;top:6em;"> <div class="front red"> <div class="index">A </div> <div class="ace"></div> </div> </div> </div> </body> </html>
提示:您可以先修改部分代码再运行

CSS教程 代码质量提高的10条实用技巧cEGAIChat_企业网址导航_网址分类目录_企业黄页网址提交查询专业网站!

cEGAIChat_企业网址导航_网址分类目录_企业黄页网址提交查询专业网站!

关于css的相关的知识就说到这里希望能够可以帮助更多的朋友们。,CSS,扑克牌

标签:CSS扑克牌

分享到:

  admin

注册时间:

网站:0 个   APP:3 个  文章:0 篇

  • 76083

    网站

  • 577

    APP

  • 304416

    文章

  • 56004

    会员

赶快注册账号,推广您的网站吧!
文章分类
热门网站
最新入驻APP小程序

宝贝市场2023-02-08

宝贝市场——买手和卖家商品展示

夺宝助手2023-02-08

夺宝助手小程序,查看每日快夺宝平

查诚信2023-02-08

查诚信是一款免费的商业查询工具

车价天天报2023-02-08

快速连接汽车销售,获知汽车最新报

考勤助理小程序2023-02-08

上班签到考勤,实时定位,后台轻松

汽车报价大全查询2023-02-08

汽车报价大全查询提供最新汽车市