首页 > 其他 > 详细

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

时间:2014-12-05 23:55:34      阅读:338      评论:0      收藏:0      [点我收藏+]

原文地址:http://www.css88.com/archives/5260

 

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的文本(转载)

原文:http://www.cnblogs.com/wangjunwei/p/4147610.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!