css page-break-after property


  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; intermittent; short vacation

after

UK[ˈɑ:ftə(r)] US[ˈæftə(r)]

prep.After…; (indicating time) after…; (indicating position, order) after…

conj.After...

adv.After, after

adj.Later, afterward

css page-break-after propertysyntax

Function: The page-break-after attribute sets the page-breaking behavior after 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: All browsers support the page-break-after attribute. The property values ​​"left", "right", and "inherit" are not supported in any version of Internet Explorer (including IE8). Firefox, Chrome, and Safari do not support the attribute values ​​"avoid", "left", and "right".

css page-break-after propertyexample

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

Run instance »

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

Popular Recommendations

Home

Videos

Q&A