為什么加上a.style.text-decoration = "none";去不掉下劃線,把none的引號(hào)去掉也沒(méi)用
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的引號(hào)去掉也沒(méi)用
2017-09-23
a.style="text-decoration:none";
2017-09-22
?a.setAttribute("style", "text-decoration:none;");
2017-09-08
用font_decoration