网站在IE中不正确显示。精细在莫西拉,铬,safari等 [英] Website doesn't show up correctly in IE. Fine in mozilla, chrome,safari etc

查看:179
本文介绍了网站在IE中不正确显示。精细在莫西拉,铬,safari等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以基本上当我在IE中查看我的网站时,一切看起来都不对。你不能滚动,它似乎它的卡住。如果你注意到项目页面相比铬,例如看起来真的很大,不让你滚动。联系页面也看起来不太方便。此外,博客在大多数所有的浏览器,除了chrome不正确显示。我决定使用对象标签而不是iframe将博客包含在html网页中。






p>

我设法修复它为IE是可见的,但现在插件PrettyPhoto在这里找到: http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/



在项目页面中无法正确打开,除非我在兼容性视图中查看IE。



验证错误继续提及
标记,但我不知道是否会修复它。

解决方案

首先,IE不支持许多标准,所以你应该几乎总是优化这个浏览器(做额外的hacks等)



1。
但是,关于这个网站,我认为使用框架是一个坏主意(使用框架通常是一个坏主意)
我会使一个侧面菜单作为一个div与固定定位使用CSS,我想你即使在IE中也没有问题,然后



2。
有时,当你真的不想如何优化你的web为IE,开发人员通常使用某种规则只是为IE(个人我从来不使用它们)
http://css-tricks.com/132-how-to-create-an-ie -only-stylesheet /



3。
我最近发现有一个项目,它使IE行为更像一个标准的浏览器,所以你不必考虑IE非常多
你只是包括一些JS文件,很多事情更容易



总结...有些方法如何优化IE(或其他浏览器),在这种情况下,我会使用左侧边栏固定使用CSS



wish你好运,你需要它:)



PS。最后一次建议 - 保持您的网站有效


So basically when I viewed my site in IE everything looked wrong. You cant scroll and it seems like its stuck. If you notice the project page compared to chrome for example looks really large and wont let you scroll. Contact page also looks out of place a little. Also the blog in mostly all the browsers except chrome doesn't show up correctly. I decided to use object tags instead of an iframe to include the blog into the html webpage.


Thanks guys,

I managed to fix it for IE to be viewable but now the plugin PrettyPhoto found here: http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/

doesn't open up correctly in project page unless I view IE in compatibility view.

The validation errors keep mentioning
tags but I dont know if that would fix it.

解决方案

first of all IE doesn't support lots of standards, so you should almost always optimize for this browser (do additional hacks, etc)

1. but, about this website, I think using frames is a bad idea here (using frames is usually a bad idea) I'd make a sidemenu as a div with fixed positioning using CSS, I think you'll have no problem to scroll even in the IE then

2. sometimes when you really don't want how to optimize your web for IE, developers usually use some kind of rules just for IE (personally I never use them) http://css-tricks.com/132-how-to-create-an-ie-only-stylesheet/

3. I recently found out that there is a project which is making IE to behave more like a standard browser, so you dont' have to think about IE very much you just include some JS files and lots of things are easier

to sum it up... there are ways how to optimize for IE (or other browsers), in this case I'd use the left sidebar as fixed using CSS

wish you good luck, you're gonna need it :)

PS. and last advise - keep your site valid

这篇关于网站在IE中不正确显示。精细在莫西拉,铬,safari等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆