The color CSS property sets the foreground color value of an element's text and text decorations, and sets the currentcolor value. currentcolor may be used as an indirect value on other properties and is the default for other color properties, such as bo
The <color> CSS data type represents a color. A <color> may also include an alpha-channel transparency value, indicating how the color should composite with its background.
See also Multiple backgrounds The<color>data type Other color-related properties:color,border-color,outline-color,text-decoration-color,text-emphasis-color,text-shadow,caret-color, andcolumn-rule-color
The color-index CSS media feature can be used to test the number of entries in the output device's color lookup table.
border-right-color: red; border-right-color: rgb(255, 128, 0); border-right-color: hsla(100%, 50%, 25%, 0.75); border-right-color: #ffbb00; border-right-color: currentColor; border-right-color: transparent; border-right-color: inherit; ...
The border-top-color CSS property sets the color of an element's top border. It can also be set with the shorthand CSS properties border-color or border-top.
The -webkit-text-stroke-color CSS property specifies the stroke color of characters of text. If this property is not set, the value of the color property is used.
<style>@mediascreenand(max-width:360px),/* 多个或的条件使用逗号隔开就行了 */screenand(min-width:480px){div{color:green;font-weight:bolder;}}</style> 完整语法 `@medianot或only或不写mediatype或不写(不写就默认screen)and(mediafeature媒体特性){相应css语句} ...
引用:aspect-ratio | MDN caret-color 来定义插入光标的颜色。 这在需要凸显鼠标聚焦的时候,就非常有...
The content behind MDN Web Docs. Contribute to mdn/content development by creating an account on GitHub.