所以我現在扔進CSS3動畫,所以我現在正在玩它。但不幸的是,我在將bg圖片放在底部時遇到了一個問題。Twitter Bootstrap身體背景與CSS3動畫
這是代碼我工作:
body {
margin: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 20px;
color: #333333;
background: #A9D0F5 url("../image/bg-clouds.png") repeat-x fixed center bottom;
animation: animatedBackground 40s linear infinite;
-ms-animation: animatedBackground 40s linear infinite;
-moz-animation: animatedBackground 40s linear infinite;
-webkit-animation: animatedBackground 40s linear infinite;
/*background-color: #008bcf;*/
}
@-keyframes animatedBackground {
from { background-position: 0 0; }
to { background-position: 100% 0; }
}
@-webkit-keyframes animatedBackground {
from { background-position: 0 0; }
to { background-position: 100% 0; }
}
@-ms-keyframes animatedBackground {
from { background-position: 0 0; }
to { background-position: 100% 0; }
}
@-moz-keyframes animatedBackground {
from { background-position: 0 0; }
to { background-position: 100% 0; }
}
什麼,似乎這裏是什麼問題?有任何想法嗎?謝謝。
這是的jsfiddle:http://jsfiddle.net/Rex2E/
爲什麼不把jsfiddle放在一起幫助我們更快地幫助你? – sulfureous
加了一個,請檢查。 –
相關問題:http://stackoverflow.com/questions/5383438/keeping-background-image-at-bottom –