Possible to fill a table cell with a bg color?

六眼飞鱼酱① 提交于 2019-12-13 15:37:51

问题


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?


回答1:


You could assign a class to the <td> element and then assign a bg color using the CSS background-color property for that class.



来源:https://stackoverflow.com/questions/1041833/possible-to-fill-a-table-cell-with-a-bg-color

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!