CSSPosition(定位)position 属性指定了元素的定位类型。position 属性的五个值:static relative fixed absolute sticky元素可以使用的顶部,底部,左侧和右侧属性定位。然而,这些属性无法工作,除非是先设定position属性。他们也有不同的工......
2023-10-10 01:24 阅读 阅读全文文章浏览阅读3.3w次,点赞10次,收藏45次。1报错情景描述笔者在写完一个普通类之后,没有实例化,直接调用类的方法,出现以下错误:我们这里先看源代码:class A: def __init__(self, id): self.id = id def fun1(): print('f......
2023-11-11 19:33 阅读 阅读全文