亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

CSS3圓角背景?

CSS3圓角背景?

手掌心 2018-08-27 14:10:16
.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里面怎么樣才能也變成圓角?
查看完整描述

1 回答

?
千萬里不及你

TA貢獻1784條經驗 獲得超9個贊

圓角主要是通過border-radius 來實現:

border-radius 屬性是一個簡寫屬性,用于設置四個 border-*-radius 屬性。

提示:該屬性允許為元素添加圓角邊框。

簡單的例子,僅供參考:

1234567891011<style>    .box {margin:100 auto; width:200px; height:200px; position:relative;}    .shadow {width: 200px; height:200px; background:#ccc; border-radius:10px;}    .xxx {width:150px; height:150px; background:red; position:absolute;}</style><body>    <div class="box">        <div class="shadow"></div>        <div class="xxx"></div>    </div></body>


查看完整回答
反對 回復 2018-09-18
  • 1 回答
  • 0 關注
  • 879 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號