javascript - How to fix up and down controls/spins of input type date after changing its height -
i have code changed height of inputs (date type) 40px, , , down controls not aligned text inside field.
i want adjust height of spins or remove if fixing won't possible.
<table> <tr> <td>from <input type="date" name="from" value="'.$currdate.'" autofocus/> </td> <td>to <input type="date" name="to" value="'.$currdate.'" /> </td> </td> </tr> </table>
i don't know if can done through jquery or javascript.
input, ::-webkit-inner-spin-button { height: 40px; }
<table> <tr> <td>from <input type="date" name="from" value="" autofocus/> </td> <td>to <input type="date" name="to" value="" /> </td> </td> </tr> </table>
is you're looking for?
the following 8 pseudo-elements made available webkit customizing date input’s textbox:
::-webkit-datetime-edit ::-webkit-datetime-edit-fields-wrapper ::-webkit-datetime-edit-text ::-webkit-datetime-edit-month-field ::-webkit-datetime-edit-day-field ::-webkit-datetime-edit-year-field ::-webkit-inner-spin-button ::-webkit-calendar-picker-indicator
Comments
Post a Comment