General offset for all anchors in HTML?

前端 未结 2 1638
生来不讨喜
生来不讨喜 2021-01-12 21:52

I have some anchor elements, but they are in absolute position div and the content of the div is so large that it scrolls inside (overflow:auto).

All entries in the

2条回答
  •  终归单人心
    2021-01-12 22:00

    you could always add another div to wrap around it, and then do something like

    .wrapperdiv{
       position:relative;
       top:-10px;
    }
    

提交回复
热议问题