您可以使用CSS中的position属性来设置p的位置,position属性有五种可能的值:static、relative、fixed、absolute和sticky,absolute定位元素相对于其最近的非static定位父元素进行定位,您可以使用left和top属性来调整p的位置 。