很久以前 Roger Johansson 就在他的 blog 上做了一个 用样式控制表单元素 的测试 , 告诉我们企图用样式控制表单元素是一件不可能的事情
关键词:
很久以前 Roger Johansson 就在他的 blog 上做了一个 用样式控制表单元素 的测试 , 告诉我们企图用样式控制表单元素是一件不可能的事情using CSS to style form controls to look exactly the same across browsers and platforms is impossible
甚至 css2.1 规范中也没有明确这方面的规定 , 而是打算将它 fix in future
CSS 2 . 1 does not define which properties apply to form controls and frames, or how CSS can be used to style them. User agents may apply CSS properties to these elements. Authors are recommended to treat such support as experimental. A future level of CSS may specify this further.
IE6(xp) IE7(xp) IE8(win7) Firefox 3.5(xp) Firefox 3.5(win7) Firefox 3.5(mac 10.6.2) Firefox 3.5(ubuntu 10.4) Chrome 5(xp) Chrome 5(win7) Chrome 5(mac 10.6.2) Chrome 5(ubuntu 10.4)
height
的方式
的方式
:
border-box ;
:
border-box ;
:
border-box ;
:
28px ; 支持的访问非常广 ,
:
0 ;
:
0 ;
:
28px ;
quirks
下的实现方法
RenderBox::calcContentBoxHeight(
int height)
const
:not ([
type =
image ]),
textarea {
:not ([
type =
image ]),
textarea {