0

对于我的母版页,我在 HTML DIV 上嵌入了一个图像。背景图像确实出现了,但我的图像周围有 4 个类似白色的边框,我没有应用任何东西。

<head runat="server">
    <title>Untitled Page</title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server" >

    <div style="border-width: thin; border-style: inset; padding: 0px; margin: 0px; top: 89px; left: 169px; position: absolute; height: 570px; width: 777px; background-color: #FFFFFF; z-index: auto;">
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

        </asp:ContentPlaceHolder>
    </div>
    <div style="height: 757px; background-image: url('<%= imgPath %>'); background-repeat: repeat-x; background-attachment: fixed; position: static;">
    </div>
    </form>
</body>
</html>
4

1 回答 1

1

尝试这个:

<body style="border: 0px none; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;">
于 2012-05-30T16:26:38.740 回答