Skip to content
New issue

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

[注解] [205] 条纹背景 #34

Open
cssmagic opened this issue Apr 26, 2016 · 0 comments
Open

[注解] [205] 条纹背景 #34

cssmagic opened this issue Apr 26, 2016 · 0 comments
Labels

Comments

@cssmagic
Copy link
Owner

cssmagic commented Apr 26, 2016

花絮与注解

第 31 页 · 第一行

或者是 30°?又或者是 3.1415926535°?

咦?这个值不就是 π 嘛!当然这个值在这里并没有什么特殊意义,作者只是在卖萌。

第 31 页 · 倒数第三段

这里的 background-size 是初始值,对渐变来说就是以整个元素的范围进行填充。

background-size 属性的初始值是 auto auto。此时,如果背景图像是普通位图,则 background-size 取图片本身的宽高;如果背景图像是渐变图案,则 background-size 取该元素的尺寸。

准确地说,这里所谓的 “该元素的尺寸” 实际上是指元素的 “背景定位区域” 的尺寸。而元素的背景定位区域是由 background-origin 属性来决定的,默认是 padding-box

交流与答疑

(暂无)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant