Twitter引导表透明css问题
所以我有一个从SQL数据库生成的表。它具有以下特点:Twitter引导表透明css问题,css,twitter-bootstrap,Css,Twitter Bootstrap,所以我有一个从SQL数据库生成的表。它具有以下特点: <table id="Email" width="725px" height="780" border="0" cellpadding="0"cellspacing="0" bgcolor="#551155"> 如您所见,它将表格的背景设置为透明。有没有一个聪明的方法来克服这个问题?不修改HTML输出或引导文件 我尝试在我的override css样式文件中创建另一个类,但除了inherit之外,我看不到为背景色设置的很多选项
<table id="Email" width="725px" height="780" border="0" cellpadding="0"cellspacing="0" bgcolor="#551155">
如您所见,它将表格的背景设置为透明。有没有一个聪明的方法来克服这个问题?不修改HTML输出或引导文件
我尝试在我的override css样式文件中创建另一个类,但除了inherit之外,我看不到为背景色设置的很多选项
谢谢大家! 只需不添加
bgcolor
属性,它现在已被弃用。你应该做的是:
.set bg{
背景色:#551155;
...
}
table {
max-width: 100%;
background-color: transparent;
border-collapse: collapse;
border-spacing: 0;
}