可以用bg颜色填充表格单元格? [英] Possible to fill a table cell with a bg color?
本文介绍了可以用bg颜色填充表格单元格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个表单元格没有完全填充文本,所以bg颜色不覆盖整个单元格。我仍然希望整个表格单元格填充相同的颜色,而不使用整个表格上的背景颜色。
I have a table cell that isn't entirely filled with text so the bg color doesnt cover the entire cell. I still wish to have the entire table cell filled with the same color without using a background color on the whole table.
因此,可以填充整个单元格
So is it possible to fill the entire cell with a color without using background color on the whole table?
推荐答案
您可以为< td>
元素,然后使用该类的CSS background-color
属性分配bg颜色。
You could assign a class to the <td>
element and then assign a bg color using the CSS background-color
property for that class.
这篇关于可以用bg颜色填充表格单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文