css - 带有幻象左填充的 Div

标签 css html padding mouseleftbuttondown

我有一个 Div 标签,出于某种原因,它在左侧填充了大约 50 像素。

以下是 html,请注意,“class”的 nono 有 padding-left”

<body>
    <div class="popHeaderMain" align="center">
        <div class="PopHeader">
            Keller Williams Realty | (704) 602-0271
        </div>
        <div class="popLoginHeader">
            <table>
                <tr>
                    <td style="font-size:10px;">Username: <input type="text" name="username" /></td>
                    <td style="font-size:10px;">Password: <input type="password" name="password" /></td>
                    <td style="vertical-align:bottom;"><input name="login" type="submit" value="Login" /></td>
                </tr>
            </table>
        </div>
    </div>
    <!-- ImageReady Slices (backgroundPage.psd) -->
    <div style="padding-top:20px; width:900px;" align="center">
        <table id="Table_01" width="900" height="1200" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
            <tr>
                <td rowspan="2" style="background-image:url(images/backgroundPage_01.png); background-repeat:no-repeat; width:20px; height:410px;">
                <td rowspan="2" style="padding-top:8px; background-image:url(images/backgroundPage_02.png); background-repeat:no-repeat; height:380px; width:455px;">
                    <div style="padding-left:25px; padding-top:0px; font-family:Arial, Helvetica, sans-serif; font-size:18px; font-weight:bold; color:#F0F0F0;">
                        Preview House Address
                    </div>
                    <div style="padding-top:20px; width:450px;">
                        <div style="padding-left:10px;">
                            <img src="images/GibsonHouse3.jpg" alt="GibsonHouse" border="0" style="width: 437px; height: 300px;"/>
                        </div>
                    </div>
                </td>
                <td style="padding-top:0px; background-image:url(images/backgroundPage_03.png); background-repeat:no-repeat; width:405px; height:58px;">
                    <div style="padding-top:0px; padding-left:50px; font-family:Georgia, 'Times New Roman', Times, serif; font-size:14px; heigh:58px;">Preview House 1 out of N of houses in area</div>
                </td>
                <td rowspan="2" style="background-image:url(images/backgroundPage_04.png); background-repeat:no-repeat; width:20px; height:410px;">
            </tr>
            <tr>
                <td style="background-image:url(images/backgroundPage_05.png); background-repeat:no-repeat; width:405px; height:352px;"></td>
            </tr>
            <tr>
                <td style="background-image:url(images/backgroundPage_06.png); background-repeat:no-repeat; width:20px; height:766px;"></td>
                <td colspan="2" style="background-image:url(images/backgroundPage_07.png); background-repeat:no-repeat; width:860px; height:766px;"></td>
                <td style="background-image:url(images/backgroundPage_08.png); background-repeat:no-repeat; width:20px; height:766px;"></td>
            </tr>
            <tr>
                <td style="background-image:url(images/backgroundPage_09.png); background-repeat:no-repeat; width: 20px; height:24px;"></td>
                <td colspan="2" style="background-image:url(images/backgroundPage_10.png); background-repeat:no-repeat; width:860px; height:24px;"></td>
                <td style="background-image:url(images/backgroundPage_11.png); background-repeat:no-repeat; width:20px; height:24px;"></td>
            </tr>
        </table>
    </div>

谁能帮帮我

最佳答案

padding-left phantom 实际上是从 body 标签继承而来的。宽度设置为 800 像素而不是 900 像素。

关于css - 带有幻象左填充的 Div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3964979/

相关文章:

jquery - 在加载图像之前但在 DOM 之后调整图像大小

html - Angular 侧边栏与页面内容重叠

html - 在悬停 jQuery 时更改不透明度

python - 添加可能包含 'None' 条目的数组

c - 结构填充和元素访问

html - <Body> 标签的边距和填充

html - Bootstrap 的中心 block 不工作

css - 在 React App 中调用 API 后不透明度转换的时间

css - 如何使用变换矩阵修改 svg 路径数据

javascript - 博主:调整大小后图像模糊