Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
236 views
in Technique[技术] by (71.8m points)

google chrome - CSS Print Sheet - Image is placed on next page, with text over it

I have a page where the user can insert rich text and images (via 2 Summernote fields).

When the user print the page in Chrome, sometimes the layout is broken. Basically it seams that when there is no more space for an image on page, the image is moved to the next one (which is correct), but then the text is over the image, and then the image over the text:

(please note that text is blurred on purpose)

Example

In this particular situations, by settings the margins to none or by shrinking the images, the green image stay on the first page and the text is displayed fine. But this is clearly a work.around for this particular example.

Is there any CSS rule that can I apply to the images in order to avoid this issue?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...