就父元素而言,我如何能够垂直和水平地放置子元素。
#bigBanner {
position: relative;
width: 960px;
height: 483px;
margin: 0 auto;
background-image:url(../wpimages/sliderbg.jpg);
}
#bannerQuote {
width: 518px;
height: 127px;
margin: 0 auto;
background-color: #0d0f11;
opacity: 0.95;
filter:Alpha(opacity=95);
}
是代码,bannerQuote 正好在bigBanner 的中间。我将如何实现这一目标?我有一种感觉,这很简单。
谢谢