首页 > 代码库 > 美化console.log的文本(转载)

美化console.log的文本(转载)

 

console.log("%c css88.com", "font-size:20pt")

 

console.log("%c 前端开发 %c css88.com %c 愚人码头", "color:red","","color:orange;font-weight:bold")

 

console.log("%c有阴影的log", "text-shadow: 3px 1px 1px grey") console.log(%c彩色文字啊 , background-image:-webkit-gradient( linear, left top, right top, color-stop(0, #f22), color-stop(0.15, #f2f), color-stop(0.3, #22f), color-stop(0.45, #2ff), color-stop(0.6, #2f2),color-stop(0.75, #2f2), color-stop(0.9, #ff2), color-stop(1, #f22) );color:transparent;-webkit-background-clip: text;font-size:5em;);
console.log("%c ", "background: url(http://css88.b0.upaiyun.com/css88/2014/03/jquery.png) no-repeat center;padding-left:120px;padding-bottom: 200px;")

 

美化console.log的文本(转载)