用户代理样式表覆盖我的表样式? Twitter Bootstrap [英] User agent stylesheet overriding my table style? Twitter Bootstrap

查看:427
本文介绍了用户代理样式表覆盖我的表样式? Twitter Bootstrap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用twitter bootstrap。我的问题是,字体大小在表中是错误的。由于某种原因,用户代理样式表将覆盖引导表样式。

I'm using twitter bootstrap. My problem is that font-sizes in tables are wrong. For some reason the User Agent stylesheet is overriding the bootstrap table styles.

在twitter启动页面( http://twitter.github.com/bootstrap/base-css.html )一切当然工作正常。

On the twitter bootstrap page (http://twitter.github.com/bootstrap/base-css.html) everything is of course working correctly.

在我的检查器中,我看到以下区别:

In my inspector I see the following difference:

我的页面:

The twitter bootstrap page:

The twitter bootstrap page:

所以肯定的问题是用户代理样式表覆盖了引导样式。

So definitely the problem is that the user agent stylesheet is overriding the bootstrap styles.

我无法找出为什么在我的页面和twitter启动页面上不同。

I haven't been able to figure out why this is different on my page and the twitter bootstrap page.

大多数其他CSS都工作正常。

Most of the other CSS is working fine.

我的css导入:

<link href="/media/bootstrap/css/bootstrap.css" rel= "stylesheet">

在twitter启动页面上导入CSS:

CSS import on twitter bootstrap page:

<link href="assets/css/bootstrap.css" rel="stylesheet">


推荐答案

我有<!DOCTYPE html> 标签写错了。所以如果你有这个问题,请确保doctype声明是正确的!

I actually figured this out myself. I had the <!DOCTYPE html> tag wrongly written. So if you have this problem make sure the doctype declaration is correct!

这篇关于用户代理样式表覆盖我的表样式? Twitter Bootstrap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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