“Console.Log CSS Styling” Respostas de código

CSS em console.log

console.log("%cStop!", "font: 50px sans-serif; font-weight:bold; color:red; -webkit-text-stroke:1px black;");
DenverCoder1

CSS do estilo console.log

 console.log("%cThis is a %cConsole.log", "background:black ; color: white", "color: red; font-size:25px");
godwin_kvg

Console.Log CSS Styling


//example 1: (Default "STOP" you see when opening the console)
console.log(
        "%cStop!",
        "color:red;font-family:system-ui;font-size:4rem;-webkit-text-stroke: 1px black;font-weight:bold"
      );
//example 2:
console.log("%c" + someVariable, 'color:blue;border:2px solid red');
//example 3:
console.log("%cWord 1 %cWord2  ", 'color:red;border:2px solid blue;background:green','color:blue;border:2px solid red');
Meandering Meerkat

Respostas semelhantes a “Console.Log CSS Styling”

Perguntas semelhantes a “Console.Log CSS Styling”

Procure respostas de código populares por idioma

Procurar outros idiomas de código