課程
/前端開發
/JavaScript
/網頁廣告特效
他這個關閉按鈕鏈接 a? 怎么定位的 啊? ???
2015-03-19
源自:網頁廣告特效 1-1
正在回答
? ?在a的樣式中 有一個?
#guanggao .img a#yangshi{
background: url(../images/icon.jpg) -399px -19px no-repeat;
width: 16px;
height: 16px;
display: inline-block;
position: absolute;
top: 5px;
right: 5px;
}
其中
是作為a的定位作用的
舉報
原來這么EASY,從淺到深,逐步優化代碼,讓你深入理解
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-04-16
? ?在a的樣式中 有一個?
#guanggao .img a#yangshi{
background: url(../images/icon.jpg) -399px -19px no-repeat;
width: 16px;
height: 16px;
display: inline-block;
position: absolute;
top: 5px;
right: 5px;
}
其中
position: absolute;
top: 5px;
right: 5px;
是作為a的定位作用的