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