[TOC] #### 1. 下拉選項(xiàng)被 ueditor 遮擋 --- layui 中使用 ueditor 發(fā)現(xiàn)下拉選項(xiàng)被 ueditor 遮擋住了,添加以下樣式代碼即可解決 ```css .layui-form-select dl { z-index: 9999; } ```  #### 2. 無法獲取 ueditor 的內(nèi)容 --- **錯誤示例:表單容器是 div 標(biāo)簽則無法獲取 ueditor 的內(nèi)容** 對于普通的表單元素表單容器是 div,layui 也都能獲取提交的內(nèi)容 ```html <!DOCTYPE html> <html> <head> <title>layui ueditor</title> <meta charset="utf-8"> <link rel="stylesheet" href="https://www.layuicdn.com/layui-v2.5.5/css/layui.css"> <script src="https://www.layuicdn.com/layui-v2.5.5/layui.js"></script> <style> .box { width: 60%; margin: 60px auto; } </style> </head> <body> <div class="box"> <div class="layui-form" action=""> <div class="layui-form-item"> <label class="layui-form-label">標(biāo)題</label> <div class="layui-input-block"> <input type="text" name="title" class="layui-input"> </div> </div> <div class="layui-form-item layui-form-text"> <label class="layui-form-label">內(nèi)容</label> <div class="layui-input-block"> <textarea id="container" name="content"></textarea> </div> </div> <div class="layui-form-item"> <div class="layui-input-block"> <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button> <button type="reset" class="layui-btn layui-btn-primary">重置</button> </div> </div> </div> </div> <!-- 配置文件 --> <script type="text/javascript" src="ueditor-1.4.3.2/ueditor.config.js"></script> <!-- 編輯器源碼文件 --> <script type="text/javascript" src="ueditor-1.4.3.2/ueditor.all.js"></script> <script> layui.use('form', function(){ var form = layui.form; // 實(shí)例化編輯器 var ue = UE.getEditor('container'); //監(jiān)聽提交 form.on('submit(formDemo)', function(data){ console.log(data.field) return false; }); }); </script> </body> </html> ``` **獲取不到 ueditor 的內(nèi)容**  **解決方案:上面表單容器 div 標(biāo)簽 改為 `form 標(biāo)簽`** ```html <form class="layui-form" action=""> <div class="layui-form-item"> <label class="layui-form-label">標(biāo)題</label> <div class="layui-input-block"> <input type="text" name="title" class="layui-input"> </div> </div> <div class="layui-form-item layui-form-text"> <label class="layui-form-label">內(nèi)容</label> <div class="layui-input-block"> <textarea id="container" name="content"></textarea> </div> </div> <div class="layui-form-item"> <div class="layui-input-block"> <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button> <button type="reset" class="layui-btn layui-btn-primary">重置</button> </div> </div> </form> ``` **正常獲取 ueditor 的內(nèi)容** 