简体   繁体   English

Div显示在Firefox,Safari,Chrome等中,但不在Internet Explorer中显示

[英]Div displays in Firefox, Safari, Chrome, etc. but not in Internet Explorer

This div transition displays fine in most browsers, but not in Internet Exporer. div转换在大多数浏览器中都可以正常显示,但在Internet Exporer中则不行。 You can see the error by clcking on the secondview link on the left. 您可以通过单击左侧的第二个视图链接来查看错误。

Here is the HTML and CSS source: 这是HTML和CSS源:

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie ie6 no-js" lang="en"> <![endif]-->
<!--[if IE 7 ]>    <html class="ie ie7 no-js" lang="en"> <![endif]-->
<!--[if IE 8 ]>    <html class="ie ie8 no-js" lang="en"> <![endif]-->
<!--[if IE 9 ]>    <html class="ie ie9 no-js" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
   <meta charset="UTF-8" />
   <!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <title>Page Transitions with CSS3</title>
   <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
   <meta name="description" content="" />
   <meta name="keywords" content="" />
   <meta name="author" content="Your name" />
       <link rel="shortcut icon" href="../favicon.ico"> 
       <link rel="stylesheet" type="text/css" href="css/demo.css" />
       <link rel="stylesheet" type="text/css" href="css/style3.css" />
       <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/blitzer/jquery-ui.css" type="text/css" />
       <link href='http://fonts.googleapis.com/css?family=Electrolize' rel='stylesheet' type='text/css' />

       <script src="javascript/jquery-1.7.1.min.js" type="text/javascript"></script>
       <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
       <script src="javascript/jquery.easy-confirm-dialog.js"></script>
 </head>
 <body>
     <div id="home" class="content">
     <div class="content">
         <center><h2>Div #1</h2></center>
         Div #1
     </div>
</div>
<!-- /Home -->

<!-- SecondView --> 
    <div id="secondview" class="panel">
            <div class="content">
                 <center><h2>Div #2</h2>
             Div #2
            </div>
        </div>
    <!-- /SecondView -->

<!-- Header with Navigation -->
    <div id="header">
        <ul id="navigation">
        <li><a id="link-home" href="#home">Home</a></li>
        <li><a id="link-secondview" href="#secondview">Second View</a></li>
        </ul>
    </div>
</body>
</html>

You are using CSS3 for the transition, which is not available for IE. 您正在使用CSS3进行转换,这不适用于IE。 From your CSS. 从你的CSS。

.panel{
    [...]
    -webkit-transition: all .6s ease-in-out;
    -moz-transition: all .6s ease-in-out;
    -o-transition: all .6s ease-in-out;
    -ms-transition: all .6s ease-in-out;
    transition: all .6s ease-in-out;
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过Chrome,Firefox和Internet Explorer动态编辑元素的焦点,悬停等效果元素的属性 - How to edit focus, hover etc. effect properties of elements on the fly by Chrome, Firefox and Internet explorer 图像和进度栏未在Internet Explorer中加载,但在Firefox,Chrome等中加载 - Image & progress bar not loading in internet explorer, but loads in firefox, chrome etc Safari中新的“响应式设计模式”:Internet Explorer,Chrome,Firefox仿真器 - New “Responsive Design mode” in Safari: Internet Explorer, Chrome, Firefox Emulator CSS不透明度可在Firefox和Internet Explorer中使用,但不能在Chrome&Safari(WebKit)中使用 - CSS opacity working in Firefox & Internet Explorer, but not Chrome & Safari (WebKit) Chrome和Safari中的可滚动表格行在Firefox和Internet Explorer中失败 - Scrollable table-row in Chrome and Safari, fails in Firefox and Internet Explorer CSS动画只能在Chrome和Safari中使用,而不能在Firefox和Internet Explorer中使用 - CSS animation works in Chrome and Safari, but not in Firefox and Internet Explorer 为什么我的文本在Safari和Chrome中对齐但在Internet Explorer / Firefox中不对齐? - Why does my text align in Safari and Chrome but not Internet Explorer/Firefox? CSS在Chrome,Firefox和Safari中工作正常,但在Internet Explorer中失败 - CSS works fine in Chrome, Firefox, and Safari, however fails in Internet Explorer 最大高度流畅的图像响应功能不适用于Chrome,Firefox等,但适用于Safari - Max-height fluid image responsive doesn't work in Chrome, Firefox etc. but works in Safari 网页在Google Chrome和Internet Explorer中显示正常,但所有内容都在Mozilla Firefox中推出 - Page displays fine in Google Chrome and Internet Explorer but all the content is pushed off in Mozilla Firefox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM