字段集不支持display:table / table-cell [英] Fieldset does not support display: table / table-cell

查看:86
本文介绍了字段集不支持display:table / table-cell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用 display:table 与字段集,但它没有正确缩放。如果我将< fieldset> 更改为< div> ,同样的事情会奏效。

I'm trying to use display: table with fieldset, but it's not scaling properly. The same thing works if I change <fieldset> to <div>.

我尝试使用Safari和Firefox。

I tried with Safari and Firefox.

我错过了什么?

http://jsfiddle.net/r99H2/

推荐答案

基本上,fieldset的默认渲染实际上不能在CSS中表示。因此,浏览器必须以非CSS术语实现它,并且干扰对元素应用CSS。

Basically, the default rendering of fieldset can't actually be expressed in CSS. As a result, browsers have to implement it in non-CSS terms, and that interferes with application of CSS to the element.

几乎任何元素都不能使用纯CSS重新创建将有类似的问题。

Pretty much any element that can't be recreated using pure CSS will have issues of that sort.

这篇关于字段集不支持display:table / table-cell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆