I have a div which has a fixed height and the content in it occupies more space than it's fixed height so I gave it an overflow-y:scroll
. How do I print the entire content that is inside this div?
Can you just override the scroll and height settings for print, without breaking the rest of the page layout?
@media print {
#mydiv {
height: auto;
overflow-y: auto;
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.