fixed:图片居中

master
bobi 2019-10-29 14:47:21 +08:00
parent b20b8188b4
commit 6f0bfc6e49
1 changed files with 7 additions and 4 deletions

View File

@ -275,10 +275,10 @@ layui.use(["element", "layer", "okUtils", "okTab", "okLayer"], function () {
area: ["330px", "350px"],
tab: [{
title: "支付宝",
content: "<img src='images/zfb.jpg' width='200' height='300' style='margin-left: 60px'>"
content: "<img src='images/zfb.jpg' width='200' height='300' style='margin: 0 auto; display: block;'>"
}, {
title: "微信",
content: "<img src='images/wx.jpg' width='200' height='300' style='margin-left: 60px'>"
content: "<img src='images/wx.jpg' width='200' height='300' style='margin: 0 auto; display: block;'>"
}]
});
});
@ -286,12 +286,15 @@ layui.use(["element", "layer", "okUtils", "okTab", "okLayer"], function () {
/**
* QQ群交流
*/
$("body").on("click", ".layui-footer button.communication,#noticeQQ", function () {
$("body").on("click", ".layui-footer button.communication, #noticeQQ", function () {
layer.tab({
area: ["auto", "370px"],
tab: [{
title: "QQ群2",
content: "<img class='ptb10' src='images/qq2.png' width='200' height='300' style='margin: 0 30px'/>"
content: "<img src='images/qq2.png' width='200' height='300' style='margin: 0 auto; display: block;'/>"
}, {
title: "QQ群1已满",
content: "<img src='images/qq1.png' width='200' height='300' style='margin: 0 auto; display: block;'/>"
}]
});
});