我只在bordor頂部使用字段集。 fieldset的容器是絕對位置,並具有翻譯屬性以將模式對齊到頁面中心。 見https://jsfiddle.net/wb8ddv0w/1/當容器翻譯css時,Fieldset圖例會變爲striked
<section class="modal medium someclass" >
<fieldset>
<legend>Some heading</legend>
<p>Some text on the top. Some text on the top Some text on the topSome text on the topSome text on the topSome text on the topSome text on the topSome text on the top</p>
<section aria-required="true">
<label>some more text</label>
</section>
</fieldset>
</section>
但字段集傳說是通過越來越罷工。什麼是問題。
從fieldset中刪除margin-top並將填充填充到.modal –
Fieldset css是通用的,不能更改。 – user1853803