Give a Background Color to a Div Element - zilongxuan001/LearnFreecode GitHub Wiki

理解

<style></style>设置class

<style>
     .silver-background{
    background-color:silver;
  }
</style>

在HTML里设置

<div class="background-color">
</div>

浏览器显示如下

image

来源

Basic CSS: Give a Background Color to a div Element | Learn freeCodeCamp

CHANGELOG

2018-9-29 17:08:43

⚠️ **GitHub.com Fallback** ⚠️