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 :

lightbox + IE + <select >


Sujet :

CSS

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    48
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mai 2006
    Messages : 48
    Par défaut lightbox + IE + <select >
    Bonjour,

    Mon code fonctionne très bien sous IE8, FF, Google Chrome. Par contre j'ai un souci avec IE 6.
    Sur ma page web lorsqu'on clique sur "viewmag.gif" cela fait apparaitre une lightbox. En IE 6, les listes déroulantes sur la page principale reste en avant plan lorsque la lightbox est visible.

    Est-ce que qqu'un sait me dire comment éviter ce bug en IE6...?

    la page principale:


    avec IE8:


    avec IE6:


    Voici le code de la page principale:

    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
     
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
      <meta http-equiv="content-type" content="text/html; charset=windows-1250">
      <meta name="generator" content="PSPad editor, www.pspad.com">
      <link href="style/service_stock.css" rel="stylesheet" type="text/css" />
      <title></title>
      </head>
      <body>
     
    <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
    <table cellspacing=0  >
      <tr>
        <td width="92">
          <p ><strong>Merk</strong>
          </p></td>
        <td width="244">
          <select OnChange="submit();" name="brandChoice" size="1">
            <option value='Item1'>Item1
            </option>
            <option value='Item2'>Item2
            </option>
            <option value='Item3'>Item3
            </option>
          </select></td>
        <td width="78">
          <p class="txt_form"><strong>Produkt</strong>
          </p></td>
        <td width=376>		
          <select OnChange="submit();" name="productChoice" size="1" style="width:330px">
            <option value='(filter wegnemen)' selected>(filter wegnemen)
            </option>
            <option value='Produkt 01'>Produkt 01
            </option>
            <option value='Produkt 02'>Produkt 02
            </option>
            <option value='Produkt 03'>Produkt 03
            </option>
            <option value='Produkt 04'>Produkt 04
            </option>
          </select></td>
      </tr>
    </table>
    <table cellspacing=0 style="border:none"> 
      <tr><td></td>
      </tr>
    </table>
     
      <div id="filter"></div>
      <div id="details" class="box">
      <div class="boxcontent">
      <h3 class="titre">Ma light box!</h3>
      <span class="boxclose" onclick="document.getElementById('details').style.display='none';document.getElementById('filter').style.display='none';"></span>
      </div>
      </div>
     
      <a href="#" onclick="document.getElementById('filter').style.display='block';document.getElementById('details').style.display='block'"> 
      <img src="images/viewmag.gif" width="16" height="16" />
      </a>
     
      </body>
    </html>


    Et le code 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
    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
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
     
    @charset "UTF-8";
    /* CSS Document */
     
    * {
    margin:0;
    padding:0;
    border:none;
    }
     
    body {
    	background-color: #b19f9d;
    	background-image: url(../images/banner_BG.gif);
    	background-repeat: repeat-x;
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 11px;
    }
    #banner {
    	width: 926px;
    	background-image: url(../images/banner.gif);
    	height: 116px;
    	background-repeat: no-repeat;
    	border-top-style: none;
    	border-right-style: none;
    	border-bottom-style: none;
    	border-left-style: none;
    	margin: auto;
    }
    #banner #icone_TOP {
    	height: 60px;
    	width: 337px;
    	float: right;
    	text-align: right;
    }
    #banner #ariane {
    	height: 56px;
    	width: 337px;
    	float: right;
    }
    #banner #ariane p {
    	margin-top: 15px;
    	color: #dadbdb;
    }
    #banner #ariane a {
    	color: #b19f9d;
    	text-decoration: underline;
    }
    #icone_TOP a {
    	color: #f1f2f1;
    	text-decoration: underline;
    	font-size: 11px;
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    }
    #wrapper {
    }
    #menu {
    	height: 32px;
    	width: 926px;
    	background-repeat: no-repeat;
    	background-position: right;
    	margin: auto;
    	clear: both;
    }
    #wrapper #menu ul {
    	list-style-type: none;
    }
    #wrapper #menu li {
    	display: inline;
    }
    #page {
    	background-color: #FFFFFF;
    	width: 100%;
    }
    #page #contenu {
    	margin: auto;
    	width: 926px;
    	background-repeat: repeat-y;
    	background-color: #FFFFFF;
    }
    #page #contenu #gauche {
    	width: 926px;
    	background-image: url(../images/bas_gauche.gif);
    	background-repeat: no-repeat;
    	background-position: left bottom;
    	padding-bottom: 35px;
    }
    .module_bouton .toptab {
    	font-weight: bold;
    	color: #FFFFFF;
    	background-color: #807472;
    	padding-top: 3px;
    	padding-right: 0px;
    	padding-bottom: 0px;
    	padding-left: 3px;
    }
    #page #contenu #droite {
    	width: 337px;
    	float: left;
    	padding-top: 25px;
    }
    #gauche h3 {
    	padding-left: 25px;
    	font-size: 18px;
    	color: #807472;
    }
    #gauche .txt_content a {
    	color: #807472;
    	text-decoration: underline;
    }
    .textenews h4 {
    	color: #303234;
    	font-size: 12px;
    	font-weight: bold;
    }
    .news .textenews {
    	color: #303234;
    	margin-bottom: 25px;
    }
    #gauche .titre {
    	color: #4b4d4f;
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 16px;
    	margin-bottom: 15px;
    }
    #gauche  #zone_login {
    	width: 350px;
    	padding: 25px;
    	margin-left: 25px;
    	border: 1px solid #CCCCCC;
    	margin-top: 15px;
    	margin-bottom: 25px;
    }
    .gauchelien {
    	font-size: 12px;
    	font-weight: bold;
    	color: #b19f9d;
    	text-decoration: underline;
    	margin-left: 25px;
    }
    .gauchelien a {
    	color: #829BD2;
    }
    .photonews    {
    	float: right;
    	height: 100px;
    	width: 100px;
    	margin-bottom: 8px;
    	margin-left: 8px;
    }
    #droite .news {
    	padding-right: 25px;
    	padding-bottom: 25px;
    	padding-left: 25px;
    	height: 300px;
    }
    #gauche .selectiondroite {
    	margin-bottom: 25px;
    }
    .textenews .list li {
    	font-weight: bold;
    	font-size: 11px;
    	margin-bottom: 8px;
    	color: #5A76B2;
    	list-style-image: url(../images/bullet_blue.gif);
    }
    .textenews .list {
    	margin-left: 25px;
    }
    .textenews .list .sousliste {
    	margin-left: 15px;
    }
    .textenews .list .sousliste li {
    	font-weight: normal;
    	margin-bottom: 3px;
    	color: #4D4D4E;
    	list-style-image: url(../images/bullet_gris.gif);
    }
    #gauche #contenu_zoneclient {
    	margin-left: 25px;
    	margin-right: 10px;
    }
    #gauche .txt_content {
    	padding-left: 25px;
    	padding-right: 50px;
    	margin-bottom: 12px;
    	padding-top: 0px;
    	padding-bottom: 0px;
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	color: #3f434a;
    	font-size: 12px;
    	line-height: 1.4em;
    }
    #module  {
    	width: 900px;
    }
    #module  .txt_form_grand  {
    	margin-top: 0px;
    	margin-right: 0px;
    	margin-bottom: 0px;
    	margin-left: 0px;
    	font-size: 13px;
    	color: #829BD2;
    }
    #module  .module_bouton {
    	width: 800px;
    	margin-left: 27px;
    	vertical-align: top;
    	border: 1px solid #C7CED6;
    }
    #module  .txt_form  {
    	margin-top: 0px;
    	margin-right: 0px;
    	margin-bottom: 0px;
    	margin-left: 0px;
    	color: #4D4D4D;
    }
    .module_bouton .ligne {
    	border-bottom-width: 1px;
    	border-bottom-style: solid;
    	border-bottom-color: #C7C8C8;
    }
    #module  .txt_form_grand  {
    	margin-top: 0px;
    	margin-right: 0px;
    	margin-bottom: 0px;
    	margin-left: 0px;
    	font-size: 13px;
    	color: #829BD2;
    }
    #module   .module_bouton   td     {
    	padding: 5px;
    }
    #module a {
    	color: #3F434A;
    	font-size: 10px;
    	text-decoration: underline;
    }
    #module .error {
    	margin-left: 30px;
    	color: #903;
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 12px;
    	font-weight: bold;
    }
    #module .error_tab {
    	color: #903;
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 12px;
    	font-weight: bold;
    	margin-bottom: 5px;
    }
    select {
    	padding: 3px;
    	border: 1px solid #DEDEDE;
    	background-color: #FFFFFF;
    	width: 180px;
    	color: #464A51;
    }
     
    input.file {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    }
    input.text {
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 12px;
    	color: #464A51;
    	padding: 3px;
    	width: 150px;
    	border: 1px solid #DEDEDE;
    }
     
    input.submit {
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 10px;
    	color: #303234;
    	background-color: #b19f9d;
    	font-weight: bold;
    	padding: 5px;
    	border: 1px solid #DEDEDE;
    	cursor:pointer;
    }
    input.submit:hover {
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 10px;
    	color: #303234;
    	background-color: #807472;
    	font-weight: bold;
    	padding: 5px;
    	border: 1px solid #DEDEDE;
    	cursor:pointer;
    }
    input.submit1 {
    	cursor:pointer;
    	border: 1px;
    	background-image: url(../images/prev.jpg);
    	background-repeat: no-repeat;
    	background-position: left;
    	height: 19px;
    	width: 37px;
    }
    input.submit2 {
    	cursor:pointer;
    	border: 1px;
    	background-image: url(../images/next.jpg);
    	background-repeat: no-repeat;
    	background-position: left;
    	height: 19px;
    	width: 37px;
    }
    #droite #image_titre_droite {
    	text-align: center;
    	margin-bottom: 5px;
    }
    #footer_wrap  {
    	background-image: url(../images/footer_BG.gif);
    	height: 65px;
    	background-repeat: repeat-x;
    }
    #footer_wrap #footer {
    	background-image: url(../../images/footer_BG.gif);
    	background-repeat: repeat-x;
    	background-position: right top;
    	margin: auto;
    	width: 926px;
    	height: 65px;
    	color: #454648;
    	padding-top: 15px;
    	font-size: 10px;
    }
    #footer_wrap #footer a {
    	color: #3C4E77;
    	text-decoration: underline;
    }
    #footer_wrap #footer a:hover {
    	color: #546EAA;
    	text-decoration: underline;
    }
    #gauche .soustitre {
    	color: #4b4d4f;
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 13px;
    	margin-bottom: 15px;
    	font-weight: normal;
    }
    .module_bouton .txt_form_bleu {
    	color: #807472;
    }
    /*lightbox*/
    #filter
    {
    	display: none;
    	position: absolute;
    	top: 0;
    	left: 0;
    	width: 100%;
    	height: 100%;
    	background-color: #807472;
    	z-index:10;
    	opacity:0.7;
    	filter: alpha(opacity=70);
    }
     
    html #filter {
    	background-color: transparent;
    	background: #807472;
    	filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=70);
    }
     
    .box 
    {
    	display: none;
    	position: absolute;
    	top: 20%;
    	left: 20%;
    	width: 900px;
    	height:500px;
    	padding: 0;
    	margin:0;
    	border: 1px solid black;
    	background-color: white;
    	z-index:11;
    }
     
    .boxheader
    {
    	position:absolute;
    	top:0%;
    	left:0%;
    	height:80px;
    	padding-top:10px;
    	color:white;
    	text-align:center;
    	vertical-align: middle;
    	width: 100%;
    }
     
    .boxclose
    {
    	float:right;
    	position:absolute;
    	top: 6px;
    	right: 50px;
    	background-image:url(../images/close.gif);
    	background-repeat:no-repeat;
    	background-color:#CCC;
    	width:20px;
    	height:20px;
    }
     
    .boxcontent
    {
    	position:absolute;
    	top:21px;
    	left:0;
    	right:0;
    	bottom:0;
    	margin:0;
    	overflow: auto;
    	width:100%;
    	height:300;
    	vertical-align: middle;
    	padding-top: 40px;
    	padding-right: 8px;
    	padding-bottom: 8px;
    	padding-left: 15px;
    }

  2. #2
    Membre Expert Avatar de HiRoN
    Homme Profil pro
    Développeur Web
    Inscrit en
    Août 2007
    Messages
    2 035
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Août 2007
    Messages : 2 035
    Par défaut
    Bonjour,

    J'avais eu le même problème sur un projet, devant trouver une solution rapidement afin de ne pas perdre de temps, j'avais fais un script (JS donc) qui passait les listes en display:none si l'utilisateur été sous IE6 + display:block lors de la sorti de l'effet lightbox.

    Ce n'est sûrement pas la meilleure solution, mais ça en reste une en cas de dernier recours...
    Pensez à utiliser les ressources disponibles en Dev. Web :
    (x)HTML : Cours (X)HTML / FAQ (X)HTML
    CSS : Cours CSS / FAQ CSS / Galerie CSS
    Javascript : Cours / FAQ / Sources
    Mon site : Développeur Web Freelance

  3. #3
    Membre averti
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    48
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mai 2006
    Messages : 48
    Par défaut
    Salut,

    J'ai appliqué ce que tu viens de me dire et en effet ca fonctionne... pas top mais ca "dépatouille"...


    Merci

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

Discussions similaires

  1. Multi-selection dans une ComboBox ?
    Par Moloko dans le forum MFC
    Réponses: 5
    Dernier message: 07/07/2021, 17h26
  2. Ouvrir une lightbox avec une select box
    Par amans dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 10/08/2010, 08h07
  3. [VB6] [Crystal] Selection enregistrement
    Par littlecow dans le forum VB 6 et antérieur
    Réponses: 3
    Dernier message: 11/01/2005, 13h08
  4. TEdit : selection du texte et autre fonction
    Par Odulo dans le forum Composants VCL
    Réponses: 5
    Dernier message: 01/08/2002, 14h27
  5. faire un selection dans une image aves les APIs
    Par merahyazid dans le forum C++Builder
    Réponses: 3
    Dernier message: 30/04/2002, 10h44

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