備忘錄_20160105(定位)
修改
回首頁
程式 2019-10-19 00:28:09 1571416089 100
html5 css3 先後順序
html5 css3 先後順序
#div1
{
display: block; /* none, block, inline, inline-block */
position: static; /* static, absolute, fixed, relative */
float: none; /* none, left, right */
z-index: 0; /* -int,0,+int */
visibility: visible; /* visible, hidden */
margin: 3px;
border-style: solid;
border-width: 1px;
border-color: red;
background-image: url(); /* 照片在背景顏色之上,若有透明部分,可看到背景色 */
background-repeat: no-repeat;
background-color: #aaaaff;
padding: 2px;
box-sizing: content-box;
/* content-box => width = content_width 這是預設值 */
/* border-box => width = border_width + padding-width + content_width */
width: 100px;
height: 200px;
font-family: Courier;
font-weight: normal;
font-size: 16px;
}