body{ background-color: red; }Set the background color for a page by color code:body{ background-color: #ff00ff; }Example for changing background color of an elements using CSSIn the below-given example, we are setting the background color of the elements in a webpage along with the...
background-color: red; } .c-right-bottom{ position: absolute; right:0; bottom:0; width:100px; height:70px; border:2pxsolid green; background-image: inherit; background-repeat: no-repeat; background-position: center; } .un-image-wrapper{ width:100px; height:70px; } .wrapper1{ back...
CSS属性中的 background-color 会设置元素的背景色, 属性的值为颜色值或关键字"transparent"二者选其一 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 /* Keyword values */ background-color: red; /* Hexadecimal value */ background-color: #bbff...
CSS 中定义 .outer{background-color:red} 表示的是A.网页中某一个 id 为 outer 的元素的背景色是红色的B.网页中含有 class= " outer "的元素的背景色是红色的C.网页中元素名为 outer 元素的背景色是红色的D.网页中含有 class= " .outer " 的元素的背景色是红色的...
cssCopy to Clipboard /* Keyword values */ background-color: red; background-color: indigo; /* Hexadecimal value */ background-color: #bbff00; /* Fully opaque */ background-color: #bf0; /* Fully opaque shorthand */ background-color: #11ffee00; /* Fully transparent */ background-...
背景颜色 | background-color (Backgrounds & Borders) - CSS 中文开发手册 CSS属性中的 background-color 会设置元素的背景色, 属性的值为颜色值或关键字"transparent"二者选其一 /* Keyword values */background-color: red; /* Hexadecimal value */ background-color: #bbff00; /* Hexadecimal value with...
CSS 中定义 .outer{background-color:red} 表示的是 A. 网页中某一个 id 为 outer 的元素的背景色是红色的 B. 网页中含有 class= " outer "的元素的背景色是红色的 C. 网页中元素名为 outer 元素的背景色是红色的 D. 网页中含有 class= " .outer " 的元素的背景色是红色的 ...
color nameName of the background color (ie: red, blue, black, white) div { background-color: red; } transparentIndicates that the element shows the background-color of the element behind it. The default value for CSS background-color is transparent. ...
Body background color In CSS the background is considered to be the width and height of an element, plus any padding and borders (but not margins). Using the CSS background-color property we can color the background of our HTML page red. HTML body...
RGB values: RGB is another color model based on the combination of the primary colors red, green, and blue. Composed of three numbers separated by commas, each represents the intensity of the respective primary color as an integer between 0 and 255. Black is RGB (0, 0, 0), red is RGB...