alert弹框样式调整
window.alert = function(msg, callback) {
var div = document.createElement(“div”);
div.innerHTML = “<style type=“text/css”>”
+ ".nbaMask { position: fixed; z-index: 1000; top: 0; right: 0; left: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); } "
+ ".nbaMaskTransparent { position: fixed; z-index: 1000; top: 0; right: 0; left: 0; bottom: 0; } "
+ “.nbaDialog { position: fixed; z-index: 5000; width: 100%; max-width: 300px; height:120px; top: 25%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); background-color: #fff; text-align: center; border-radius: 8px; overflow: hidden; opacity: 1; color: white; }”
+ ".nbaDialog .nbaDialogHd { padding: 1.2rem .27rem .08rem .27rem; } "
+ ".nbaDialog .nbaDialogHd .nbaDialogTitle { font-size: 17px; font-weight: 400; } "
+ “.nbaDialog .nbaDialogB