CSS位置:relative和float:left [英] CSS position: relative and float: left
本文介绍了CSS位置:relative和float:left的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
只是一个简单的问题:我可以在一个元素上应用位置相对和浮动广告吗?是否有人使用它?
just a quick question: Could I apply position relative and float left on one element? Does someone use it?
div {
float: left;
position: relative;
top: 0px;
left: 0px;
(...)
}
谢谢! b $ b
推荐答案
是的。
一旦框根据正常流程或者浮动布局,
可以相对于该位置移动,这被称为相对定位
"Once a box has been laid out according to the normal flow or floated, it may be shifted relative to this position. This is called relative positioning"
这篇关于CSS位置:relative和float:left的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文