开发者

input type= email, URL, and search have a 1px left and right padding in Google Chrome

If you use Google Chrome (At least that is the only browser I know that does this), then go to this example uncheck the "Normalized CSS" checkbox and look at the input elements.

In Google Chrome the email, URL, and search input fields have a 1px padding all around, but the text and password fields have only a top and开发者_如何转开发 bottom padding.

Why, it only makes it harder to format?


Try something like this:

input[type=search]{
padding: 0;}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜