超漂亮的css控製圖片效果

來源:互聯網
上載者:User
提示:您可以先修改部分代碼再運行

<!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=utf-8" /><title>zishu.cn test</title><style>body{ font-size:12px; line-height:1.8; font-family:Verdana, "宋體", Arial,Sans; text-align:center; background:#FFF; color:#666; margin:50px; padding:0; list-style:none; }a:link,a:visited{color:#000099; text-decoration: underline;}a:hover,a:active{color:#000;text-decoration: none;}#zishu_test li{ float:left; width:14%;text-align:center; margin:0 auto; list-style:none }#zishu_test li a{border-right:1px solid #fff;border-bottom:1px solid #fff; width:100px; height:110px; background:#fff;display:block; padding-top:10px; margin:auto}#zishu_test li img{ width:75px; height:75px; display:block; text-align:center; margin:auto; background:#FFF; padding:3px; border:1px solid #D8A18B;}#zishu_test li span{display:none;}#zishu_test li a:hover span{ margin-top:-10px;display:block; border-bottom:1px solid #666; border-right:1px solid #666; background:#FA9000; width:100px; color:#FFF; position:absolute; } * html #zishu_test li a:hover span {margin-left:-8px; } /* IE6 */ *+html #zishu_test li a:hover span {margin-left:-8px; }/* IE7*/ #zishu_test li a:hover{ border-right:1px solid #D8A18B;border-bottom:1px solid #D8A18B; width:100px; height:110px; background:#F5F5F5;display:block; padding-top:10px;} </style></head><body><div id="zishu_test"> <ul> <li><span>64d / 47 hits</span>pixu</li> <li><span>24d / 35 hits</span>秀才</li> <li><span>66d / 87 hits</span>透露</li> <li><span>40d / 34 hits</span>LIVID</li> <li><span>47d / 56 hits</span>老孟</li> <li><span>42d / 36hits</span>小玉</li> <li><span>63d / 67 hits</span>pixu</li> </ul></div><br /><p >源貼地址為http://www.zishu.cn/blogview.asp?logID=553</p></body></html>
提示:您可以先修改部分代碼再運行
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.