蓝色理想看到的纯CSS的图片展示效果
2007年03月18日
很好的两个CSS案例,蓝色理想一直是学习的好地方,真正可以学到东西,可惜相逢恨晚,早点知晓一定学到更多东西了,现在年龄大了点有点晚....
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | <!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="zh" lang="zh"> <head profile="http://www.w3.org/2000/08/w3c-synd/#"> <meta http-equiv="content-language" content="zh-cn" /> <meta http-equiv="content-type" content="text/html;charset=gb2312" /> <style> dl { position:absolute; width:240px; height:170px; border:10px solid #eee; } dd { margin:0; width:240px; height:170px; overflow:hidden; } img { border:1px solid black } dt { position:absolute; right:3px; top:50px; } a { display:block; margin:1px; width:20px; height:20px; text-align:center; font:700 12px/20px "宋体",sans-serif; color:#fff; text-decoration:none; background:#666; border:1px solid #fff; filter:alpha(opacity=40); opacity:.4; } a:hover { background:#000 } </style> <dl> <dt><a href="#a" title="">1</a><a href="#b" title="">2</a><a href="#c" title="">3</a></dt> <dd> <img src="http://farm1.static.flickr.com/80/251133988_e0b8174060_m.jpg" alt="" title="" id="a" /> <img src="http://farm1.static.flickr.com/6/76318014_e50414fe42_m.jpg" alt="" title="" id="b" /> <img src="http://farm1.static.flickr.com/48/172522117_410a1e87c1_m.jpg" alt="" title="" id="c" /> </dd> </dl></pre> <pre lang="html" line="1"><!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="zh" lang="zh"> <head profile="http://www.w3.org/2000/08/w3c-synd/#"> <meta http-equiv="content-language" content="zh-cn" /> <meta http-equiv="content-type" content="text/html;charset=gb2312" /> <style> dl { position:absolute; width:240px; height:170px; border:10px solid #eee; } dd { margin:0; width:240px; height:170px; overflow:hidden; } dt { position:absolute; right:1px; } ul { margin:0; padding:0; width:260px; height:170px; list-style:none; background:url("http://bbs.blueidea.com/side/wp-content/uploads/2007s/2006/11/10/arrowb_kJrcZheJmiIF.gif") no-repeat 75% 20px; border:1px solid #ccc } #b { background-position:75% center } #c { background-position:75% 86% } li { width:205px; height:27px; font:12px/27px "宋体",sans-serif; white-space:nowrap; overflow:hidden; } dt a { display:block; margin:1px; width:30px; height:56px; text-align:center; font:700 12px/55px "宋体",sans-serif; color:#fff; text-decoration:none; background:#666; } dt a:hover { background:orange } </style> <dl> <dt><a href="#a" title="">新闻</a><a href="#b" title="">娱乐</a><a href="#c" title="">体育</a></dt> <dd> <ul id="a"> <li>·<a href="" title="">国际新闻国际新闻国际新闻</a></li> <li>·<a href="" title="">国际新闻国际新闻国际新闻</a></li> <li>·<a href="" title="">国际新闻国际新闻国际新闻</a></li> <li>·<a href="" title="">国际新闻国际新闻国际新闻</a></li> <li>·<a href="" title="">国际新闻国际新闻国际新闻</a></li> <li>·<a href="" title="">国际新闻国际新闻国际新闻</a></li> </ul> <ul id="b"> <li>·<a href="" title="">娱乐新闻娱乐新闻娱乐新闻</a></li> <li>·<a href="" title="">娱乐新闻娱乐新闻娱乐新闻</a></li> <li>·<a href="" title="">娱乐新闻娱乐新闻娱乐新闻</a></li> <li>·<a href="" title="">娱乐新闻娱乐新闻娱乐新闻</a></li> <li>·<a href="" title="">娱乐新闻娱乐新闻娱乐新闻</a></li> <li>·<a href="" title="">娱乐新闻娱乐新闻娱乐新闻</a></li> </ul> <ul id="c"> <li>·<a href="" title="">体育新闻体育新闻体育新闻</a></li> <li>·<a href="" title="">体育新闻体育新闻体育新闻</a></li> <li>·<a href="" title="">体育新闻体育新闻体育新闻</a></li> <li>·<a href="" title="">体育新闻体育新闻体育新闻</a></li> <li>·<a href="" title="">体育新闻体育新闻体育新闻</a></li> <li>·<a href="" title="">体育新闻体育新闻体育新闻</a></li> </ul> </dd> </dl> |
1个留言
jclser 2007/05/12 - 00:38:49
真不错的构思。比起用FLASH来实现,我更喜欢这个。