我注意到Internet Explorer中twitter bootstrap(2.2.1)和ad-gallery之間的奇怪衝突。如何覆蓋css img屬性?
原來在bootstrap.min.css此行引起問題,圖像顯示不出來:
img{max-width:100%;width:auto\9;height:auto;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic;}
當我刪除這兩個一切工作正常:
width:auto\9;height:auto;
但是相反刪除那些我試圖覆蓋那些屬性,但沒有一個工作到目前爲止:
.ad-gallery img{width:default;height:default;}
.ad-gallery img{width:none;height:none;}
.ad-gallery img{width:auto;height:auto;}
如何覆蓋這些屬性?
btw。谷歌Chrome和Mozilla Firefox沒有任何問題。 您可以使用here的原始引導程序min css文件檢查該示例,該文件不起作用。
以下是從here修改bootstrap-modified.min.css的示例。
什麼是你想用做'.ad-gallery'中的圖像?因爲默認情況下,它們將基於引導CSS自動調整寬度和高度 - 所以我很困惑你想要完成什麼? – Andy
在哪個版本的IE中你看到了這個?我在IE9中試過,它似乎工作。 http://jsfiddle.net/ty6aB/5/ –
@Andy在IE中增加了一個工作和非工作版本。你明白這個問題嗎? – motto