如何让某个元素距离窗口上右下左4边各10像素?
45 阅读 0 评论 0 点赞
如何让某个元素距离窗口上右下左4边各10像素?
方法:
html,body{
height:100%;
margin:0;
}
html{
_padding:10px;
}
#test{
position:absolute;
top:10px;
right:10px;
bottom:10px;
left:10px;
_position:static;
_height:100%;
}
- 本文分类:编程
- 本文标签:CSS
- 浏览次数:45 次浏览
- 本文链接:/dev/42771.html