Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私には1つの困難があります。テーブルの境界線にヘッダーとしてテキストを配置する必要があります。例えば:
--------------This Isヘッダー-----------------------
誰かがこれについて解決策を提供できれば、それは可能ですか?
複数の方法があります。
テーブル ヘッダーを作成し、テキストを設定position: relativeして少し上に移動できます。ただし、これは上品ではありません。
position: relative
代わりに、100% 有効なフィールドセットを使用します。ただし、テーブルの代わりにフィールドセットに境界線を付ける必要があります。
<fieldset> <legend>Your text</legend> <!-- table goes here --> </fieldset>