css page-break-inside attribute


  Translation results:

page

英[peɪdʒ] 美[pedʒ]

n.page; (computer) page; annual history; <text> important events

vt. mark the pages of; turn the page; call out a name to find; call (on a public paging system)

vi. turn the pages of a book; browse

break

英[breɪk] 美[brek]

vt. (make) break; break (record); (often refers to good weather) sudden change; start

vi.Breakthrough; (voice) sudden change; dawn; (price) sudden drop

n.Break; break; interruption; short vacation

inside

UK[ˌɪnˈsaɪd] US[ɪnˈsaɪd, ˈɪnˌsaɪd]

adj. Inside, inside; inside; inside

n. Inside, inside; viscera; content, inside ; (of a corner of a road or runway)

adv. Inland, on the inside; on the inside; in prison

prep. Within; on the inside or inside; enter in

css page-break-inside attributesyntax

Function: The page-break-inside attribute sets the page-breaking behavior inside the element.

Note: Although you can use always to force page breaks, there is no guarantee that the insertion of page breaks will be avoided. The most the creator can do is ask the user agent to avoid inserting page breaks as much as possible. Applies to: non-floating block-level elements whose position value is relative or static.

Note: Only the Opera browser supports the page-break-inside attribute.

css page-break-inside attributeexample

<html>
<head>
<style>
@media print
{
table {page-break-inside:avoid;}
}
</style>
</head>
<body>
....
</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

Home

Videos

Q&A