3

我希望我的元素具有背景色填充,我尝试了以下方法但没有成功,如何对其应用颜色填充?谢谢

<nav id="Nav" bgcolor="#000000">
        <a href="index.html">Home</a> |
        <a href="Gallery.html">Library</a> |
        <a href="Contact.html">Contact</a> |
        <a href="About.html">About</a>
</nav>
4

1 回答 1

7
<nav id="Nav" style="background:#000000;">
    <a href="index.html">Home</a> |
    <a href="Gallery.html">Library</a> |
    <a href="Contact.html">Contact</a> |
    <a href="About.html">About</a>
</nav>
于 2013-10-27T09:55:33.297 回答