【发布时间】:2011-10-26 22:15:17
【问题描述】:
我们可以将图片设置为<div>的背景图片,比如:
<style>
#test {
background-image: url(./images/grad.gif);
background-repeat: no-repeat;
background-position: center center;
width:80%;
margin-left:10%;
height:200px;
background-color:blue;
}
</style>
<div id="test"></div>
我需要在<div> 的中心水平和垂直设置一个表格。有没有使用CSS的跨浏览器解决方案?
【问题讨论】:
标签: css