• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

<select> Problem im Internetexplorer

Marco-P

Neues Mitglied
Hallo Leute,

ich bin ganz neu hier und hoffe einer hat den richtigen weg wieso dies nicht funktioniert.
Dies sind die zwei Zustände einer im Internetexplorer und der andere im Firefox.

Firefox ist alles super so wie es soll.
firefox.jpg

Im Internet explorer ist das Select feld einfach nur dr kleine Pfeil zu sehen.
internet.jpg

Woran kann so was liegen.

MfG Marco
 
Werbung:
Wie sieht denn dein Code aus? Nur von Screenshots lässt sich da selten etwas sagen. Außerdem: Welche Version des Internet Explorers ist betroffen?
 
Hier ist der Code habe nur einen Teil der ganzen Seite rauskopiert.

HTML:
<tr>
<td style="font-size:14px">Pupillendistanz<span onmouseover="Tip( 'Den Wert der Pupillendistanz (PD) finden Sie auf Ihrem Brillenpass oder Brillenrezept. Sollte auf Ihrem Brillenpass oder Brillenrezept kein PD-Wert angegeben sein, k&ouml;nnen Sie sich im Info bereich auch einen Pupillenmesser herunterladen und ausdrucken. Eine genaue Messung durch Ihren Augenoptiker oder Augenarzt ist jedoch zu empfehlen.' ,WIDTH, -350 ,TITLE,'Info Pupillendistanz' );" onmouseout="UnTip()" ><img align="right" src="../../../images/M_images/con_help.png" /></span></td>
<td><select style="width:120px;" class="inputboxattrib" id="<?php echo $attributes[6]['titlevar'] ?>_field" name="<?php echo $attributes[6]['titlevar'].$attributes[6]['product_id'] ?>">
        <?php foreach ( $attributes[6]['options_list'] as $options_item ) : ?>
            <?php if( isset( $options_item['display_price']) ) : ?>
            <option <?php if (strpos($options_item['base_value'],"*")!==false) echo "selected";
?> value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?> (<?php echo $options_item['sign'].$options_item['display_price'] ?>)</option>
            <?php else : ?>
            <option <?php if (strpos($options_item['base_value'],"*")!==false) echo "selected";
?> value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?></option>
            <?php endif; ?>
            <?php endforeach; ?>
            </select>
</td>
<td style="font-size:14px">Pupillendistanz<span onmouseover="Tip( 'Den Wert der Pupillendistanz (PD) finden Sie auf Ihrem Brillenpass oder Brillenrezept. Sollte auf Ihrem Brillenpass oder Brillenrezept kein PD-Wert angegeben sein, k&ouml;nnen Sie sich im Info bereich auch einen Pupillenmesser herunterladen und ausdrucken. Eine genaue Messung durch Ihren Augenoptiker oder Augenarzt ist jedoch zu empfehlen.' ,WIDTH, -350 ,TITLE,'Info Pupillendistanz' );" onmouseout="UnTip()" ><img align="right" src="../../../images/M_images/con_help.png" /></span></td>
<td><select style="width:120px;" class="inputboxattrib" id="<?php echo $attributes[7]['titlevar'] ?>_field" name="<?php echo $attributes[7]['titlevar'].$attributes[7]['product_id'] ?>">
        <?php foreach ( $attributes[7]['options_list'] as $options_item ) : ?>
            <?php if( isset( $options_item['display_price']) ) : ?>
            <option  <?php if (strpos($options_item['base_value'],"*")!==false) echo "selected";
?> value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?> (<?php echo $options_item['sign'].$options_item['display_price'] ?>)</option>
            <?php else : ?>
            <option <?php if (strpos($options_item['base_value'],"*")!==false) echo "selected";
?> value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?></option>
            <?php endif; ?>
            <?php endforeach; ?>
            </select>
</td>
</tr>
<tr>
<td colspan="2">Zum Pupillendisanzmesser.</td>
</tr>
</table>
<table style="background-color:#F8F8F8; border:1px solid #E8E8E8; padding:10px; margin-top:20px;" width="700px">
<tr>
<td colspan="4" style=" font-size:20px; color:#636160; padding-bottom:15px; padding-top:10px; ">Bitte w&auml;hlen Sie Ihre Glasoptionen</td>
</tr>
<tr>
<td style="font-size:14px">
<label for="<?php echo $attributes[8]['titlevar'] ?>_field"><?php echo $attributes[8]['title'] ?></label><span onmouseover="Tip( 'Der T&ouml;nungsgrad wird in % angegeben. Z.B. Braun 85% entspricht einer Eint&ouml;nung von 85% und einer Lichtdurchl&auml;ssigkeit von 15%. Dies entspricht den meisten Sonnenbrillen.' ,WIDTH, -350 ,TITLE,'Info T&ouml;nung' );" onmouseout="UnTip()" ><img align="right" src="../../../images/M_images/con_help.png" /></span></td>
<td><select class="inputboxattrib" id="<?php echo $attributes[8]['titlevar'] ?>_field" name="<?php echo $attributes[8]['titlevar'].$attributes[8]['product_id'] ?>">
        <?php foreach ( $attributes[8]['options_list'] as $options_item ) : ?>
            <?php if( isset( $options_item['display_price']) ) : ?>
            <option value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?> (<?php echo $options_item['sign'].$options_item['display_price'] ?>)</option>
            <?php else : ?>
            <option value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?></option>
            <?php endif; ?>
            <?php endforeach; ?>
            </select>

</td>

<td style="font-size:14px">
<label for="<?php echo $attributes[9]['titlevar'] ?>_field"><?php echo $attributes[9]['title'] ?></label><span onmouseover="Tip( 'Mit dem Index / Brechkraft gibt man die Glasdicke an. Je h&ouml;her dieser ist, desto d&uuml;nner wird das Brillenglas.' ,WIDTH, -350 ,TITLE,'Info Glasdicke' );" onmouseout="UnTip()" ><img align="right" src="../../../images/M_images/con_help.png" /></span></td>
<td><select class="inputboxattrib" id="<?php echo $attributes[9]['titlevar'] ?>_field" name="<?php echo $attributes[9]['titlevar'].$attributes[9]['product_id'] ?>">
        <?php foreach ( $attributes[9]['options_list'] as $options_item ) : ?>
            <?php if( isset( $options_item['display_price']) ) : ?>
            <option value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?> (<?php echo $options_item['sign'].$options_item['display_price'] ?>)</option>
            <?php else : ?>
            <option value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?></option>
            <?php endif; ?>
            <?php endforeach; ?>
            </select>

</td>
</tr>
<tr>
<td style="font-size:14px">
<label for="<?php echo $attributes[10]['titlevar'] ?>_field"><?php echo $attributes[10]['title'] ?></label><span onmouseover="Tip( 'Die Entspiegelung reduziert die Reflexe auf dem Brillenglas und erm&ouml;glicht somit ein st&ouml;rungs- und erm&uuml;dungsfreieres Sehen.' ,WIDTH, -350 ,TITLE,'Info Entspiegelung' );" onmouseout="UnTip()" ><img align="right" src="../../../images/M_images/con_help.png" /></span></td>
<td><select class="inputboxattrib" id="<?php echo $attributes[10]['titlevar'] ?>_field" name="<?php echo $attributes[10]['titlevar'].$attributes[10]['product_id'] ?>">
        <?php foreach ( $attributes[10]['options_list'] as $options_item ) : ?>
            <?php if( isset( $options_item['display_price']) ) : ?>
            <option value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?> (<?php echo $options_item['sign'].$options_item['display_price'] ?>)</option>
            <?php else : ?>
            <option value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?></option>
            <?php endif; ?>
            <?php endforeach; ?>
            </select>

</td>
<td style="font-size:14px">
<label for="<?php echo $attributes[11]['titlevar'] ?>_field"><?php echo $attributes[11]['title'] ?></label></td>
<td><select class="inputboxattrib" id="<?php echo $attributes[11]['titlevar'] ?>_field" name="<?php echo $attributes[11]['titlevar'].$attributes[11]['product_id'] ?>">
        <?php foreach ( $attributes[11]['options_list'] as $options_item ) : ?>
            <?php if( isset( $options_item['display_price']) ) : ?>
            <option value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?> (<?php echo $options_item['sign'].$options_item['display_price'] ?>)</option>
            <?php else : ?>
            <option value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?></option>
            <?php endif; ?>
            <?php endforeach; ?>
            </select>

</td
></tr>
</table>
<table style="background-color:#F8F8F8; border:1px solid #E8E8E8; padding:10px; margin-top:20px;" width="700px">
<tr>
<td style=" font-size:20px; color:#636160; padding-bottom:15px; padding-top:10px; ">Zur Ansicht bestellen</td>
</tr>
<tr>
<td style="font-size:14px">
<label for="<?php echo $attributes[12]['titlevar'] ?>_field"><?php echo $attributes[12]['title'] ?></label><span onmouseover="Tip( 'Sie k&ouml;nnen dieses Brillengestell auch zur Ansicht bestellen.' ,WIDTH, -350 ,TITLE,'Info Entspiegelung' );" onmouseout="UnTip()" ><img align="right" src="../../../images/M_images/con_help.png" /></span></td>
<td><select class="inputboxattrib" id="<?php echo $attributes[12]['titlevar'] ?>_field" name="<?php echo $attributes[12]['titlevar'].$attributes[12]['product_id'] ?>">
        <?php foreach ( $attributes[12]['options_list'] as $options_item ) : ?>
            <?php if( isset( $options_item['display_price']) ) : ?>
            <option value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?> (<?php echo $options_item['sign'].$options_item['display_price'] ?>)</option>
            <?php else : ?>
            <option value="<?php echo $options_item['base_var'] ?>"><?php echo $options_item['base_value'] ?></option>
            <?php endif; ?>
            <?php endforeach; ?>
            </select>

</td>
</tr>
</table>
 
Werbung:
Also entwarnung ich hab es gelöst.

Es war kein style="width:120px;" in den select gesetzt.
Ach ich mach da jetzt schon drei Tage rum. Aber ich habs gelöst.

Also nicht vergessen Style Attribute setzen.

MfG Marco
 
Nein, Style-Attribute sind hier nicht die Lösung. Du solltest die Style-Eigenschaften in einer externen CSS-Datei setzen, nicht als Inline-Style (was Style-Attribute sind). Also:

Code:
select { width: 180px; }

Btw. ist der Quellcode, den Du gezeigt hast, kein HTML-Code wie er für eine Beurteilung hier wichtig wäre, sondern PHP-Code der hier niemandem etwas bringt um deine Frage zu beantworten. Denk daran nächstes Mal bitte.
 
Zurück
Oben