开发者

Strange input field indent in Safari

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜