js改变字体
发布网友
发布时间:2022-05-01 16:40
我来回答
共1个回答
热心网友
时间:2022-06-19 16:51
link.onmouseover = function(){
if(!this.font){
var font = this.currentStyle ? this.currentStyle.font : getComputedStyle(this, false).font;
this.font = font;
}
this.style.font = "bolder 22px consolas";
}
link.onmouseout = function(){
this.style.font = this.font;
}