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

為了賬號安全,請及時綁定郵箱和手機立即綁定

幫我看看為什么顯示不出來那個效果?

按照老師的步驟來寫的代碼,但是我只能實現四個角的上面的左邊和右邊的角變成圓角,但是不能將下面的左邊和右邊的角變成圓角,這個是為什么?部分代碼:

.l_top_radius{

background:url(../images/l_top_radius.gif) no-repeat;

width:4px;

height:3px;

position:absolute;

left:0;

top:0;}

.r_top_radius{

background:url(../images/r_top_radius.gif) no-repeat;

width:4px;

height:3px;

position:absolute;

top:0;

right:0;}

.l_btm_radius{

background:url(../images/l_btm_radius.gif) no-repeat;

width:4px;

width:3px;

position:absolute;

bottom:0;

left:0;}

.r_btm_radius{

background:url(../images/r_btm_radius.gif) no-repeat;

width:0;

height:0;

position:absolute;

bottom:0;

right:0;}


正在回答

1 回答

55ed330f0001be5005000340.jpg

55ed331100015c0e05000338.jpg


你的代碼寫錯了,我用chrome的開發者工具給你指出來了,詳細看圖片。

另附正確代碼如下:

.l_top_radius{
??background:url(l_top_radius.gif)?no-repeat;
??width:4px;
??height:3px;
??position:absolute;
??left:0;
??top:0;
}
.r_top_radius{
??background:url(r_top_radius.gif)?no-repeat;
??width:4px;
??height:3px;
??position:absolute;
??top:0;
??right:0;
}
.l_btm_radius{
??background:url(l_btm_radius.gif)?no-repeat;
??width:4px;
??height:3px;??/*-----*/
??position:absolute;
??bottom:0;
??left:0;
}
.r_btm_radius{
??background:url(r_btm_radius.gif)?no-repeat;
??width:4px;???/*-----*/
??height:3px;??/*-----*/
??position:absolute;
??bottom:0;
??right:0;
}


1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
CSS圓角進化論
  • 參與學習       26410    人
  • 解答問題       96    個

CSS小圓角,三種制作方式都教給你,并詳細講解每一種的實現方式

進入課程

幫我看看為什么顯示不出來那個效果?

我要回答 關注問題
微信客服

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

幫助反饋 APP下載

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

公眾號

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