<div>
<p id=1>
<p id=2>
<p id=3>
</div>
p1
<div>
<p id=2>
<p id=3>
<p id=4>
</div>
how to implement DIV can only display 3 pieces of data, and the new data will top up the previous data, similar to scrolling up the data. The overflow property of DIV can hide the overflowed content but cannot show the new content.
data is added by javascript after the event is triggered.