layer、弹出框

$(".div").click(function(){
var that = this;
// console.log(that.innerText);
layer.open({
title: [
'房间信息',
' color:#fff;margin:0;'
]
,anim: 'up'
// ,style: ' 100%; height: 100%;'
,content: '<div>这是一个房间信息</div>' +
'<img src="img/canting.jpg" class="picture" style=" 100%;height: 140px;">'+
'<p >一共5卓,每桌十人座</p>'
,btn: ['我去预定', '我再看看'],
// success: function(){
// $('img').click(function(){
// $(this).css('width','');
// $(this).css('height','')
// })
// },
yes: function(index){
console.log('点击了是');
console.log(that.innerText);
layer.close(index)
},
no:function(index){
console.log('您点了否');
layer.close(index)
}
});
});
原文地址:https://www.cnblogs.com/zcboy/p/7109515.html