开发者

Scrolling Panel Printing Issue

开发者 https://www.devze.com 2022-12-27 16:55 出处:网络
I have a site where we have the content in scrolling panels to make it neater and line up开发者_开发百科. The issue comes when trying to print the contents of my panel hidden by the scroll.

I have a site where we have the content in scrolling panels to make it neater and line up开发者_开发百科. The issue comes when trying to print the contents of my panel hidden by the scroll.

Here is my panel

<asp:Panel Height="400px" ID="pnlContent" class="ContentPanel ScrollBars="Vertical" runat="server" > 
<!-- Content bla bla bla -->
</asp:Panel>

Here is my media="print" style sheet code for the ContentPanel

.ContentScroller  
{
    overflow:visible;
}

The overflow:visible does not seem to remover the ScrollBars="Vertical"

Any ideas on how to get this hidden content to print?


Try using a print specific media query to change the overflow like this:

@media print
{
 .ContentScroller  
 {
     overflow:auto;
 }
}


Try setting the height to 100%.

height: 100%;

This may be a problem with your

Height="400px"

set in your server tag. I create 2 CSS files, 1 for screen and 1 for print then remove sizing from the server tags.

0

精彩评论

暂无评论...
验证码 换一张
取 消