gpt4 book ai didi

html - 无法正确显示 HTML 表格和颜色

转载 作者:太空宇宙 更新时间:2023-11-04 03:39:52 27 4
gpt4 key购买 nike

http://www.acuity-sports.com/baseball-softball/batting-cages/custom-netting/1-8-mm-barrier-net.html

不确定为什么表格和背景颜色没有显示在描述字段中。

最佳答案

在你的http://www.acuity-sports.com/skin/frontend/default/sm_sport/css/addons.css CSS 文件,你有这段代码:

body, 
html, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, button,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
background: transparent;
}

background: transparent; 属性导致了您的问题,因此请将其删除..

或者使用 CSS 而不是 HTML 将背景颜色添加到您的单元格中,因此而不是:

<td bgcolor="#FF0000" style="text-align: center;">
<strong>&nbsp; &nbsp; CN250 &nbsp; &nbsp;</strong>
</td>

使用这个:

<td style="text-align: center; background: #FF0000;">
<strong>&nbsp; &nbsp; CN250 &nbsp; &nbsp;</strong>
</td>

希望对你有帮助

关于html - 无法正确显示 HTML 表格和颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25061403/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com