
CSS background-color property - W3Schools
The background-color property sets the background color of an element. The background of an element is the total size of the element, including padding and border (but not the margin).
background-color - CSS | MDN
Nov 7, 2025 · The background-color CSS property sets the background color of an element.
CSS Backgrounds - W3Schools
CSS background-color The background-color property specifies the background color of an element.
CSS Colors - W3Schools
Color Names Supported by All Browsers All modern browsers support the following 140 color names (click on a color name, or a hex value, to view the color as the background-color along with different …
CSS Colors - W3Schools
CSS Colors In CSS, colors are specified by using a predefined color name, or with a RGB, HEX, HSL, RGBA, HSLA value.
background - CSS | MDN
Jan 9, 2026 · The background shorthand CSS property sets all background style properties at once, such as color, image, origin, size, and repeat method.
CSS background-color 属性 | 菜鸟教程
所有主要浏览器都支持background-color属性。 注意 IE7和更早的版本不支持"继承"的值。 IE8需要定义!DOCTYPE。 IE9支持"继承"。
CSS Color Functions
Jun 19, 2025 · All CSS color functions support the relative color syntax. The relative color syntax, simply put, is a way to access other colors in another color function or value, then translating it to the values …
CSS HEX Colors - W3Schools
3 Digit HEX Value Sometimes you will see a 3-digit hex code in the CSS source. The 3-digit hex code is a shorthand for some 6-digit hex codes. The 3-digit hex code has the following form: # rgb Where r, …
Background · Bootstrap v5.0
Background color Similar to the contextual text color classes, set the background of an element to any contextual class. Background utilities do not set color, so in some cases you’ll want to use .text-* …