九、CSS3技巧
9-62 CSS3 圓弧效果
垂直置中
.box {
box-sizing: content-box;
height: 150px;
width: 150px;
background-color: red;
border-radius: 50% ;
border: 10px solid blue;
color: rgb(240, 255, 253);
font-size: 28px;
text-align: center;
line-height: 150px;
}
9-63 CSS3 漸層效果
prefix
多重背景
LOGO 放右下,氣泡png,線性漸層左到右
.box2 {
box-sizing: border-box;
width: 1002px;
height: 405px;
background: linear-gradient(to right, #00644b, #009771);
/* background: -webkit-linear-gradient(left,#00644b, #009771); */
color: white;
font-size: 24px;
text-align: center;
padding: 10px;
}
9-64 CSS3 陰影效果
.box3 {
width: 200px;
height: 200px;
background-color: green;
box-shadow: 3px 3px 15px gray;
margin: 30px;
}
9-65 使用 can I use 查詢 HTML、CSS 瀏覽器兼容度
can i use
各語言的屬性在瀏覽器上的兼容性
有無支援 email
9-66 使用 Statcounter 瀏覽各國瀏覽器趨勢
了解網站的使用族群會用哪些瀏覽器,要不要兼容 IE
Last updated
Was this helpful?