課程
/前端開發(fā)
/JavaScript
/JavaScript入門篇
能不能讓alert彈出的窗口始終居中呢
2016-07-15
源自:JavaScript入門篇 2-2
正在回答
.Absolute-Center{
margin: auto;position: absolute;top: 0;left: 0;bottom: 0;right: 0;
} ? ? ??
應(yīng)該是這樣吧
yc2016 提問者
我試了試發(fā)現(xiàn)不會,不知道具體把居中的代碼添加在哪里 ,題主能貼個代碼么?
04149226
alert所在的 .類名 或#id名{
????????????????????????margin:0 auto;
}
添加個絕對居中樣式
{margin: auto;position: absolute;top: 0;left: 0;bottom: 0;right: 0;
}
舉報
JavaScript做為一名Web工程師的必備技術(shù),本教程讓您快速入門
1 回答alert兩次彈框問題
1 回答彈出alert對話框是還帶有禁止再顯示此對話框?
4 回答alert打印為什么沒有彈框了
3 回答不能彈出alert的消息
1 回答點了不要彈出對話框 然后現(xiàn)在想讓對話框彈出來 該怎么做?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2016-07-15
.Absolute-Center{
margin: auto;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
} ? ? ??
應(yīng)該是這樣吧
2016-07-21
我試了試發(fā)現(xiàn)不會,不知道具體把居中的代碼添加在哪里 ,題主能貼個代碼么?
2016-07-15
alert所在的 .類名 或#id名{
????????????????????????margin:0 auto;
}
2016-07-15
添加個絕對居中樣式
{
margin: auto;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}