您的瀏覽器可能不支持前綴不變的屬性。嘗試使用供應商前綴:
html, body {
min-height: 100%
}
body {
background-color: gray;
background-image: -webkit-repeating-linear-gradient(135deg, transparent, transparent 35px, rgba(255,255,255,.5) 35px, rgba(255,255,255,.5) 70px);
background-image: -moz-repeating-linear-gradient(135deg, transparent, transparent 35px, rgba(255,255,255,.5) 35px, rgba(255,255,255,.5) 70px);
background-image: -ms-repeating-linear-gradient(135deg, transparent, transparent 35px, rgba(255,255,255,.5) 35px, rgba(255,255,255,.5) 70px);
background-image: -o-repeating-linear-gradient(135deg, transparent, transparent 35px, rgba(255,255,255,.5) 35px, rgba(255,255,255,.5) 70px);
background-image: repeating-linear-gradient(135deg, transparent, transparent 35px, rgba(255,255,255,.5) 35px, rgba(255,255,255,.5) 70px);
}
小提琴:http://jsfiddle.net/fefhz/7/
好了,我沒有正確的答案,但這個工具是非常寶貴的,我:http://www.colorzilla.com/gradient -editor/ – uotonyh
我一直在玩漸變編輯器,但我不想創建漸變背景..我試圖創建一個背景圖案。 – 7ch5