加粗变为斜体这个效果哪来的
function replaceMessage(){ var newnode = document.createElement('i'); var oldnode = document.getElementById('oldnode'); newnode.innerHTML = oldnode.innerHTML; oldnode.parentNode.replaceChild(newnode,oldnode) } 为什么会有加粗改为斜体这个效果?
function replaceMessage(){ var newnode = document.createElement('i'); var oldnode = document.getElementById('oldnode'); newnode.innerHTML = oldnode.innerHTML; oldnode.parentNode.replaceChild(newnode,oldnode) } 为什么会有加粗改为斜体这个效果?
2016-12-05
举报