开发者

input type=submit not following box-model

开发者 https://www.devze.com 2022-12-21 01:18 出处:网络
I have more of theoretic question: do you know why in the world, input type=submit acts on different box-model even if I tell it do display:block?

I have more of theoretic question: do you know why in the world, input type=submit acts on different box-model even if I tell it do display:block?

(just a note: nothing I couldn't go around... It 开发者_如何学Pythonjust surprised me, that this time, every browser seems to work the same way… padding and border included in total width

second note: i see no point in quirks mode, never used it (seems to me from far ago, that it just f*cks everything up—more than usual)


I have never closely researched this, I just know buttons never do what they're told.

Is this what you mean? Explorer Windows and Mozilla bug - button box model

There is a Fix for Mozilla:

For Mozilla, add -moz-box-sizing: content-box to the button. Unfortunately this bug is unsolvable in Explorer.

0

精彩评论

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