English 中文(简体)
IE6 Img Aspectair, CSS
原标题:IE6 Img Aspect Ratio, CSS

So i have the following code on my img s

<代码>width:100%;高:汽车;

然而,IE6与网络标准不一致,似乎忽视了这一方面的比例,它增加了对形象的缺省性比例,使其看上去是隐蔽的,有时会使其捉.见肘,有时会使其装载正确,但并不一致。

html对此视而不见。

<div 100% width of window>
     <div 100% with some margin>
          <img that looks great in IE (yeah right..) />
     </div>
</div>

图像本应为1140px,392px,在1140px>上显示为1303p

阴极似乎正确,但高端正被扭曲。

你们是否知道一个固定点?

I了解,IE6正在走路,但与世界上使用率超过28%的一些国家和公司一样,在某些情况下仍然必须予以支持。

最佳回答
#yourImgage {
    width:100%; height: auto;
}

it stretches them and squashes them in some instances it loads them correctly but it s not consistent.

上面的法典没有把图像显示为100%,而是把其集装箱的毛.带上100%。 如果这是你想要的,那么就会罚款。 否则,它便像IE一样,正在做它所告诉的东西,尽管它似乎被混淆到什么与<代码>:auto............维护形象的方面比例,或保持其原有的六分之高,同时延长其宽度。

因此,你试图完全从<条码>上删除<<>八>>。 在其他浏览器中,似乎情况相同,或许会消除第6号国际电子计算法的混淆。

#yourImgage {
    width:100%;
}

你试图在这里取得什么成就?


http://www.un.org。

或许,你需要,只需要IE 6 。 所有其他浏览者都将忽视这一点。

<!--[if IE 6]>
    <link rel="stylesheet" type="text/css" href="ie6-only.css" />       
<![endif]-->
问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...