第2118章 她最好能有任性的资格(3 / 4)
varnefont=eval(fontsize-2);
(&ot;divreaderntaer&ot;)css(&ot;font-size&ot;,nefont+&ot;px&ot;);
(&ot;ddps&ot;)htl(&ot;a+&ot;);
varfontbody=(&ot;divreaderntaer&ot;)css(&ot;font-size&ot;);
varfontsize=parset(fontbody);
if(fontsize==16){
(&ot;dd&ot;)htl(&ot;a&ot;);
}
添加okie记录
setokie(&ot;readsetfontsize&ot;,nefont,30);
}
});
增大字体
(&ot;ddps&ot;)click(function(){
varfontbody=(&ot;divreaderntaer&ot;)css(&ot;font-size&ot;);
varfontsize=parset(fontbody);
if(fontsizea-&ot;);
varfontbody=(&ot;divreaderntaer&ot;)css(&ot;font-size&ot;);
varfontsize=parset(fontbody);
if(fontsize==28){
(&ot;ddps&ot;)htl(&ot;a&ot;);
}
添加okie记录
setokie(&ot;readsetfontsize&ot;,nefont,30);
}
});
行间距设置增大
(&ot;hang-xiao&ot;)click(function(){
varleheight=(&ot;divreaderntaer&ot;)css(&ot;le-height&ot;);
varleheightnu=parset(leheight);
if(leheightnu25){
varlehn=eval(leheightnu-4);
(&ot;divreaderntaer&ot;)css(&ot;le-height&ot;,lehn+&ot;px&ot;);
(&ot;hang-da&ot;)htl(&ot;t+&ot;);
varleheight=(&ot;divreaderntaer&ot;)css(&ot;le-height&ot;);
varleheightnu=parset(leheight);
if(leheightnu==22){
(&ot;hang-xiao&ot;)htl(&ot;t&ot;);
}
添加okie记录
setokie(&ot;readsetleheihgt&ot;,lehn,30);
}
});
行间距设置减小
(&ot;hang-da&ot;)click(function(){
varleheight=(&ot;divreaderntaer&ot;)css(&ot;le-height&ot;);
varleheightnu=parset(leheight);
if(leheightnut-&ot;);
varleheight=(&ot;divreaderntaer&ot;)css(&ot;le-height&ot;);
varleheightnu=parset(leheight);
if(leheightnu==46){
(&ot;hang-da&ot;)htl(&ot;t&ot;);
}
添加okie记录
setokie(&ot;readsetleheihgt&ot;,lehn,30);
}
});
切换阅读背景颜色
(&ot;d_bgdlspan&ot;)each(function(dex,elent){
(this)clic
↑返回顶部↑