zoukankan      html  css  js  c++  java
  • IE6/IE7/IE8 FF常见问题解决

    (从已经死了一次又一次终于挂掉的百度空间人工抢救出来的,发表日期2014-04-08)

    <style type="text/css" >

    *{
     margin:0px auto;
     padding:0px;         /*解决IE8中距中,不左对齐*/
    }
    .box{
     border:#000 solid 1px; 
     640px;
     /height:auto !important;/*overflow:hidden;/*解决FF边框不随大小变化*/  
     margin-top:2px;}
    img{
     border:none; 
     vertical-align:middle;/*解决IE6/FF图片下面有边距*/
     }
    ul{
     border:red solid 0px; 
     zoom:100%; 
     overflow:hidden; 
     _padding-bottom:10px;*padding-bottom:10px;/*IE6/IE7 margin-bottom无效问题*/
     }
    li{
     list-style:none;
     float:left;
     margin:10px;
     display:inline;/*IE6双边距bug*/
     border:#000 solid 1px;}


    </style>

    <title>测试</title>
    </head>

    <body>
     <div class="box">
      <ul>
             <li><a href="#" class="tt" title="苹果"><img src="images/apple_1.jpg" alt=苹果"" /></a></li>
                <li><a href="#" class="tt" title="苹果"><img src="images/apple_2.jpg" alt=苹果"" /></a></li>
                <li><a href="#" class="tt" title="苹果"><img src="images/apple_3.jpg" alt=苹果"" /></a></li>
                <li><a href="#" class="tt" title="苹果"><img src="images/apple_4.jpg" alt=苹果"" /></a></li>
                <li><a href="#" class="tt" title="苹果"><img src="images/apple_1.jpg" alt=苹果"" /></a></li>
                
            </ul>    
        </div>

  • 相关阅读:
    面试题 16:反转链表
    Makefile学习之路6————通过函数增强功能
    Makefile学习之路5————变量
    Makefile学习之路3————规则的运行
    LED灯C语言的点亮方式
    LED灯汇编机器码的点亮方式
    Linux的进阶命令
    入门命令2
    shell命令解析器功能说明及入门命令1
    C++基础 — C++中的变量和三目运算符
  • 原文地址:https://www.cnblogs.com/ferron/p/4529826.html
Copyright © 2011-2022 走看看