国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 開(kāi)發(fā) > CSS > 正文

CSS相冊(cè)簡(jiǎn)單實(shí)現(xiàn)方法(功能分析及代碼)

2024-07-11 08:28:49
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
很久以前就知道ctrly.cn 了感覺(jué)很簡(jiǎn)單也沒(méi)太在意,
效果可以看這里:
http://www.ctrly.cn/
下面是提取出來(lái)的代碼 :

復(fù)制代碼
代碼如下:
<!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>HTML—CSS 簡(jiǎn)易相冊(cè)</title>
<style type="text/css" media="screen">
/* CSS Reset */
* {
margin: 0;
padding: 0;
border: 0;
outline: 0;
}
body {
font-family: Arial, "MS Trebuchet", sans-serif;
color:#888;
}
a{
text-decoration:none;
color:#8ac;
}
/* Setup Tabs */
ul{
background:#000;
width:125px; /* Width of Tab Image */
float: left;
list-style: none;
border-right:8px solid black;
}
ul li{
height:75px; /* Height of Tab Image */
}
/* Setup Tab so normal opacity is 40 and rollover is 100 */
ul li a img{
/* for IE */
-ms-filter:"PRogid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
filter:alpha(opacity=40);
/* CSS3 standard */
opacity:0.4;
}
ul li a:hover img{
/* for IE */
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter:alpha(opacity=100);
/* CSS3 standard */
opacity:1.0;
}
#images{
width:500px;
height:300px;
overflow:hidden;
float:left;
}
#wrapper{
width:633px;
height:300px;
border:8px solid black;
margin:0px auto;
}
#credits{
width:633px;
margin: 0 auto;
text-align: right;
}
p{
margin-top:10px;
font-size:9pt;
}
h1#header{
width:633px;
margin:15px auto 5px;
font-size:14pt;color:#f00;
}
.foot{
width:633px;background:#111;font-size:12px;
margin:2px auto;border-top:1px solid #000;
}
</style>
</head>
<body>
<h1 id="header">單擊左邊的小圖看效果</h1>
<div id="wrapper">
<ul>
<li><a href="#image1" id="tab1"><img src="http://www.ctrly.cn/img/tab1.jpg" alt="" title="" /></a></li>
<li><a href="#image2" id="tab2"><img src="http://www.ctrly.cn/img/tab2.jpg" alt="" title="" /></a></li>
<li><a href="#image3" id="tab3"><img src="http://www.ctrly.cn/img/tab3.jpg" alt="" title="" /></a></li>
<li><a href="#image4" id="tab4"><img src="http://www.ctrly.cn/img/tab4.jpg" alt="" title="" /></a></li>
</ul>
<div id="images">
<div><a name="image1"></a><img src="http://www.ctrly.cn/img/image1.jpg" alt="" title="" /></div>
<div><a name="image2"></a><img src="http://www.ctrly.cn/img/image2.jpg" alt="" title="" /></div>
<div><a name="image3"></a><img src="http://www.ctrly.cn/img/image3.jpg" alt="" title="" /></div>
<div><a name="image4"></a><img src="http://www.ctrly.cn/img/image4.jpg" alt="" title="" /></div>
</div>
</div>
</body>
</html>
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 东平县| 光山县| 伊宁县| 洱源县| 镇远县| 桦川县| 郑州市| 蓬溪县| 昌图县| 芦溪县| 清涧县| 钟祥市| 曲阜市| 黄梅县| 同江市| 隆尧县| 宁强县| 海林市| 长岭县| 灵川县| 积石山| 尼勒克县| 蓝田县| 津市市| 闽侯县| 兴隆县| 山东省| 金秀| 赞皇县| 三河市| 青河县| 洮南市| 黄浦区| 澄江县| 衡南县| 舒兰市| 平阳县| 滨海县| 滁州市| 来宾市| 廉江市|