我設置了一些css規則和html標籤,這在設計視圖中看起來很理想。但是,當母版頁的子表單加載頁面時,它看起來不同。 css規則可以支配父css規則的屬性嗎?masterpages和css
style type="text/css">
#container{position:relative;}
img#border{position:absolute;
}
#placeH{position:absolute; left:344px;
top: 325px;
height: 168px;
width: 708px;
bottom:287px;
}
<title></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<div align="center" id="container">
<asp:Image ID="Header" runat="server" ImageUrl="~/header.png" Width="1196px"
Height="280px" />
</div>
<div id="border">
<asp:Image ID="Image1" runat="server" ImageUrl="~/border.png"/>// the border
,我嘗試在這裏設置出現在view..but對孩子的 設計視圖,,它出現在底部的母版設計精美頁面左側
</div>
<div id="placeH">
<form id="form1" runat="server">
<asp:ContentPlaceHolder id="ContentPlaceHolder2" runat="server">
</asp:ContentPlaceHolder>
</form>
</div>
</body>
的
我不知道是什麼問題。我下了屏幕邊框的圖像,並設置了整個事情出現在屏幕沒有裝飾,只有一個標題。謝謝你的幫助 – 2011-05-01 15:24:17