1

左側にリンクがあるプロファイル ページ コンテナーの 1 つがあり、クリックすると表形式のセクションが開きます。ただし、上記のリンクをクリックすると、ページ全体がセクションのコンテンツの上部に強制スクロール (ジャンプ) されるため、ページ上のそれらの上にあるものはすべて切り取られ、非常に煩わしくなります。

それがパディングなのか、マージンなのか、それとも何なのかわからないので、最初からやり直したくありません。

詳細については、私が持っているメインの HTML:

<div align="center">
    <style>
        .container {
            width: 650px; height: 250px;
            overflow: auto; overflow-y: hidden;
            border: 3px double #999999; background: black;
         }
       .section { height: 250px; overflow: auto;}
    </style>
    <table width="700px">
        <tr>
            <td>
                <div style="overflow: auto; width: 200px; height: 250px; border: 3px inset #999999;">
                    <br /><font color="#520000" size="5" face="Times"> Greetings. </font>
                    <br /><br /><a href="#profile"><font face="Courier" size="4">[ Introduction ]</font></a>
                    <br /><a href="#likes"><font face="Courier" size="4">[ Aye ]</font></a>
                    <br /><a href="#loathes"><font face="Courier" size="4">[ Nay ]</font></a>
                    <br /><a href="#media"><font face="Courier" size="4">[ Media ]</font></a>
                    <br /><a href="#music"><font face="Courier" size="4">[ Music ]</font></a>
                </div>
            </td>
            <td>
                <div class="container">
                    <a name="profile"></a>
                    <div class="section" align="right">
                        <br /> About me text here
                        <br />
                    </div>
4

0 に答える 0