在IE8下 嵌套在frame标签中的百度编辑器ueditor浮动,怎么解决呢?
1条回答
tech_lou 2016-08-23 08:20关注function() {
function transP(node) {
node.tagName = 'p';
node.setStyle();
}
return {
//直接删除及其字节点内容
'-': 'script style object iframe embed input select',
'p': {
$: {}
},
'br': {
$: {}
},
'div': {
'$': {}
},
'li': {
'$': {}
},
'caption': transP,
'th': transP,
'tr': transP,
'h1': transP,
'h2': transP,
'h3': transP,
'h4': transP,
'h5': transP,
'h6': transP,
'td': function(node) {
//没有内容的td直接删掉
var txt = !! node.innerText();
if (txt) {
node.parentNode.insertAfter(UE.uNode.createText(' '), node);
}
node.parentNode.removeChild(node, node.innerText())
}
}
}()解决 无用评论 打赏 举报