掘金写文章样式收藏(持续更)

583 阅读1分钟
<h2>h2</h2>

h2


<hr/>

<blockquote>
    blockquote
</blockquote>
blockquote
<img src='https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2020/3/28/1711f45ff67027c1~tplv-t2oaga2asx-image.image'>
<strong>strong</strong>

strong

<i>i</i>

i

<code>code</code>

code

$\color{blue}{blue}$

blue\color{blue}{blue}

代码块展示console.log结果

var app = document.getElementById("app");
app.innerHTML = "";
console.log = function () {
    var args = [];
    for (var _i = 0; _i < arguments.length; _i++) {
        args[_i] = arguments[_i];
    }
    var app = document.getElementById("app");
    args.forEach(function (arg) {
        app.innerHTML += "<div>".concat(arg, "</div>");
    });
};