0
私は、スクロールの写真のバナーを作成しようとしています。それはアンドロイドとiphoneでIE、Safari(モバイル)、およびクロムに取り組んでいます。デスクトップ上で動作していないか、クロムデバイスのデスクトップサイトをリクエストしても動作しません。私はこれを理解しようと数時間を過ごしましたが、それはまったく解決できません。 これは、何かが私のポストに間違っているので、もし私と一緒に負担してください質問をして、私の最初の時間です。あなた@keyframes(IE /クロームモバイル全てOK)
#container {
width: 100%;
overflow: hidden;
margin: 5px;
background: white;
}
.photobanner {
height: 350px;
width: 3550px;
margin-bottom: 10px;
}
.photobanner img {
margin: 10px;
max-height: 300px;
margin-top: 30px;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
transition: all 0.5s ease;
}
/*keyframe animations*/
.first {
-webkit-animation: bannermove 30s linear infinite;
animation: bannermove 30s linear infinite;
}
@keyframes "bannermove" {
0% {
margin-left: 0px;
}
100% {
margin-left: -2125px;
}
}
@-webkit-keyframes "bannermove" {
0% {
margin-left: 0px;
}
100% {
margin-left: -2125px;
}
}
/* Landscape phones and down */
@media (max-width: 750px) {#container {
width: 100%;
overflow: hidden;
margin: 5px 5px;
background: white;
}
.photobanner {
height: 160px;
width: 3550px;
margin-bottom: 5px;
}
.photobanner img {
margin: 5px;
max-height: 150px;
margin-top: 5px;
}
}
あなたがHTMLの投稿および/またはhttps://jsfiddle.net上のコードの実行可能な量を入れて気にしませんか? – wpalmes
HI、私はjsfiddleを使用していませんでした謝罪はそう – Emylou
:)多くのおかげであなたが引用符なしでキーフレームを試してみましたhttps://jsfiddle.net/Emylou/6am9qnfa/ ....このリンクが動作します願っていますか? – skobaljic