説明:
高さを変更するコンテンツdivのあるページがあります。divが小さい場合は、背景色にグラデーションをフェードさせたいです。divの高さが大きくなると、ページから外れるまでグラデーションをさらに押し下げる必要があります。
この例は正しく機能しますが、gradient divでposition:fixedを使用せずにこれを実行できるかどうかを知りたいです。固定位置を使用したくない理由は、ページを上下にスクロールすると、上記の例がiPadで奇妙に見えるためです。グラデーション以外はすべて移動するため、ページが壊れているように見えます。
固定ポジショニングを使用せずに例を構成する方法はありますか?
ありがとう!