Closed heypnus closed 8 years ago
举例:写文章时插入以下代码
在其他主题下,可以成功改变图片大小;但是在yelee主题下,图片还是会被拉伸到全屏,求解。 谢谢!
图片样式默认受 fancybox 模块控制,在主题 _config.yml 里关闭 fancybox 即可。
_config.yml
fancybox: false
明白了,谢谢!
做了些小改进,现在可以只在某篇文章中关闭 fancybox ,参考这里。
<img src="/test.jpg" width="150px" height="50px" title="test"/>
可以按百分比(保持长宽比)来改大小吗
举例:写文章时插入以下代码
在其他主题下,可以成功改变图片大小;但是在yelee主题下,图片还是会被拉伸到全屏,求解。 谢谢!