table不从body继承color css属性

时间:2015-01-17 04:53:22

标签: css twitter-bootstrap twitter-bootstrap-3

我看到color样式继承自body,表格位于http://getbootstrap.com/css/enter image description here 但是,当我使用它时,它不会被继承,并且会应用-webkit-textenter image description here 遗产什么时候停止?我有一个div封闭了这个表,其color继承自bodyenter image description here

1 个答案:

答案 0 :(得分:0)

color - 元素继承给所有子元素,但border-color属性会覆盖它。 (来源:http://webdesign.about.com/od/styleproperties/p/blspcolor.htm

此外,为了避免出现-webkit-text-issue,您应该将<!DOCTYPE>更改为

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

(资料来源:Color not being inherited by child elements?

相关问题