首页 > 代码库 > 内容图片格式错误

内容图片格式错误

<script>
var mainIn = document.getElementById(‘mainIn‘);
var mainInimg = mainIn.getElementsByTagName(‘img‘);
for (var i = 0;i<mainInimg.length;i++) {
mainInimg[i].style.marginLeft=-2.4+‘rem‘;
mainInimg[i].style.border=0;
mainInimg[i].style.width= 100+‘%‘;
}
</script>

<div class="form-group">
<label for="page-content">版本专题内容</label>
<script id="page-content" name="content" type="text/plain"></script>
</div>

<!-- 配置文件 -->
<script type="text/javascript" src=http://www.mamicode.com/"__PUBLIC__/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src=http://www.mamicode.com/"__PUBLIC__/ueditor/ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
var ue = UE.getEditor(‘page-content‘, {
toolbars: [
[‘fullscreen‘, ‘source‘, ‘undo‘, ‘redo‘, ‘bold‘, ‘italic‘, ‘underline‘, ‘fontborder‘, ‘strikethrough‘, ‘|‘, ‘simpleupload‘, ‘insertimage‘, ‘attachment‘, ‘emotion‘, ‘link‘, ‘unlink‘, ‘|‘, ‘removeformat‘, ‘formatmatch‘, ‘autotypeset‘, ‘blockquote‘, ‘searchreplace‘, ‘pasteplain‘, ‘|‘, ‘forecolor‘, ‘backcolor‘, ‘insertorderedlist‘, ‘insertunorderedlist‘, ‘selectall‘, ‘cleardoc‘],
[‘inserttable‘, ‘insertrow‘, ‘insertcol‘, ‘mergeright‘, ‘mergedown‘, ‘deleterow‘, ‘deletecol‘, ‘splittorows‘, ‘splittocols‘, ‘splittocells‘, ‘deletecaption‘, ‘inserttitle‘, ‘mergecells‘, ‘deletetable‘, ‘insertparagraphbeforetable‘, ‘paragraph‘, ‘fontsize‘, ‘fontfamily‘]
],
initialFrameHeight: 500,
zIndex: 100
});
</script>


null


附件列表

     

    内容图片格式错误