We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
或者是 30°?又或者是 3.1415926535°?
咦?这个值不就是 π 嘛!当然这个值在这里并没有什么特殊意义,作者只是在卖萌。
这里的 background-size 是初始值,对渐变来说就是以整个元素的范围进行填充。
background-size
background-size 属性的初始值是 auto auto。此时,如果背景图像是普通位图,则 background-size 取图片本身的宽高;如果背景图像是渐变图案,则 background-size 取该元素的尺寸。
auto auto
准确地说,这里所谓的 “该元素的尺寸” 实际上是指元素的 “背景定位区域” 的尺寸。而元素的背景定位区域是由 background-origin 属性来决定的,默认是 padding-box。
background-origin
padding-box
(暂无)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
花絮与注解
第 31 页 · 第一行
咦?这个值不就是 π 嘛!当然这个值在这里并没有什么特殊意义,作者只是在卖萌。
第 31 页 · 倒数第三段
background-size
属性的初始值是auto auto
。此时,如果背景图像是普通位图,则background-size
取图片本身的宽高;如果背景图像是渐变图案,则background-size
取该元素的尺寸。准确地说,这里所谓的 “该元素的尺寸” 实际上是指元素的 “背景定位区域” 的尺寸。而元素的背景定位区域是由
background-origin
属性来决定的,默认是padding-box
。交流与答疑
(暂无)
The text was updated successfully, but these errors were encountered: