0
我使用这个代码:无法获得背景色HTML边境合作
<div style="width:850px;height:50px;padding:6px;border-width:4px;border-color:black;border-style:dotted hidden dotted hidden;margin-left: auto;margin-right: auto;">
<center><b>Net Worth:</B> <font color="green">€341,134.00</font> | <b>Distance Driven: </b><font color="lightgrey">10,610km</font> | <b>Employee Count:</b><font color="lightgrey"> 3</font></center></div>
但在我的网站上的一些原因,只要我有
background-color: rgba(0,0,0,.5);
<div style="width:850px;height:50px;padding:6px;border-width:4px;border-color:black;border-style:dotted hidden dotted hidden;margin-left: auto;margin-right: auto;background-color: rbga(0,0,0,.6);">
<center><b>Net Worth:</B> <font color="green">€341,134.00</font> | <b>Distance Driven: </b><font color="lightgrey">10,610km</font> | <b>Employee Count:</b><font color="lightgrey"> 3</font></center></div>
我的边框出现并且没有背景。但它在这个网站以外的其他地方都可以工作。为什么?我甚至尝试过使用“background:rbga(0,0,0,.6);”
从来没有注意到。它应该没关系,虽然是正确的?但是,这是一回事。旗帜消失,没有背景色 –