CSS page-break-inside屬性的使用與定義

來源:互聯網
上載者:User
文法:

page-break-inside : auto | avoid

參數:

auto :  假如需要在對象容器中插入頁分割符
avoid :  使當前對象容器中禁止插入頁分割符

說明:
檢索或設定對象容器中出現的頁分割符。
目前IE5.5尚不支援此屬性。
對應的指令碼特性為pageBreakInside。請參閱我編寫的其他書目。

樣本:

p { page-break-inside: auto }

在CSS中page-break-inside屬性的作用為:設定元素內部的分頁行為。

page-break-inside屬性執行個體

page-break-inside定義和用法

page-break-inside 屬性設定元素內部的 page-breaking 行為。

儘管可以用 always 強制放上分頁符,但是無法保證避免分頁符的插入,創作人員最多隻能要求使用者代理程式儘可能避免插入分頁。

應用於:position 值為 relative 或 static 的非浮動區塊層級元素。

注釋:請儘可能少地使用分頁屬性,並且避免在表格、浮動元素、帶有邊框的塊元素中使用分頁屬性。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.