gpt4 book ai didi

IE 中的 CSS 中断

转载 作者:太空宇宙 更新时间:2023-11-04 04:47:27 26 4
gpt4 key购买 nike

我有一个页眉和页脚,我正在为我将要使用的网站进行测试。页眉和页脚在除 IE 之外的所有浏览器中看起来都很棒。我正在使用骨架(http://www.getskeleton.com/)网格进行响应,它支持 IE,但我找不到问题。这是我创建的测试页面的链接:http://kennyalvarez.com/bs/

 <!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<link rel="stylesheet" href="stylesheets/base.css" />
<link rel="stylesheet" href="stylesheets/skeleton.css" />
<link rel="stylesheet" href="stylesheets/layout.css" />

</head>
<body>
<!-- Primary Page Layout================================================== -->
<div id="head" class="row">
<header class="container-twelve">
<p id="" class="six columns alpha"><a href="#">My Site</a></p>
<ul class="six columns omega">
<li>
<button id="searchbtn" name="search">Search</button>
</li>
<li>
<form action="#search" method="post">
<input id="search" placeholder="search" type="text" name="search">
</form>
</li>
<li><a href="contact.html">Contact</a></li>
<li>
<a id=login href="#">Login</a>
<form id=loginform action="" method="post">
<input class="required" id="username" placeholder="Username" type="text" name="username">
<input class="required" id="password" placeholder="Password" type="text" name="password">
<div id=captcha>
<img src="http://placehold.it/100x30" alt="title">
</div>
<input class="required" id="captchainput" placeholder="Captcha" type="text" name="captchainput">
<a href="#">Forgot Login?</a> <a href="#">Register</a>
<button id="loginbtn" type="button" name="login">Login</button>
</form>
</li>
<li><a href="#">Glossary</a></li>
</ul>
</header>
</div><!--head-->
<div id=fullpage>
<nav>
<div class="container-twelve">

<a href="#">PAGE</a>
<a href="#">PAGE</a>
<a href="#">PAGE</a>
<a href="#">PAGE</a>
<a href="#">PAGE & PAGE</a>
<a href="#">PAGE</a>
<a href="#">PAGE & PAGE</a>
</div>
</nav>

<ul id="subnav">
<div class="container-twelve">

<li><a href="#"> PAGE</a>
<ul>
<li><a href="#">PAGE</a></li>
<li><a href="#">PAGE</a></li>
<li><a href="#">PAGE</a></li>

</ul>
</li>
<li><a href="#"> PAGE</a>
<ul>
<li><a href="#">PAGE</a></li>
<li><a href="#">PAGE</a></li>
<li><a href="#">PAGE</a></li>
<li><a href="#">PAGE</a></li>
</ul>
</li>
<li><a href="#"> PAGE</a>

<ul>
<li><a href="#">PAGE</a></li>
<li><a href="#">PAGE</a></li>
</ul>
</li>
<li><a href="#"> PAGE</a>
<ul>
<li><a href="#">PAGE</a></li>
</ul>
</li>
<li><a href="#"> PAGE</a>
<ul>
<li><a href="#">PAGE</a></li>
<li><a href="#">PAGE</a></li>
</ul>
</li>
<li><a href="#"> PAGE</a>

<ul>
<li><a href="#">PAGE</a></li>
<li><a href="#">PAGE</a></li>
<li><a href="#">PAGE</a></li>
</ul>
</li>
<li><a href="#"> PAGE</a>

<ul>
<li><a href="#">PAGE</a></li>
</ul>
</li>
</div>
</ul>
<div id="content">
<h1>TEST</h1>

</div><!--content-->
</div><!--fullpage-->
<div id="foot">
<footer class="container-twelve">
<div class="twelve columns">

<div id="fnav" class="six columns alpha omega">
<a href="#">Terms of Use</a>
<a href="#">Sitemap</a>
<a href="#">Glossary</a>
<a href="#">Login</a>
<a href="#">Contact Us</a>
</div>
<div class="four columns alpha omega">
<p><a href="index.html">MY SITE</a></p>
<p class="copy">Copyright 2012 &copy; All rights reserved.</p>
</div>
</div><!--fourteen-columns-->
</footer>
</div><!--foot-->


</body>
</html>

最佳答案

Internet Explorer 8 不支持 headerfooter 等 HTML5 元素。您需要用 div 替换这些元素,或者使用像这样的 javascript polyfill:http://www.paulund.co.uk/turn-on-html5-in-ie8-or-lower

关于IE 中的 CSS 中断,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14225048/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com