sto uno stile a un input di testo con larghezza 100% e imbottitura 10px come questo:immissione di testo arresto con larghezza 100% e imbottitura 10px si estende oltre la larghezza 100%
<div class="wrapper">
Outer element
<form method="get" id="searchform" action="#">
<input type="text" class="field" name="s" id="s" placeholder="Search here...">
<input type="submit" class="submit" name="submit" id="searchsubmit" value="GO">
</form>
</div>
CSS:
.wrapper {
background: #ccc;
padding: 20px;
width: 200px;
}
#s {
width: 100%;
display:block;
padding: 10px;
}
#searchsubmit {
display: block;
width: 100%;
padding: 10px;
}
Il problema è che l'immissione del testo si estende oltre la larghezza del wrapper. See example here.
Ho provato ad aggiungere "box-sizing: border-box" e -moz-box-sizing:. Border-box", ma sto ancora vedendo l'ingresso che si estende oltre il 100% in alcuni browser ad esempio Android
c'è una soluzione a questo
-webkit funziona! Grazie mille! – user1444027