Ich versuche, Inline-CSS mit PHP zu erstellen Nicht sicher, warum es nicht funktioniert Ich muss sein, um die CSS basierend auf den Daten aus meiner Datenbank zu schreiben Dies war ein Testskript zu sehen, ob ich php zwischen Style-Tags setzen könnte und erstellen cssErstellen von "CSS" mit "PHP"
<!DOCTYPE html>
<html>
<head>
<style>
*{padding-right: 0px; PADDING-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px;}
<?php
echo "<br/>";
echo '.button { ';
echo "<br/>";
echo 'background-color: green;';
echo "<br/>";
echo 'border: none;';
echo "<br/>";
echo 'color: white;';
echo "<br/>";
echo 'padding: 15px 32px;';
echo "<br/>";
echo 'text-align: center;';
echo "<br/>";
echo 'text-decoration: none;';
echo "<br/>";
echo 'display: inline-block;';
echo "<br/>";
echo 'font-size: 16px;';
echo "<br/>";
echo 'margin: 4px 2px;';
echo "<br/>";
echo 'cursor: pointer;';
echo "<br/>";
echo '} ';
echo "<br/>";
?>
</style>
</head>
<body>
<h2>CSS Buttons</h2>
<button>Default Button</button>
<a href="#" class="button">Link Button</a>
<button class="button">Button</button>
<input type="button" class="button" value="Input Button">
</body>
</html>
können Sie '* {padding-right: 0px; PADDING-links: 0px; padding-bottom: 0px; Rand: 0px; padding-top: 0px;} 'mit' * {padding: 0; margin: 0;} ' –