百度ueditor编辑器背景不显示问题


网友办法:http://www.hongxuejing.com/hulianwang/ueditor_not_show_background-33.html

官方办法:http://fex-team.github.io/ueditor/#start-uparse

我的解决方法:

  在文章结尾加上:

<div id="content">文章内容</div>
<script> $(function () { var cbg = $("#content p[data-background]:hidden"); if(cbg.length>0) $("#content").attr("style", cbg.attr("data-background")); }) </script>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM