layer.js--強大的彈出框
阿新 • • 發佈:2018-11-13
引入js
<script src="<%=basePath%>plugins/layer/layer.js"></script>
頁面彈出框程式碼
<table id="indexTable" class="table table-bordered" style="display: none;">
<tr height="50">
<td style="padding-top: 15px;padding-left: 15px;color:red;" id="retrunOpinion" >
</td>
</tr>
</table>
這裡可以通過js程式碼進行載入
js彈出操作
function promptOpinion() {
layer.open({
skin: 'layui-layer-lan', //深藍style
type: 1,
offset: 'm' //具體配置參考:offset引數項
,
content: $("#indexTable"),
area: '500px' ,
shade: 0, //不顯示遮罩
title: ['退回意見', 'font-size:14px;']
});
}