css page-break-before属性


  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

before

English[bɪˈfɔ:(r)] US[bɪˈfɔr,-ˈfor]

prep.Before...;before,better than;in front of...;with...

conj.Before...;before...;earlier than...;rather than...

adv.before, before; in front, in front

css page-break-before属性syntax

Function: The page-break-before attribute sets the page-breaking behavior before 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-before 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-before属性example

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

Run instance »

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

Home

Videos

Q&A