对于我的母版页,我在 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>