可乐要加冰Xx
2017-09-08 20:08
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的引号去掉也没用
a.style="text-decoration:none";
a.setAttribute("style", "text-decoration:none;");
用font_decoration
JavaScript进阶篇
469068 学习 · 22582 问题
相似问题