为什么加上a.style.text-decoration = "none";去不掉下划线,把none的引号去掉也没用
function create(url,text) { var body = document.body; var a = document.createElement("a"); a.setAttribute("href",url); a.innerHTML = text; a.style.color = "red"; a.style.text-decoration = "none"; body.appendChild(a); }
为什么加上a.style.text-decoration = "none";去不掉下划线,把none的引号去掉也没用