JSFiddle - React, Tailwind, and code Playground

by ijse

JavaScript

$(function() {
    var inode = $("<div>").append(
        $("<span>").text("关闭")
            .attr("style","float:right; margin-right:5px; cursor:pointer;")
            .click(function(){$(this).parent().slideUp('slow');})
    ).attr("style","height:30px;width:100%;position:absolute; top:0; background:url(http://fiddle.jshell.net/img/top-bg.png) repeat-x;");
    $("body").prepend(inode);
});