2つのdivを水平に揃えるのに問題があります
これが私のaspxマスターページのhtmlです。
<div class="hdrimg">
</div>
<div class="rightofhdrimg">
<asp:ContentPlaceHolder ID="HeaderRight" runat="server"> </asp:ContentPlaceHolder>
</div>
これがCSSです(私はCSS3を使用しています)。
.hdrimg
{
width: 680px;
margin-left: 8px;
height: 130px;
background-color: White;
background-image: url('Images/Banner/WebsiteHeader8.13.2012.jpg');
background-repeat: no-repeat;
background-size: 100%;
-moz-border-radius-bottomleft: 1em;
-webkit-border-bottom-left-radius: 1em;
border-bottom-left-radius: 1em;
-moz-border-radius-bottomright: 1em;
-webkit-border-bottom-right-radius: 1em;
border-bottom-right-radius: 1em;
}
.rightofhdrimg
{
float: right;
display: inline-block;
background-color: #008000 ;
height: 190px;
width:240px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}
ヘッダー画像の右側のdivは緑色の背景の長方形である必要がありますが、その上端はヘッダー画像の下端です。