position: absolute without setting top/left/bottom/right?

前端 未结 2 1119
南笙
南笙 2020-11-27 19:54

Case #1:

I want to put a logo above the photo in the header in the default WordPress theme ( http://twentyelevendemo.wordpress.com/ )

My solution: add the

2条回答
  •  醉酒成梦
    2020-11-27 20:38

    The standard generally says if top/bottom, left/right are auto, then default them to their position: static values:

    http://www.w3.org/TR/CSS2/visudet.html#abs-non-replaced-width

    http://www.w3.org/TR/CSS2/visudet.html#abs-non-replaced-height

提交回复
热议问题