-1
CSS Syntax:
background: color position size repeat origin clip attachment image|initial|inherit;
有了這個CSS規則我有白色背景:W3Schools的背景簡短的命令參考
<style>
body
{
background: #00ff00 url('smiley.gif') no-repeat fixed cover center;
}
</style>
有什麼不對?任何想法?我嘗試使用短背景命令設置背景大小的封面?
你能不能做一個小提琴:jsfiddle.net? –
是的,你正在使用w3schools。使用MDN,而不是:https://developer.mozilla.org/en-US/docs/Web/CSS/background – j08691
http://jsfiddle.net/sLD5j/所以我知道它確定,但不與蓋工作? – user3327101