This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
programmieren:php:debug [2019/08/19 19:05] – created jgehrke | programmieren:php:debug [2022/12/17 12:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 23: | Line 23: | ||
echo "</ | echo "</ | ||
}; | }; | ||
+ | </ | ||
+ | ===== Optionales CSS Styling ===== | ||
+ | |||
+ | Es kann schon auch Sinn machen, die Ausgabe der Debug-Funktion ein wenig zu stylen. Hier ein Beispiel CSS-Code der die Box in einen gelblichen " | ||
+ | |||
+ | <code css> | ||
+ | .debug{ | ||
+ | display | ||
+ | margin | ||
+ | padding | ||
+ | max-width | ||
+ | background-color : rgb(255 245 225); | ||
+ | border-left | ||
+ | } | ||
+ | .debug__title{ | ||
+ | margin | ||
+ | font-family : -apple-system, | ||
+ | font-weight : 600; | ||
+ | font-size | ||
+ | line-height : 22px; | ||
+ | color | ||
+ | text-shadow : 1px 1px 2px rgba(125, | ||
+ | } | ||
+ | .debug__print{ | ||
+ | margin | ||
+ | padding | ||
+ | font-family : Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace; | ||
+ | color | ||
+ | font-size | ||
+ | line-height : 22px; | ||
+ | } | ||
</ | </ | ||
+ |