absolute ceil

来源:互联网 发布:淘宝信誉查询网址 编辑:程序博客网 时间:2024/05/29 18:46

If the CSS position value of a container element is 'relative',

then any absolutely positioned elements

contained by a relatively positioned element will be placed

in relation to that container element.

 

the contained element will appear 0px to the left and top pixels

from the container element.

 

 

 

The ceil property has the following syntax:

Math.ceil(number)

This will round up any floating-point number to the nearest integer.

 

There is a corresponding floor property(!?) that will round any floating-point

number down to the nearest integer

Math.floor(number)

 

The round property will round any floating-point number to whichever

whole number is closest.

Math.round(number)

 

 

原创粉丝点击