css - CSS 中的背景属性

标签 css background

background:#777777 none repeat scroll 0 0;

它包含的5个属性是background-color,background-image,background-repeat,background-attachment和background-position。

我的问题是:

如果背景图像为无,背景重复、背景附件和背景位置是否无用? 因为根据文档,这些都是用来改变背景图像的。

最佳答案

是的。没有它,它们就没有意义。

关于css - CSS 中的背景属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1040580/

相关文章:

css - 更改单选按钮的颜色(默认并选中)

HTMLTable : Empty link element should take up whole cell space

css - 背景图像应调整到内部的 div

ios - 如果已为 UIBackgroundModes 注册了位置,iOS 会唤醒已终止的应用程序吗?

html - 将 div 附加到相对于背景的精确位置(大小为 : cover)

CSS - 不确定此值当前是否对溢出属性有效

html - 文本溢出在水平框方向的框显示中不起作用

javascript - 使用javascript jquery将html附加到具有指定类的按钮最接近的div

html - 背景 : url(); not working

ios - 如果使用 beginBackgroundTaskWithExpirationHandler IOS,应用程序将被杀死