You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
2.3 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="../../../component/pear/css/pear.css" />
<style>
.content {
width: 300px;
height: 140px;
/* border: 1px solid red; */
position: absolute;
top: 45%;
left: 50%;
border-radius: 12px;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
display: flex;
justify-content: space-between;
}
td {
text-align: center;
}
span {
cursor: pointer;
font-weight: bolder;
}
td img {
cursor: pointer;
}
</style>
</head>
<body class="pear-container layui-form">
<div class="content">
<table>
<colgroup>
<col width="350">
<col width="100">
<col width="350">
</colgroup>
<tbody>
<tr>
<td><img src="../imgs/form.png" alt="" style="width: 60%;height: 60%;" lay-on="form"></td>
<td></td>
<td><img src="../imgs/excel.png" alt="" style="width: 55%;height: 55%;" lay-on="excel"></td>
</tr>
<tr>
<td><span lay-on="form">表单</span></td>
<td></td>
<td><span lay-on="excel">EXCEL模板</span></td>
</tr>
</tbody>
</table>
</div>
<script src="../../../component/layui/layui.js"></script>
<script src="../../../component/pear/pear.js"></script>
<script>
layui.use(function () {
var $ = layui.jquery;
var util = layui.util;
util.on({
form: function () {
alert('表单');
},
excel: function () {
parent.layer.close(parent.layer.getFrameIndex(window.name));
parent.openExcelCreatePage();
}
});
});
</script>
</body>
</html>