-
Notifications
You must be signed in to change notification settings - Fork 328
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
[注解] [208] 连续的图像边框 #35
Labels
Comments
Open
张老师,您好。我是一名大三的学生。我最近阅读《CSS揭秘》第二张的时候发现了一个问题。 |
@KeithChou |
不客气
2017-08-06 18:46 GMT+08:00 CSS魔法 <[email protected]>:
… @galliliu <https://github.com/galliliu>
谢谢反馈,这相当于原书的一个错误,我稍后会更新到 勘误表
<#2> 中。
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#35 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFm9xAQKhU6Ku9gT1P9LRoiut5hT941pks5sVZmagaJpZM4IQCXS>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
花絮与注解
第 48 页 · 第一段
此时背景图片的显示尺寸取决于 padding box 的尺寸,原因在于元素设置了
background-size: cover
样式。这个属性的行为是在保持图片的宽高比不变的前提下,先把图片缩小至无穷小,再尝试逐渐拉伸图片,当图片刚刚好可以覆盖住元素时定形。说到 “覆盖住元素”,还是那句话,实际上需要覆盖住的是元素的 “背景定位区域”。而元素的背景定位区域是由
background-origin
属性来决定的,默认是padding-box
。交流与答疑
(暂无)
The text was updated successfully, but these errors were encountered: