第六章位置決め属性
1389 ワード
,
,
.1
html
position | absolute | fixed | relative
:
static
absolute left right top bottom
fixed ,
relative ,
.2 top,right,bottom,left
top: auto | |
right: auto | |
bottom: auto | |
left: auto | |
.3 z-index
, z-index 1,
:
z-index:auto |
auto ,
.4 float
float ,
:
float: none | left | right
none ...
.5 clear
3
:
clear : none | left | right | both
:
none
left
right
both
.6 clip
,
top left
bottom right
:auto | rect( )
auto 。rect( ) , , , , (0,0) ,
auto ,
.7 width,height
, width,height
auto ,
.8 overflow
:
overflow: visible | auto | hidden | scroll
:
visible
auto
hidden
scroll
.9 visibility
,
:
visibility:inherit | visible | hidden
:
inherit
visible ,
hidden ,