简体   繁体   English

IE 10和IE 11的CSS格式

[英]CSS formatting for IE 10 and IE 11

I'm having two issues. 我有两个问题。 My application is not centered in IE, but looks perfect in chrome. 我的应用程序不在IE中居中,但在chrome中看起来很完美。

  1. I have conditional just for IE, but it doesn't seem to be working. 我有条件仅用于IE,但似乎没有用。 The #outline is not shifting to the left like the ie.css file is telling it to. #outline不会像ie.css文件告诉的那样向左移动。

  2. It is my understanding that the conditional I put in the isn't supported for IE 10 or IE 11 so what can I do so that these versions aren't ignored? 据我了解,IE 10或IE 11不支持我输入的条件,因此我该怎么做以免忽略这些版本?

The conditional I put in 我输入的条件

  <!--[if IE]>
<link rel="stylesheet" type="text/css" href="ie.css" />
<![endif]--> 

You can view it in action with all the files and whatnot here: http://andrewhnovak.com/AMC%20Ticket%20Calculator%202.0/index.html 您可以在这里查看所有文件的实际使用情况,而不是这里: http : //andrewhnovak.com/AMC%20Ticket%20Calculator%202.0/index.html

Remove the zoom: 80%' from amc.css` line 7. That is an IE only style, and is what is messing things up. zoom: 80%' from amc.css第7行中删除zoom: 80%' from 。这是一种仅限IE的样式,正在搞砸。

If you were trying to accomplish something by having that there, then let me know in the comments and I'll see if I can help. 如果您尝试通过在那儿完成某件事来实现目标,请在评论中让我知道,我会帮忙的。 But you'll notice that that shrinkage isn't happening in any other browser. 但是您会注意到,在其他任何浏览器中都没有发生收缩。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM