身体与html中的表格混合的背景 [英] background of body mixing with the table in html
本文介绍了身体与html中的表格混合的背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使我的正文背景与表格分开.问题是当我在html正文上实现背景时.它也将与表混合.
谁能告诉我正确的方法呢? y它是否也与表混合?
i want want to make my body background separate from the table .. the problem is that when i implement the background on the body of the html. it will also mixed with the table.
can any one tell me the right way to do it.?? y is it mixing with the table too??
推荐答案
表正在获取主体的背景,因为它位于主体元素中,所有内容都在其中.如果您希望表格具有不同的背景,则可以将重要修饰符与表格背景css一起使用,或者将该表格放在一个块元素(例如div)中,然后将CSS应用于该元素.
The table is picking up the background of the body because it is in the body element, everything is. If you want the table to have a seperate background either use the Important modifier with the table background css or place the table within a block element, such as a div, and apply the CSS to it.
这篇关于身体与html中的表格混合的背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文