標籤:round drive ref 預設 技術分享 osi png pad title
<!DOCTYPE html><html><head><meta charset="utf-9"><meta name="keywords" content="css,css3,實戰互連網,教程"><meta name="description" content="css3實現折角效果,折角效果,css3實戰盡在實戰互連網" ><link rel="stylesheet" href="styles_2014080901.css"><title>CSS3實現折角效果實戰開發</title></head><body><div class="note"></div></body></html>
.note { /*設定摺疊樣式基本屬性*/width:480px;height:400px;margin:2em auto; /*調整.note元素的外邊距*/padding:2em;background:#53A3B4;position:relative;}.note:before {content:"";display:block; /*虛擬元素預設是行內元素,所以如果要設定寬高,這必須顯性設定為block*/border-width:0 16px 16px 0; /*設定邊框寬度*/border-color:#fff #fff transparent transparent; background:transparent;border-style:solid; /*設定邊框為固體的*/width:0; /*設定新建立的元素*/position:absolute; /*相對於父容器絕對位置,設定位移父容器邊框距離*/top:0;right:0;/*設定元素的陰影製作效果*/-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);-moz-box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);}
:
CSS3實戰開發: 折角效果實戰開發