易截截图软件、单文件、免安装、纯绿色、仅160KB

css div 鼠标经过时图片变大

<style>
#enlarge {padding:0; margin:2em auto; list-style-type:none; width:240px;
height:40px;}
#enlarge li {display:block; float:left; width:40px; height:40px;
position:relative;}
#enlarge li a {display:block; width:40px; height:40px; background:transparent;
overflow:hidden; position:relative;}
#enlarge li a img {width:100%; height:100%; border:0;}
#enlarge li a:hover {position:absolute; left:-20px; top:-20px; width:80px;
height:80px; z-index:100;}
#div1 .div2
{
    float:left; width:40px; height:40px; position:relative;
}
#div1 .div2 a {display:block; width:40px; height:40px; background:transparent;
overflow:hidden; position:relative;}
#div1 .div2 a img {width:100%; height:100%; border:0;}
#div1 .div2 a:hover {position:absolute; left:-20px; top:-20px; width:80px;
height:80px; z-index:100;}
</style>
<ul id="enlarge">
<li><a href="#one"><img src="http://www.dzwindows.com/images12_13/logo.png" alt="image 1"
title="image 1" />Image 1</a></li>
</ul>
<div id="div1">
    <div class="div2">
      <a href="#">
    <img src="http://www.dzwindows.com/images12_13/logo.png" alt="image 1"
title="image 1" />
      </a>
   </div>
</div>


相关文档:

css 左右Margin加倍的问题

当div层为float时,IE6中box左右的margin会加倍
比如:
<!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/htm ......

CSS Hack 2

IE8 自动在兼容模式下运行:
加入这么一行 <meta http-equiv="x-ua-compatible" content="ie=7" />
其内容随著指定的页面模式而更改,当要模拟IE7时,指定IE=IE7,也可以指定IE=6来模仿IE6
区别IE6与FF:
background:orange;*background:blue;
区别IE6与IE7:
background:green !important;background:blue;
......

300+Jquery, CSS, MooTools 和 JS的导航菜单资源


   
如果你是网站前端开发人员,那么对你来说,也许做一个漂亮导航菜单会很得心应手。本文要为大家总结各种导航菜单的资源,以便让大家的网站前端开发的工作更
方便更快速,只要选择现成的例子就可以应用于自己的网站了。本文收集的这些资源,从非常简单的HTML和CSS导航菜单,到非常复杂和高级的
JQuer ......

10个非常有用的CSS技巧


1. 将网页或元素居中       
      
    
HTML:
<div class="wrap">  
</div><!-- end wrap -->  
CSS:
.wrap { width:960px; margin:0 auto;}   ......

DIV+CSS制作滚动条


<style> 
* {  
 margin:0;  
 padding:0;  
}  
body {  
 font-size:12px;  
 font-family:Verdana, Arial, Helvetica, sans-serif;  
 background:#FFFFFF;  
 margin: ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号