原理是使用回调函数来给文本和文本段落加上2文字宽度的缩进。使用时,给需要的文本或文本段落加上出现就执行的回调行为。回调函数的名称是 customindent
mugeda.addEventListener("renderready", function(){
window.customindent = function(ele){
ele.dom.childNodes[0].style.cssText += "text-indent:2em"
}
});
在以下公众号回复“缩进2文字”,获取本文的源文件链接