Form:Eingabe von Text/Textbereich Größe
<form id="defineForm" method="POST" action="api/test">
<fieldset>
<legend>Generale</legend>
<input type="text" name="id" size="60" maxlength="60"/>
<input type="text" name="descr" size="60"/>
<textarea name="longDescr" cols="62" rows="10"></textarea>
mit cols="62"
für "longDescr" und size="60"
für "id" -Bereich die gleiche Breite erzeugt (oh oh überraschen!) Auf IE8:
[ text ] [ text ] [ textarea ] [ ]
natürlich sind diese Werte proceduces ein anderes Ergebnis auf Firefox (zwei unterschiedliche Breite wie ich erwarte), so etwas wie:
[ text ] [ text ] [ textarea ] [ ]
Wie kann ich die gleiche Breite, zumindest auf IE7/8 und Firefox, von Eingabetext und Textareas erzwingen?
EDIT
Ich verwende dieses CSS:
input, textarea {
margin: 15px;
padding: 3px;
display: block;
width: 20ex;
}
aber es funktioniert auf Firefox nicht
Der Grund, warum es nicht funktioniert, ist, dass s und
mit font: erben; löste mein Problem auf Firefox, vielen Dank – dfa