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 :

[Debutant] Probleme chargement CSS externe


Sujet :

CSS

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Mai 2003
    Messages
    98
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2003
    Messages : 98
    Points : 50
    Points
    50
    Par défaut [Debutant] Probleme chargement CSS externe
    Bonjour,

    J'ai un problème de chargement de feuille de style externe suivante:
    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
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    .webfxGrid {
    	border-width: 1px;
    	border-style: solid;
    	border-color: threedshadow threedhighlight threedhighlight threedshadow;
    	width: 100%;
    	height: 100%;
    	overflow: hidden;
    }
     
    .webfxGridMainCorner {
    	position:     absolute;
    	top:          0px;
    	left:         0px;
    	width:        35px;
    	height:       19px;
    	overflow:     hidden;
    	background:   buttonface;
    	border-width: 1px;
    	border-style: solid;
    	border-color: threedhighlight threedshadow threedshadow threedhighlight;
    	cursor:       hand;
    	font:         menu;
    }
     
    .webfxGridMainCorner nobr {
    	width: 100%;
    	text-align: right;
    }
     
    .webfxGridMainCorner span {
    	position: absolute;
    	top: 1px;
    	left: 0px;
    	margin-left: 5px;
    	font-family: Marlett;
    }
     
    .webfxGridMainHeader {
    	height: 19px;
    	overflow: hidden;
    	background: buttonface;
    	position: absolute;
    	top: 0px;
    	left: 0px;
    }
     
    .webfxGridMainHeader span {
    	margin-left: 5px;
    	font-family: Marlett;
    }
     
    .webfxGridMainIdCol {
    	width: 35px;
    	overflow: hidden;
    	background: buttonface;
    	position: absolute;
    	top: 0px;
    	left: 0px;
    }
     
    .webfxGridMain {
    	width: 100%;
    	height: 100%;
    	background: buttonface;
    	overflow: scroll;
    	Scrollbar-3dlight-color: threedhighlight;
    	scrollbar-darkshadow-color: threedshadow;
    	scrollbar-highlight-color: buttonface;
    	scrollbar-shadow-color: buttonface;
    	scrollbar-face-color:#CCCCCC;
    	Scrollbar-track-color:#999999;
    	scrollbar-arrow-color:#666666;
    	/** Position de depart de la grille principale */
    	padding: 17px 0px 0px 34px;	
    }
     
    .webfxGridMain table, .webfxGridMainHeader table, .webfxGridMainIdCol table {
    	table-layout: fixed;
    	width: 100%;
    	empty-cells: show;
    }
     
    .webfxGridMain table {
    	border-width: 1px;
    	border-style: solid;
    	border-color: threedhighlight threedshadow threedshadow threedhighlight;
    	border-collapse: collapse;
    	background: window;
    }
     
    .webfxGridMain table td, .webfxGridMainHeader table td, .webfxGridMainIdCol table td {
    	font: menu;
    	empty-cells: show;
    	white-space: nowrap;
    	overflow: hidden;	
    }
     
    .webfxGridMain table td {
    	border-style: solid;
    	border-color: threedshadow;
    	border-width: 1px 1px 0px 0px;
    	height: 19px;
    	white-space: nowrap;
    	padding: 1px;
    }
     
    .webfxGridMain table td span {
    	display:       block;
    	width:         100%;
    	height:        100%;
    	white-space:   nowrap;
    	overflow:      hidden;
    	text-overflow: ellipsis;
    	font:          menu;
    	cursor:        hand;
    	padding:       0px;
    	border:        0px;
    	margin-left:   2px;
    	margin-top:    1px;
    }
     
    .webfxGridMain table tr.odd td {
    	background:    infobackground;
    }
     
    .webfxGridMain table tr.even td {
    	background:    Window;	
    }
     
    .webfxGridMain table tr.selected td {
    	border-style: solid;
    	border-color: threedshadow;
    	border-width: 1px 1px 0px 0px;
    	background:   #A9B2CA;
    	color:        windowtext;
    	padding:      0px;
    	text-align:   left;
    }
     
    .webfxGridMain table tr.selected td.verrouillerCellule {
    	border-style: solid;
    	border-color: threedshadow;
    	border-width: 1px 1px 0px 0px;
    	background:   #A9B2CA;
    	color:        windowtext;
    	padding:      0px;
    	text-align:   left;
    }
     
    .webfxGridMain table tr.verrouiller td {
    	border-style: solid;
    	border-color: threedshadow;
    	border-width: 1px 1px 0px 0px;
    	background:   #DDDDDD;
    	color:        #808080;
    	padding:      0px;
    	text-align:   left;
    }
     
    .webfxGridMain table tr td.verrouillerCellule {
    	border-style: solid;
    	border-color: threedshadow;
    	border-width: 1px 1px 0px 0px;
    	background:   #DDDDDD;
    	color:        #808080;
    	padding:      0px;
    	text-align:   left;	
    }
     
    .webfxGridMain table tr.survole td {
    	border-style: solid;
    	border-color: threedshadow;
    	border-width: 1px 1px 0px 0px;
    	background:   #C0C0FF;
    	color:        #0D12ED;
    	padding:      0px;
    	text-align:   left;	
    }
     
    .webfxGridMain table tr.selected td span {
      border-style: solid;
      border-color: window;
      border-width: 1px 0px 1px 0px;
      padding:      0px 1px 0px 1px;
      text-align: left;
    }
     
    .webfxGridMain table tr.selected td.verrouillerCellule span {
      border-style: solid;
      border-color: window;
      border-width: 1px 0px 1px 0px;
      padding:      0px 1px 0px 1px;
      text-align: left;
    }
     
    .webfxGridMain table tr.verrouiller td span {
      border-style: solid;
      border-color: window;
      border-width: 1px 0px 1px 0px;
      padding:      0px 1px 0px 1px;
      text-align: left;	
    }
     
    .webfxGridMain table tr td.verrouillerCellule span {
      border-style: solid;
      border-color: window;
      border-width: 1px 0px 1px 0px;
      padding:      0px 1px 0px 1px;
      text-align: left;	
    }
     
    .webfxGridMain table tr.selected td.selected {
     
    }
     
    .webfxGridMainHeader table td, .webfxGridMainIdCol table td {
    	border-width: 1px;
    	border-style: solid;
    	border-color: buttonhighlight buttonshadow buttonshadow buttonhighlight;
    }
     
    .webfxGridMainHeader table td {
    	height: 19px;
    	cursor: hand;
    }
     
    .webfxGridMainIdCol table td {
    	height: 19px;
    	padding: 0px 0px 2px 2px;
    	text-align: right;
    }
     
    .webfxGridBox {
    	position: absolute;
    	top: 0px;
    	left: 0px;
    	font: menu;
    	border: 0px;
    	display: none;
    	margin-top:    1px;
    }
     
    .webfxGridBoxSaisieCalendar {
    	position	: absolute;
    	top		: 0px;	
    	font		: menu;
    	border		: 0px;
    	height  	: 15px;
    	left		: 0px;
    	top		: 2px;
    	text-align	: center;
    }
     
    .webfxGridImgCalendar {
     
    }
     
    .webfxGridBoxSepCalendar {
    	position	: absolute;
    	top		: 0px;	
    	font		: menu;
    	border		: 0px;
    	height  	: 15px;
    	width		: 10px;
    	left		: 0px;
    	top		: 2px;
    	text-align	: center;
    }
     
    .webfxGridBoxCalendarMain {
    	position	: absolute;
    	top 		: 2px;
    	left 		: 0px;
    	font 		: menu;
    	border 		: 1px;
    	display 	: none;
    }
     
    .webfxGridBoxCalendar {
    	position	: absolute;
    	top     	: 2px;
    	left    	: 0px;
    	border  	: 1px;
    	width   	: 19px;
    	height  	: 15px;
    	align   	: right;
    	Cursor  	: hand;
    }
     
    .webfxGridBoxButton {
    	position:      absolute;
    	top     :      -2px;
    	border  :      0px;
    	width   :      16px;
    	height  :      19px;
    }
    Lorsque j'y fait référence, aucun style n'est appliqué.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    <html>
    <head>
    <title>Grid</title>
    <link href="commun/css/grid/grid.css" type="text/css" rel="stylesheet" />
    <script language="javascript">...
    Y'a-t-il un problème connu sous IE concernant ce type d'appel ou les CSS?
    Quelqu'un voit-il quelque chose que je ne vois pas?
    Merci d'avance,
    Je m'en fous, je suis fou!

  2. #2
    Modérateur
    Avatar de Bisûnûrs
    Profil pro
    Développeur Web
    Inscrit en
    Janvier 2004
    Messages
    9 868
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Janvier 2004
    Messages : 9 868
    Points : 16 258
    Points
    16 258
    Par défaut
    Ca fonctionne sur Firefox ?

    Si non, vérifie le chemin relatif de ton fichier.

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Mai 2003
    Messages
    98
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2003
    Messages : 98
    Points : 50
    Points
    50
    Par défaut
    En fait, mon appli doit fonctionner sous IE.
    Et le chemin relatif de mon fichier est correct...
    Mon fichier CSS est, à mes yeux, bien formé et sans erreur. Cela veindrait alors de l'appel?
    Lorsque je remplace l'appel par le contenu de grid.css, ca corrige le probleme, mais ca ne me plait pas!
    remplacer la ligne
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <link href="commun/css/grid/grid.css" type="text/css" rel="stylesheet"/>
    par
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <STYLE type="text/css">
    contenu du fichier grid.css
    </STYLE>
    Je m'en fous, je suis fou!

  4. #4
    Modérateur
    Avatar de Bisûnûrs
    Profil pro
    Développeur Web
    Inscrit en
    Janvier 2004
    Messages
    9 868
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Janvier 2004
    Messages : 9 868
    Points : 16 258
    Points
    16 258
    Par défaut
    Citation Envoyé par Carlito_superheros
    Lorsque je remplace l'appel par le contenu de grid.css, ca corrige le probleme, mais ca ne me plait pas!
    Donc ton chemin est mauvais.

  5. #5
    Membre du Club
    Profil pro
    Inscrit en
    Mai 2003
    Messages
    98
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2003
    Messages : 98
    Points : 50
    Points
    50
    Par défaut
    Pourtant lorsque je complete l'url en ajoutant:commun/css/grid/grid.css à la fin, ma CSS s'affiche à l'écran...

    Disons, que le probleme que je rencontre est un chargement incomplet de la css, mais un chargement quand même.
    Je m'en fous, je suis fou!

  6. #6
    Membre du Club
    Profil pro
    Inscrit en
    Mai 2003
    Messages
    98
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2003
    Messages : 98
    Points : 50
    Points
    50
    Par défaut
    Bon, apparement, cela viendrait du fait que la css est trop importante et que IE ne la charge pas entierement (bug IE connu).
    Donc, pour moi, la seule correction c'est de mettre le contenu de la css dans le fichier directement et non en appel externe.
    Je m'en fous, je suis fou!

  7. #7
    Membre habitué
    Profil pro
    Inscrit en
    Février 2005
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2005
    Messages : 154
    Points : 144
    Points
    144
    Par défaut
    essais peut etre avec cette facon de déclaré la css
    <style type="text/css">
    @import url(style.css);
    </style>

    j'ai lu qu'il y avait pas de grande difference avec l'autre mais sait on jamais

  8. #8
    Modérateur
    Avatar de blueice
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2003
    Messages
    3 487
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2003
    Messages : 3 487
    Points : 5 134
    Points
    5 134
    Par défaut
    Si effectivement ta feuille de style était trop longue, il suffit d'en faire plusieurs...
    -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_SIGNATURE -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
    Dans la mesure du possible, essayez de montrer votre problème en situation réelle en nous donnant une url, que l'on puisse tester.
    Pensez également à cocher

    Aucun problème ne doit être résolu en MP (Message Privé) le forum est là pour ça.

    Dimension Internet

  9. #9
    Membre du Club
    Profil pro
    Inscrit en
    Mai 2003
    Messages
    98
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2003
    Messages : 98
    Points : 50
    Points
    50
    Par défaut
    Citation Envoyé par Halukard
    essais peut etre avec cette facon de déclaré la css
    <style type="text/css">
    @import url(style.css);
    </style>

    j'ai lu qu'il y avait pas de grande difference avec l'autre mais sait on jamais
    Ca résoud mon problème!
    Le chargement ne doit pas être le même...
    En tout cas, merci!
    Je m'en fous, je suis fou!

  10. #10
    Modérateur
    Avatar de Bisûnûrs
    Profil pro
    Développeur Web
    Inscrit en
    Janvier 2004
    Messages
    9 868
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Janvier 2004
    Messages : 9 868
    Points : 16 258
    Points
    16 258
    Par défaut
    N'oublie pas de lire la signature de Blueice.

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

Discussions similaires

  1. Pb de chargement du css externe
    Par donsev dans le forum Mise en page CSS
    Réponses: 6
    Dernier message: 13/10/2007, 11h23
  2. [debutant] probleme chargement driver (jdbc, mysql)
    Par ADSL[fx] dans le forum JDBC
    Réponses: 9
    Dernier message: 12/03/2006, 12h10
  3. Réponses: 8
    Dernier message: 14/04/2005, 19h06
  4. [BP7] Problème chargement de ressource dans une DLL
    Par Alcatîz dans le forum Turbo Pascal
    Réponses: 11
    Dernier message: 26/07/2003, 21h36
  5. [debutant] Probleme pour dessiner un simple cube
    Par scorpiwolf dans le forum DirectX
    Réponses: 6
    Dernier message: 02/07/2003, 20h29

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