Relative positioning moves an element in relation to where it would have been in normal flow. HTML&CSS: design and build websites. John Duckett
当元素的属性位置是相对的时,您可以使用 top、left、bottom 和 right 属性来移动该元素相对于它在正常流中的位置。
我想知道这些属性是否会影响填充和边距属性。
谢谢
最佳答案
他们没有。填充和边距值将保持不变。
关于css - 当位置是相对的时,元素的填充和边距会改变吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27172572/