gpt4 book ai didi

css - 内部分页 : avoid - not working in Chrome

转载 作者:太空宇宙 更新时间:2023-11-03 19:07:08 25 4
gpt4 key购买 nike

我主要使用 Chrome,也许我第一次发现这样的问题。它在 IE 中工作,不确定其他浏览器,但在 Chrome 中没有。有什么想法或提示吗?

@media print
{
table {page-break-inside:avoid}
}

当只是放入div元素时也是如此

最佳答案

可能是table元素的父元素有样式:

display: flex 

那么闯入就不起作用了。

如果您将父元素显示样式更改为:

display: block

然后它会起作用。

关于css - 内部分页 : avoid - not working in Chrome,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9836336/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com