开发者

Table content held within a div will not print over several pages

I have some tabular content that is held within a div thus..

<div class="someDiv">
   <table>
       <tr>...</tr>
       ....
       ....
       <tr>...</tr>
   </table>
</div>

When I print using a print stylesheet with all items set to float:none !important; and height:auto !important; the table will only print one page worth of information as opposed to about 10 or so.

H开发者_StackOverflow社区as anyone come across this before?


The fix was to add

* { overflow:visible ! important; }


Could it be as simple as CSS syntax?

I see in this old article (where I first heard of this) they have a space between the exclamation point and the word important.

I also see a space here (section 3.1 is about important).

Does your CSS code have that space?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜