在div中设置左上角位置div [英] set the top left position div inside the div
本文介绍了在div中设置左上角位置div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在div里面有td并设置了存储在数据库中的顶部,左侧位置,也从数据库中获取但是没有正确修复位置。请帮助我。
i have td inside the div and set the top,left position stored in database and also get from the db but not fix the position properly.please help me .
推荐答案
所有关于CSS属性margin-left
,margin-top
,padding-left
,padding-top
或他们的组合。
你需要理解的一堆相关概念叫做 CSS box model 。
你可以在这里阅读它们是如何工作的:
http://www.w3.org/TR/CSS2/box.html [ ^ ],
http://www.w3schools.com/css/css_boxmodel.asp [ ^ ]。
你可能会知道它是如何工作的在onc e,如果您只是查看上面引用的第二页中显示的图片。
-SA
It''s all about the CSS propertiesmargin-left
,margin-top
,padding-left
,padding-top
or their combinations.
The bunch of related concepts you need to understand is called CSS box model.
You can read how they work here:
http://www.w3.org/TR/CSS2/box.html[^],
http://www.w3schools.com/css/css_boxmodel.asp[^].
You can probably get a good idea how it all works at once, if you simply look at the picture shown in the second page referenced above.
—SA
这篇关于在div中设置左上角位置div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文