开发者

page break css working fine in internet explorer 8 but not in firefox and google chrome

开发者 https://www.devze.com 2023-03-26 15:18 出处:网络
i got stuck in an issue i.e. i wrote fo开发者_运维技巧llowing css for showing page breaks in my html but i am facing the problem that it works fine in the Internet explorer but not working in firefox

i got stuck in an issue i.e. i wrote fo开发者_运维技巧llowing css for showing page breaks in my html but i am facing the problem that it works fine in the Internet explorer but not working in firefox and chrome below is the inline css i applied

 <br style="page-break-after: always;">

below is my HTML code

<asp:Panel ID="pnlHide" runat="server" Visible="false">
                    <br style="page-break-after: always;">
                </asp:Panel>

nb:above line is in asp:panel control of asp.net which renders as DIV in html

any suggestions to change the css are welcome. I will wonder if anybody could plz help me.


If you have any floats, remove them from the css while printing, floats may be the issue and page-break may not be the issue at all.

0

精彩评论

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

关注公众号