General offset for all anchors in HTML?

前端 未结 2 1639
生来不讨喜
生来不讨喜 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;
    }
    
    0 讨论(0)
  • 2021-01-12 22:18

    You could try a Javascript scroll to correct the position.

    0 讨论(0)
提交回复
热议问题