日期:2014-05-17 浏览次数:20705 次
<!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> <title>www.leotheme.cn</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style> /*leotheme.cn*/ body{ margin:0 auto; text-align: center; padding:0; font-size:12px; font-family:Verdana, "宋体", Arial; line-height:1.8; } ul{list-style:none;} h1 {font-size: 18px;} #info,#nav{width: 500px; margin:50px; text-align: left; border:1px dashed #FF3300; background:#FFFFCC; padding:10px;} #info div{background:#FF0000; width:0px; height:0px; overflow:hidden; margin-bottom:10px;} #nav{ margin:50px; border:1px dashed #FF3300; background:#FFFFCC; } a:link,a:visited{color:#FF6600;text-decoration: none;} a:hover,a:active{ color:#FF0000;} #nav a span{overflow:hidden; border-top:6px solid #FFFFCC;border-left:6px solid #FFFFCC;border-bottom:6px solid #FFFFCC; height:0px; width:0px; margin:2px 2px 0 -10px; position:absolute} #nav a:hover span{background:#CC3300;border-top:6px solid #FFFFCC;border-left:6px solid #FF3300;border-bottom:6px solid #FFFFCC;overflow:hidden; float:left;} /*一些三角的写法*/ #info_a{ border-top:10px solid #FFFFCC;border-left:10px solid #FF3300;border-bottom:10px solid #FFFFCC;} #info_b{ border-top:10px solid #FFFFCC;border-right:10px solid #FF3300;border-bottom:10px solid #FFFFCC;} #info_c{ border-top:10px solid #FFFFCC;border-right:10px solid #FF3300;border-bottom:10px solid #FFFFCC;border-left:10px solid #FF3300;} #info_d{ border-top:10px solid #FF3300;border-right:10px solid #FFFFCC;border-bottom:10px solid #FF3300;border-left:10px solid #FFFFCC;} #info_e{ border-top:10px solid #FFFFCC;border-left:10px solid #FF3300;} #info_f{ border-top:10px solid #FF3300;border-right:10px solid #FFFFCC;border-left:10px solid #FFFFCC;} #info_g{ border-right:10px solid #FFFFCC;border-bottom:10px solid #FF3300;border-left:10px solid #FFFFCC;} #info_h{ border-top:10px solid #FF3300;border-bottom:10px solid #FF3300;border-left:10px solid #FFFFCC;} #info_i{ border-top:10px solid #FF3300;border-right:10px solid #FF3300;border-bottom:10px solid #FF3300;border-left:10px solid #FFFFCC;} </style> </head> <body> <div id="info"> <h1>一些三角形的写法</h1> <div id="info_a"></div> <div id="info_b"></div> <div id="info_f"></div> <div id="info_g"></div> <div id="info_c"></div> <div id="info_d"></div> <div id="info_e"></div> <div id="info_h"></div> <div id="info_i"></div> </div> <div id="nav"> <h1>应用的一个实例</h1> <ul> <li><a href="http://www.leotheme.cn" target="_blank"><span></span>首页</a></li> <li><a href="http://www.leotheme.cn/about" target="_blank"><span></span>关于我</a></li> <li><a href="http://www.leotheme.cn/guestbook" target="_blank"><span></span>给我留言</a></li> <li><a href="http://www.leotheme.cn/photo" target="_blank"><span></span>我的相册</a></li> <li><a href="http://www.leotheme.cn/themes" target="_blank"><span></span>我的主题</a></li> </ul> </div> </body> </html>?