小编Rik*_*iku的帖子

用户代理样式表覆盖了我的表格样式?Twitter Bootstrap

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

在twitter bootstrap页面(http://twitter.github.com/bootstrap/base-css.html)上,一切当然都正常.

在我的检查员中,我看到以下差异:

我的页面:

我的页面的CSS样式

twitter引导页面:

twitter引导页面的CSS样式

所以问题肯定是用户代理样式表覆盖了引导程序样式.

我无法弄清楚为什么这在我的页面和twitter引导程序页面上有所不同.

大多数其他CSS工作正常.

我的css导入:

<link href="/media/bootstrap/css/bootstrap.css" rel= "stylesheet">
Run Code Online (Sandbox Code Playgroud)

Twitter bootstrap页面上的CSS导入:

<link href="assets/css/bootstrap.css" rel="stylesheet">
Run Code Online (Sandbox Code Playgroud)

css twitter-bootstrap

59
推荐指数
1
解决办法
4万
查看次数

Django模型错误 - "TypeError:'xxx'是此函数的无效关键字参数

我收到错误:

TypeError: 'person' is an invalid keyword argument for this function
Run Code Online (Sandbox Code Playgroud)

我的模型是:

class Investment(models.Model):
company = models.ManyToManyField("Company", related_name ="Investments_company")
financial_org = models.ManyToManyField("Financial_org", related_name ="Investments_financial_org")
person = models.ManyToManyField("Person", related_name ="Investments_person")
Run Code Online (Sandbox Code Playgroud)

我的测试(给出错误):

investment1 = Investment(company = [], financial_org = financial1, person = [])
Run Code Online (Sandbox Code Playgroud)

python django django-models

9
推荐指数
1
解决办法
8010
查看次数

标签 统计

css ×1

django ×1

django-models ×1

python ×1

twitter-bootstrap ×1