文章目录 绝对布局 相对布局 form布局 绝对布局 相对第一个非 static 定位的父元素【默认都是 static】进行定位。 css position:absolute top: left: right: bottom: dorado 首先父元素使用锚定布局anchor,然后设置该元素的LayoutConstraint,如何使用left和top,则先将anchorLeft和anchorTop设置为container