2 Star 12 Fork 8

Mium / 成都缘友

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.html 3.19 KB
一键复制 编辑 原始数据 按行查看 历史
Mium 提交于 2017-08-06 17:59 . first commit
<!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 简易相册</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>
HTML/CSS
1
https://gitee.com/Mium/ChengDuYuanYou.git
git@gitee.com:Mium/ChengDuYuanYou.git
Mium
ChengDuYuanYou
成都缘友
master

搜索帮助