2012-05-30 3 views
0

내 masterpage에는 HTML DIV에 이미지가 포함되어 있습니다. 배경 이미지가 나타나지만 4 개의 흰색 경계선과 같이 내 이미지를 둘러 쌌습니다. 여기서 나는 아무 것도 적용하지 않았습니다.ASP.NET Masterpage CSS 배경 이미지 테두리

<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> 
+0

을 그러나, 그것을 해결하지 않는 첫 번째 DIV를 제거. –

+0

** firebug **를 사용하고 div가 포함 된 이미지에 적용되는 스타일을 확인할 수 있습니까? –

답변

1

이 시도 :

<body style="border: 0px none; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;"> 
+1

그것은 작동합니다! 고마워요! –

+0

@CloudS :이 질문에 동의 함으로 표시 할 수 있습니다 !!! –