html+css图片展示

<strong><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>MyHtml.html</title>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<style type="text/css">
		*{margin:0px;}
		#imgList{width:989px;height:370px;}
		#imgList .box1{width:325px;height:370;
			float:left;margin-right:4px;}
		#imgList .box1 .top{width:325px;height:244px;margin-bottom:4px;}
		#imgList .box1 .bottom1{width:161px;height:120px;
			float:left;}
		#imgList .box1 .bottom2{width:161px;height:120px;
			float:right;}
		#imgList .box1 .common{position:relative;}
		#imgList .box1 .common p{width:100% ; height:0px;overflow:hidden;
			background:rgba(0,0,0,0.5);position:absolute;left:0px ;
				bottom:0px;text-align:center;padding-top:0px;}
	</style>
  </head>
  <body >
	<div id="imgList">
		<div class="box1">
			<div class="top common">
				<img src="images/pic1.jpg"/>
				<p><img src="images/button.png"></p>
			</div>
			<div class="bottom1 common">
				<img src="images/pic4.jpg"/>
				<p><img src="images/button.png"></p>
			</div>
			<div class="bottom2 common">
				<img src="images/pic5.jpg"/>
				<p><img src="images/button.png"></p>
			</div>
		</div>

		<div class="box1">
			<div class="top common">
				<img src="images/pic2.jpg"/>
				<p><img src="images/button.png"></p>
			</div>
			<div class="bottom1 common">
				<img src="images/pic7.jpg"/>
				<p><img src="images/button.png"></p>
			</div>
			<div class="bottom2 common">
				<img src="images/pic6.jpg"/>
				<p><img src="images/button.png"></p>
			</div>
		</div>

		<div class="box1">
			<div class="top common">
				<img src="images/pic3.jpg"/>
				<p><img src="images/button.png"></p>
			</div>
			<div class="bottom1 common ">
				<img src="images/pic8.jpg"/>
				<p><img src="images/button.png"></p>
			</div>
			<div class="bottom2 common">
				<img src="images/pic9.jpg"/>
				<p><img src="images/button.png"></p>
			</div>
		</div>
	</div>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" >
		$("#imgList .box1 .common").hover(
			function(){
				$(this).find("p").stop().animate(
					{height:"27px",paddingTop:"6px"},500);
			},function(){
				$(this).find("p").stop().animate(
					{height:"0px",paddingTop:"0px"},500);
			}
		);
	</script>
 </body>
</html>
</strong>

时间: 2024-08-06 15:58:36

html+css图片展示的相关文章

html/css 图片展示效果

demo.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>商品展示</title> <link rel="stylesheet" type="text/css" href="demo.css"> <script typ

css实现六边形图片(最简单易懂方法实现高逼格图片展示)

不说别的,先上效果: 用简单的div配合伪元素,即可'画出'这幅六边形图片,原理是三个相同宽高的div,通过定位旋转拼合成一个六边形,再利用背景图层叠,形成视觉上的一张整图.下面咱们一步一步来实现. (1)那么第一步,当然是绘制容器,容器是一个有宽高的div. 绘制之前,必须明白一个问题,那就是,等边六边形是通过三个相同宽高的div拼合而成的(如下图所示),所以div的宽高必须满足 √3 倍的条件才能拼成一个正六边形,这里就不带大家计算这个值了,有兴趣可以用三角函数私下自己计算一下. 在此处,我

图片展示的制作

在这里,我实现了在页面内进行图片展示,当鼠标移动到相应的图片上后,图片下方的文字介绍会上移,并完整显示,半透明的文字介绍会覆盖掉图片,当鼠标移开之后,文字又会回到原来的位置. 要实现这样的图片展示,我主要是通过改变文字介绍的top值来实现的. 在编码的过程中,我犯了一个错误,就是将js代码写在head标签内的时候并没有使用window.onload事件,导致页面功能受到影响.这样的情况,是因为没有保证页面加载完成.如果把这段js代码放在body结束标签前,就不会出错. <!DOCTYPE htm

图片展示上移效果

<!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>图片展示显示详细说明和隐藏</tit

JS实现有点炫的图片展示效果-图片解体和组合

经过4个月的努力学习,迎来了进入市场的最后一个学习项目.自己模仿了一个图片展示效果,用在了项目中,感觉挺炫的.在这里分享一下,希望大家喜欢~! bomb-showImg : 在线演示http://runjs.cn/detail/tl9quyke查看源码http://runjs.cn/code/tl9quyke HTML : 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

CSS3 实现六边形Div图片展示效果

效果图: 实现原理: 这个效果的主要css样式有: 1.>transform: rotate(120deg); 图片旋转 2.>overflow:hidden;  超出隐藏 3.>visibility: hidden;  也是隐藏,与display:none;相似,但不同的是,它虽然隐藏了,但依然会在网页中占有位置 我们要用到3层div进行旋转来得到这个效果(ps:3层div的大小是一样的). 最外层div(boxF)旋转120度.第二层(boxS)旋转-60度,第三层(boxT)再旋转

360图片展示特效

<doctype html> <head> <title>360图片展示特效</title> <style> *{margin:0;padding:0;} #imgList{ width:1000px; height:630px; /*background:#ff0033;*/ margin:50px auto 0px; } #imgList .top{ width:100%; height:207px; background:#ffff66;

div css布局中CSS图片大小自动按比例等比例缩小图片不变形解决技巧(转)

在DIV CSS布局中对于图片列表或图片排版时,图片不是固定宽度高度大小,但图片占位是固定宽度高度,这个时候如果使用CSS固定死图片大小(宽度 高度),这个时候如果图片相对于这个位置不是等比例大小,那么这张图片就会变形,让图片变的不清晰,这个时候想让图片不变形又按比例缩放,如何解决?CSS图片缩小不变形,图片自动缩小,图片按比例等比例缩小不变形解决. 解决方法有两种: 第一种,让图片和布局宽度高度成等比例,这样CSS设置死宽度和高度,图片也是等比例缩小,图片也不会变形. 比如淘宝,要求店铺主上传

CSS3实战开发:仿天猫首页图片展示动画特效实战开发

各位网友大家好,我是陌上花会开,人称陌陌.今天我带领大家开发一个仿天猫首页图片展示动画特效的案例.一如往常,我既不提供源码给大家,也不提供Demo给大家,只是希望大家能跟着我的讲解,然后将代码一步步复制到本地,本人可以保证,页面上的代码复制到本地,绝对百分百运行,且得到与陌陌一样的运行效果.我这么做只为激起大伙的动手能力,望大家能明白我的用心. 好了,不废话了,直接本篇的实战开发吧. 我们看一下我们今天要做的实战案例效果图: 1. 鼠标划过前: 2. 鼠标划过右侧的图片时: 可能大伙看这个静态截