box

英[bɒks] 美[bɑ:ks]

n.Box; box-like object; box; sentry room

vt. Put... into a box [box, box]

vt.& vi.Boxing

Third person singular: boxes Plural: boxes Present participle: boxing Past tense: boxed Past participle: boxed

sizing

英['saɪzɪŋ] 美['saɪzɪŋ]

n. Sorting; rubber material; slag grinding; processing according to size

css3 box-sizing property syntax

Function:Allows you to define specific content adapted to a certain area in an exact way.

Note:Internet Explorer, Chrome, Safari and Opera support the box-sizing attribute. Firefox requires the prefix -moz-.

The box-sizing attribute in css3 allows you to define specific elements that match a certain area in a specific way. It has two values: content-box, which means that the actual width is the sum of width, border, and padding; border -box means that the actual width is equal to the width value



css3 box-sizing property example

    
这个 div 占据左半部分。
这个 div 占据右半部分。

Run instance »

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