PIE Css3 の動作確認 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1.border-radius (角丸)
#01 { /* ▼CSS3の記述 */ background: url(image1.jpg); -webkit-border-radius:25px; -moz-border-radius:25px; -o-border-radius:25px; /* ▼CSS3 PIE用の記述 */ border-radius:25px; behavior : url(PIE.htc); } ▼css code only (画像なし) radius:6px▼css code only 影付( 2px 3px 6px) radius:6px#02 { /* ▼CSS3の記述 */ margin: 0px; padding: 6px 6px; -webkit-border-radius:6px; -moz-border-radius:6px; -o-border-radius:6px; border-radius: 6px; background-color: rgba(255,100,255); /* ▼CSS3 PIE用の記述 */ -pie-background: rgba(255,100,255); behavior : url(PIE.htc); } 2.border-image (外枠に画像を使用)▼外枠画像+内部背景色 border-image + back-color ▼外枠画像+内部背景画像 border-image + back-image #03 { background-color:#fffddd; border-image: url(image1.jpg) 10 10 10 10 / 10px 10px 10px 10px repeat stretch; -moz-border-image: url(image1.jpg) 10 10 10 10 / 10px 10px 10px 10px repeat stretch; -webkit-border-image: url(img/mage1.jpg) 10 10 10 10 / 10px 10px 10px 10px repeat stretch; behavior : url(PIE.htc); } 3.box-shadow (シャドウ)▼css code only radius:8px radius:10px #04 { -webkit-border-radius: 8px;-moz-border-radius: 8px; border-radius: 8px;-webkit-box-shadow: #666 0px 2px 3px;-moz-box-shadow: #666 0px 2px 3px; box-shadow: #666 0px 2px 3px; background: #F8EDEF; background: -webkit-gradient(linear, right center, left center, from(#F8EDEF), to(#EECF33)); background: -webkit-linear-gradient(#F8EDEF, #EECF33); background: -moz-linear-gradient(#F8EDEF, #EECF33); background: linear-gradient(#F8EDEF, #EECF33); -pie-background: linear-gradient(#F8EDEF, #EECF33); behavior : url(PIE.htc); } 4.linear-gradient as background image(グラデーション)▼css code only radius:3px
radius:3px
radius: 5px
radius: 5px
#05 { -webkit-border-radius:3px; -moz-border-radius:3px; border-radius: 3px; background: -webkit-gradient(linear, right center, left center, from(#afafff), to(#000066)); background: -moz-linear-gradient(#afafff, #000066); -pie-background: linear-gradient(#afafff, #000066); behavior : url(PIE.htc); } 5.multiple background images (背景に複数画像配置)
#06 { width : 200px; height: 100px; background: url(image1.gif) no-repeat,url(image2.gif) no-repeat, url(image3.gif) no-repeat,url(image4.gif) no-repeat,url(image5.gif) no-repeat; -pie-background: url(image1.gif) no-repeat,url(image2.gif) no-repeat, url(image3.gif) no-repeat,url(image4.gif) no-repeat,url(image5.gif) no-repeat; behavior: url(PIE.htc); } |