IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Mise en page CSS Discussion :

background-image ne s'affiche pas sur ipad


Sujet :

CSS

  1. #1
    Membre régulier
    Homme Profil pro
    Educateur spécialisé
    Inscrit en
    Janvier 2012
    Messages
    208
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Educateur spécialisé
    Secteur : Santé

    Informations forums :
    Inscription : Janvier 2012
    Messages : 208
    Points : 118
    Points
    118
    Par défaut background-image ne s'affiche pas sur ipad
    Bonjour à tous et à toutes,

    Je viens aujourd'hui vous demander de l'aide car j'ai fait un design parallaxe sur mon site mais problème les images de fond en background-image ne s'affiche pas.

    Auriez vous un tuyau ?

    Voici mon css
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    /*PARALLAX*/
    #conteneur_wrap {
        margin: 0 0 0 0;
        padding: 0;
    }
    #slide1 a:link, #slide2 a:link, #slide3 a:link, #slide4 a:link, #slide1 a:visited, #slide2 a:visited, #slide3 a:visited, #slide4 a:visited, #slide1 a:active, #slide2 a:active, #slide3 a:active, #slide4 a:active {
        color:#000;
    }
    #slide1 a:hover, #slide2 a:hover, #slide3 a:hover, #slide4 a:hover, #slide1 a:focus, #slide2 a:focus, #slide3 a:focus, #slide4 a:focus {
        color:#87ceeb; 
    }
    /* Wrapper */
    #wrap {
        position: relative;
        top:0;
        -webkit-transition: top 1.4s cubic-bezier(.49,.22,.52,1);
        -moz-transition: top 1.4s cubic-bezier(.49,.22,.52,1.35);
        -ms-transition: top 1.4s cubic-bezier(.49,.22,.52,1.35);
        -o-transition: top 1.4s cubic-bezier(.49,.22,.52,1.35);
        transition: top 1.4s cubic-bezier(.49,.22,.52,1.35);
    }
    /* slides */
    #slide1, #slide2, #slide3, #slide4 {
        -webkit-transition: background-position 1.4s  cubic-bezier(.49,.22,.52,1);
        -moz-transition: background-position 1.4s cubic-bezier(.49,.22,.52,1.35);
        -ms-transition: background-position 1.4s  cubic-bezier(.49,.22,.52,1.35);
        -o-transition: background-position 1.4s  cubic-bezier(.49,.22,.52,1.35);
        transition: background-position 1.4s  cubic-bezier(.49,.22,.52,1.35);
        -webkit-background-size:cover;
        -moz-background-size:cover;
        -o-background-size:cover;
        -ms-background-size:cover;
        background-size:cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
    /* Slides contents */
    .slide_inside {
        color:#111;
        width:96%;
        margin:0 auto;
        position: relative;
        padding:1% 2%;
    }
    #slide1 {
        background-position:top;
        z-index:-5;
    }
    #slide1 .slide_inside {
        background-color:transparent;
        height:auto;
        z-index:5;
    }
    #slide2 {
        background-position:top;
        z-index:0;
        }
    #slide2 .slide_inside h1 {
        color: #111;
        font-size: 2rem;
        z-index:-5;
    }
    #slide2 .slide_inside {
        background-color:#fff;
        color: #777;
        height:auto;
        font-size: 1rem;
        text-align:center;
    }
    #slide2 .slide_inside_titre h2 {
        background-color:transparent;
        color: #fff;
        font-size: 2rem;
        text-align:center;
        z-index:-5;
    }
    #slide3 {
        background-position:top;
        z-index:1;
        }
    #slide3 .slide_inside {
        height:auto;
        text-align:center;
        background-color:#111;
        font-size: 1rem;
        color: #fff;
    }
    #slide3 .slide_inside_titre h3 {
        color: #777;
        font-size: 2rem;
        text-align:center;
        z-index:-5;
    }
    #slide4 {
        background-position:bottom;
        z-index:-1;
        }
    #slide4 .slide_inside {
        background-color:#fff;
        height:auto;
        font-size: 1rem;
        color: #777;
    }
    #slide4 .slide_inside h4{
        font-size: 2rem;
        margin:0 auto;
        color: #111;
    }
    #slide4 .bt_devis {
        margin-top:150px;
        margin:0 auto;
    }
    @media only screen and (min-width: 1200px) {
        #slide1 {
            height:750px;
            background-image:url(../images/defilement/img1200px/fond_bleu.png);
        }
        #slide1 .slide_inside {top:300px;}
        #slide2 {
            height:700px;
            background-image: url(../images/defilement/img1200px/fond_vert.png);
            }
        #slide2 .slide_inside_titre h2 {margin-top:200px;}
        #slide3 {
            height:650px;
            background-image: url(../images/defilement/img1200px/fond_jaune.png);
            }
        #slide3 .slide_inside_titre h3 {margin-top:200px;}
        #slide4 {
            height:650px;
            background-image:url(../images/defilement/img1200px/fond_bleu.png);
            }
        #slide4 .bttn_unite {margin-top:200px;}
    }
    @media only screen and (min-width: 960px) and (max-width: 1199px) {
        #slide1 {
            height:600px;
            background-image:url(../images/defilement/img960px/fond_bleu.png);
        }
        #slide1 .slide_inside {top:200px;}
        #slide2 {
            height:500px;
            background-image: url(../images/defilement/img960px/fond_vert.png);
            }
        #slide2 .slide_inside_titre h2 {margin-top:100px;}
        #slide3 {
            height:700px;
            background-image: url(../images/defilement/img960px/fond_jaune.png);
            }
        #slide3 .slide_inside_titre h3 {margin-top:200px;}
        #slide4 {
            height:650px;
            background-image:url(../images/defilement/img960px/fond_bleu.png);
            }
        #slide4 .bttn_unite {margin-top:130px;}
    }
    @media only screen and (min-width: 768px) and (max-width: 959px) {
        #slide1 {
            height:500px;
            background-image:url(../images/defilement/img760px/fond_bleu.png);
        }
        #slide1 .slide_inside {top:200px;}
        #slide2 {
            height:600px;
            background-image: url(../images/defilement/img760px/fond_vert.png);
            }
        #slide2 .slide_inside_titre h2 {margin-top:150px;}
        #slide3 {
            height:600px;
            background-image: url(../images/defilement/img760px/fond_jaune.png);
            }
        #slide3 .slide_inside_titre h3 {margin-top:130px;}
        #slide4 {
            height:650px;
            background-image:url(../images/defilement/img760px/fond_bleu.png);
            }
        #slide4 .bttn_unite {margin-top:150px;}
    }
    @media only screen and (min-width: 480px) and (max-width: 767px) {
        #slide1 {
            height:500px;
            background-image:url(../images/defilement/img480px/fond_bleu.png);
        }
        #slide1 .slide_inside {top:170px;}
        #slide2 {
            height:700px;
            background-image: url(../images/defilement/img480px/fond_vert.png);
            }
        #slide2 .slide_inside_titre h2 {margin-top:150px;}
        #slide3 {
            height:800px;
            background-image: url(../images/defilement/img480px/fond_jaune.png);
            }
        #slide3 .slide_inside_titre h3 {margin-top:150px;}
        #slide4 {
            height:700px;
            background-image:url(../images/defilement/img480px/fond_bleu.png);
            }
        #slide4 .bttn_unite {margin-top:150px;}
    }
    @media only screen and (max-width: 479px) {
    #slide1 {
            height:500px;
            background-image:url(../images/defilement/img350px/fond_bleu.png);
        }
        #slide1 .slide_inside {top:170px;}
        #slide2 {
            height:800px;
            background-image: url(../images/defilement/img350px/fond_vert.png);
            }
        #slide2 .slide_inside_titre h2 {margin-top:130px;}
        #slide3 {
            height:950px;
            background-image: url(../images/defilement/img350px/fond_jaune.png);
            }
        #slide3 .slide_inside_titre h3 {margin-top:200px;}
        #slide4 {
            height:800px;
            background-image:url(../images/defilement/img350px/fond_bleu.png);
            }
        #slide4 .bttn_unite {margin-top:200px;}
    }
    Merci d'avance, je continu mes recherche sur Google.

  2. #2
    Modérateur
    Avatar de ProgElecT
    Homme Profil pro
    Retraité
    Inscrit en
    Décembre 2004
    Messages
    6 077
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 68
    Localisation : France, Haute Savoie (Rhône Alpes)

    Informations professionnelles :
    Activité : Retraité
    Secteur : Communication - Médias

    Informations forums :
    Inscription : Décembre 2004
    Messages : 6 077
    Points : 17 185
    Points
    17 185
    Par défaut
    Salut

    D’habitude je mets des guillemets pour l'Url
    background-image:url(../images/defilement/img1200px/fond_bleu.png);.
    background-image:url("../images/defilement/img1200px/fond_bleu.png");.
    Il me vaudra vérifier si cela fait sans.
    Soyez sympa, pensez -y
    Balises[CODE]...[/CODE]
    Balises[CODE=NomDuLangage]...[/CODE] quand vous mettez du code d'un autre langage que celui du forum ou vous postez.
    Balises[C]...[/C] code intégré dans une phrase.
    Balises[C=NomDuLangage]...[/C] code intégré dans une phrase quand vous mettez du code d'un autre langage que celui du forum ou vous postez.
    Le bouton en fin de discussion, quand vous avez obtenu l'aide attendue.
    ......... et pourquoi pas, pour remercier, un pour celui/ceux qui vous ont dépannés.
    👉 → → Ma page perso sur DVP ← ← 👈

  3. #3
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    16 959
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 16 959
    Points : 44 122
    Points
    44 122
    Par défaut
    Bonjour,
    Citation Envoyé par Sergio_zero
    les images de fond en background-image ne s'affiche pas
    vérifie le chemin par rapport à l’emplacement du fichier CSS.


    Citation Envoyé par ProgElecT
    Il me vaudra vérifier si cela fait sans.
    il n'y pas de raison, tu devrais avoir le même résultat

  4. #4
    Membre régulier
    Homme Profil pro
    Educateur spécialisé
    Inscrit en
    Janvier 2012
    Messages
    208
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Educateur spécialisé
    Secteur : Santé

    Informations forums :
    Inscription : Janvier 2012
    Messages : 208
    Points : 118
    Points
    118
    Par défaut
    Problème résolu,
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    -webkit-background-size: 100% 100%;
    Merci quand même

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. background qui ne s'affiche pas sur ipad
    Par kOrt3x dans le forum Mise en page CSS
    Réponses: 0
    Dernier message: 14/01/2013, 18h21
  2. pourquoi mon image ne s'affiche pas sur IE
    Par Ercan67000 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 22/06/2011, 12h31
  3. image ne s'affiche pas sur IE à cause du height et width
    Par akara dans le forum Mise en page CSS
    Réponses: 7
    Dernier message: 15/11/2010, 15h29
  4. quelques images ne s'affichent pas sur Free
    Par ikhor dans le forum Dreamweaver
    Réponses: 0
    Dernier message: 05/10/2010, 14h13
  5. [CSS] background-image ne s'affiche pas
    Par Ghost Warrior dans le forum Mise en page CSS
    Réponses: 4
    Dernier message: 25/12/2005, 01h29

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo