开发者

Strange input field indent in Safari

开发者 https://www.devze.com 2022-12-18 03:25 出处:网络
This code: <table cellpadding=0 cellspacing=0 border=0> <tr> <td bgcolor=red> <input type=\'text\' />

This code:

<table cellpadding=0 cellspacing=0 border=0>
    <tr>
        <td bgcolor=red>
            <input type='text' />
        </td>
    </tr>
&l开发者_开发问答t;/table>

Gives this output in Safari and all other browsers:

Strange input field indent in Safari

The question is how to remove the indent that is highlighted with background color. Problem occurs in Safari only, CSS margin/padding/border does not help.


There’s probably some margin on that input element. Try to remove it, e.g.:

<input type='text' style="margin:0" />
0

精彩评论

暂无评论...
验证码 换一张
取 消