为了账号安全,请及时绑定邮箱和手机立即绑定

this.currentBooks.rendition.themes.fontSize(fontSize)字号不能切换

老师,我跟着你的免费课程和付费课程一起看的。在代码中,

methods: {

setFontSize(fontSize) {

this.setDefaultFontSize(fontSize)

this.currentBooks.rendition.themes.fontSize(fontSize)

}

}

我fontSize字号能打印出来,就是字体大小不能跟着改变,不知道为什么

正在回答

3 回答

请问解决这个问题了吗, 不知道是不是版本的问题还是其他的一些什么原因

0 回复 有任何疑惑可以回复我~

打印一下你的fontsize 看一下是‘18’还是‘18px’没有的话加上;

this.currentBooks.rendition.themes.fontSize(fontSize+‘px’)

0 回复 有任何疑惑可以回复我~

请继续往下看,假如最后还是跑不起来的话来这里看看,地址:https://github.com/CruxF/IMOOC/tree/master/Vue?1545787902516

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

this.currentBooks.rendition.themes.fontSize(fontSize)字号不能切换

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号