CSS3圆角背景?

.fxBtn{filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#26aee0', endColorstr='#0d7eaa'); background: -webkit-linear-gradient(top, #26aee0, #0d7eaa); background: -moz-linear-gradient(top, #26aee0, #0d7eaa); background: -ms-linear-gradient(top, #26aee0, #0d7eaa); background: linear-gradient(top, #26aee0, #0d7eaa);border:1px solid #000; border-radius:15px; color:#fff; padding:0px 10px; margin:0px 5px; cursor:pointer; display:inline-block; height:18px; line-height:18px;}
渐变背景在IE9里面怎么样才能也变成圆角?



手掌心
浏览 860回答 1
1回答

千万里不及你

圆角主要是通过border-radius 来实现:border-radius 属性是一个简写属性,用于设置四个 border-*-radius 属性。提示:该属性允许为元素添加圆角边框。简单的例子,仅供参考:1234567891011<style>&nbsp;&nbsp;&nbsp;&nbsp;.box&nbsp;{margin:100&nbsp;auto;&nbsp;width:200px;&nbsp;height:200px;&nbsp;position:relative;}&nbsp;&nbsp;&nbsp;&nbsp;.shadow&nbsp;{width:&nbsp;200px;&nbsp;height:200px;&nbsp;background:#ccc;&nbsp;border-radius:10px;}&nbsp;&nbsp;&nbsp;&nbsp;.xxx&nbsp;{width:150px;&nbsp;height:150px;&nbsp;background:red;&nbsp;position:absolute;}</style><body>&nbsp;&nbsp;&nbsp;&nbsp;<div&nbsp;class="box">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div&nbsp;class="shadow"></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div&nbsp;class="xxx"></div>&nbsp;&nbsp;&nbsp;&nbsp;</div></body>
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

CSS3