如何将twitter自举重置重置为浏览器的原始重置 [英] How do I reset a twitter bootstrap reset to the browser's original

查看:707
本文介绍了如何将twitter自举重置重置为浏览器的原始重置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我想重置(撤消)img的Twitter Bootstrap 2.2重置源自reset.less文件。

Basically, I want to reset (undo) a Twitter Bootstrap 2.2 reset for img that originates from the reset.less file.

Twitter Bootstrap本质上是设置这个css :

Twitter Bootstrap is essentially setting this css:

img {
  width: auto\9;
  height: auto;
}

我实际上是使用bootstrap-sass gem,所以这是我需要处理。

What CSS can I add after this to undo this? I'm actually using the bootstrap-sass gem, so that's what I need to deal with.

如果我注释掉在gem源中的CSS,我的问题是解决,但这不会帮助我,当宝石装载由heroku。所以我需要一个局部覆盖/猴子补丁来解决这个问题。

If I comment out the CSS in the gem source, my issue is resolved, but that doesn't help me when the gem is loaded by heroku. So I need a local override/monkey patch to fix this.

谢谢。这里是问题: https://github.com/desandro/isotope/issues/ 335#issuecomment-11507013 和此处: https://github.com/twitter/bootstrap / issues / 6541

Thanks. Here is the issue: https://github.com/desandro/isotope/issues/335#issuecomment-11507013 and here: https://github.com/twitter/bootstrap/issues/6541

没有这个补丁的问题是,真棒同位素库无法正常工作,因为chrome和safari不能正确绘制图像。

The problem without this patch is that the awesome isotope library can't function properly as chrome and safari can't draw the images correctly.

推荐答案

您可以在此下方添加一个新的重复选择器:

You can add in a new duplicate selector underneath this one:

img {
  width: auto;
  height: auto;
}

这应该覆盖它。
将它添加到在文档的< head> 部分中的主文件下调用的新文件中。

That should override it. Adding it into a new file that is called under the main one in the <head> section of your document would work too.

这篇关于如何将twitter自举重置重置为浏览器的原始重置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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