私はbordorトップのみのフィールドセットを使用しています。フィールドセットのコンテナは絶対位置であり、モーダルをページの中心に揃えるためにtranslateプロパティを持っています。 https://jsfiddle.net/wb8ddv0w/1/コンテナの翻訳時にフィールドセットの凡例が翻訳されました
<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>
を参照してくださいしかし、フィールドセットの伝説は、裏抜けを得ています。どうした。 legend
上
フィールドセットからmargin-topを削除し、.modalにパディングを与えます。 –
Fieldset cssは一般的であり、変更することはできません。 – user1853803