background-image 1 Toggle history 12 Toggle history 1 footnote Toggle history 3.5 Toggle history 1 Toggle history 18 Toggle history 4 footnote Toggle history 14 Toggle history 1 Toggle history 1.0 Toggle history 4.4 Toggle history 1 Toggle history ...
Image-related functions: linear-gradient() radial-gradient() conic-gradient() repeating-linear-gradient() repeating-radial-gradient() repeating-conic-gradient() <url> Using CSS gradients Implementing image sprites in CSS CSS imagesmodule Background-related properties ...
background将指定的背景属性设为明确给定的值,将没有指定的背景属性设为初始值。 初始值as each of the properties of the shorthand: background-image:none background-position:0% 0% background-size:auto auto background-repeat:repeat background-origin:padding-box ...
background: red url(bg-graphic.png) 10px 10px repeat-x fixed; 等同于 background-color: red; background-image: url(bg-graphic.png); background-position: 10px 10px; background-repeat: repeat-x; background-scroll: fixed; 选择器 简单选择器(Simple selectors):通过元素类型、class或者id匹配一...
The background-size CSS property sets the size of the element's background image. The image can be left to its natural size, stretched, or constrained to fit the available space.
The background-size CSS property sets the size of the element's background image. The image can be left to its natural size, stretched, or constrained to fit the available space.
51CTO博客已为您找到关于css background mdn的相关内容,包含IT学习相关文档代码介绍、相关教程视频课程,以及css background mdn问答内容。更多css background mdn相关解答可以来51CTO博客参与分享和学习,帮助广大IT技术人实现成长和进步。
width of the image, second value: height */ background-size: 50% auto; background-size: 3em 25%; background-size: auto 6px; background-size: auto auto; /* Multiple backgrounds values by background-image */ /* Do not confuse this with background-size: auto auto */ background-size...
The background-attachment CSS property sets whether a background image's position is fixed within the viewport, or scrolls with its containing block.
The background-position CSS property sets the initial position for each background image. The position is relative to the position layer set by background-origin.