(1)layui官网下载最新的样式压缩包,项目static目录下;
(2)编辑器页面:
导入css样式:<link rel="stylesheet" href="static/layui/css/layui.css" />
导入js:<script type="text/javascript" src="static/layui/layui.all.js" charset="utf-8"></script>
<form action="xxxx.do" name="Form" id="Form" method="post">
<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">封面图:</td>
<td ><button type="button" class="layui-btn layui-btn-normal" id="shangchuan">选择文件</button><br />
<input id="TUPIAN" name="TUPIAN" value="${pd.TUPIAN}" type="text" readonly="readonly" style="margin-top: 10px;width: 98%"/> </td>
</tr>
<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">内容:</td>
<td><textarea type="text" name="NEIRONG" id="NEIRONG">${pd.NEIRONG}</textarea></td>
</tr>
</form>
js:
<script ty