我想用css更改分组文本字体大小和颜色? [英] I want to change the grouping text font size and color using css?

查看:77
本文介绍了我想用css更改分组文本字体大小和颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用CSS更改分组文本字体大小和颜色,但问题是我在面板内有一个表格,边框颜色也已更改,所以有人可以帮我为面板编写CSS。

I want to change the grouping text font size and color using CSS but the problem is I have a table inside panel and the border color is also changed so can someone help me to write CSS for the panel.

推荐答案

不,这不应该发生。要更改表格边框颜色,必须在CSS样式表中包含以下代码。



No, that should not happen. To change the table border color you must have the following code inside your CSS stylesheet.

table {
   border: 1px solid #hexcol;
}





因此,在代码内部存在这种代码来更新表的默认边框值。否则,您不知道任何导致此效果的CSS代码。但是,如果它以任何方式发生。您可以为此表编写另一行代码,以保持其初始值(黑色)或您希望其独立于其父级字体或颜色属性的任何其他值。使用上面的CSS代码,并将color属性添加到表的边框。您可以将值 initial 传递给border属性,以使边框的初始值为黑色。



So, either inside your code this kind of code is present to update the table's default border value. Otherwise, you're un aware of any CSS code that is causing this effect. However, if it happens any way. You can write another line of code for this table, to keep its initial value (black) or any other value that you want it to take independant of its parent's font or color properties. Use the above CSS code, and add the color property to the table's border. You can pass the value initial to the border property, to cause the border to have the initial value of black.


检查出来:如何排除CSS格式? [ ^ ]


这篇关于我想用css更改分组文本字体大小和颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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