Also... Das is meine Stylesheet-Datei:
Code:
/* main.css */
.blank {
background-color:#FFFFFF;
width:10px;
}
.m_body {
background-color:#FFFFFF;
}
.m_msg_table {
/* this class is for the output table in the menu */
background-color:#FFFFFF;
width:100%;
/*height:20%;*/
border:0;
border-collapse:collapse;
border-spacing:0px;
border-bottom-style:dotted;
border-bottom-color:#0066FF;
border-bottom-width:1px;
}
.m_main_table {
/* this class is for the main table in the menu */
background-color:#FFFFFF;
width:100%;
/*height:80%;*/
border:0px;
border-collapse:collapse;
border-spacing:0px;
border-top-style:dotted;
border-top-color:#0066FF;
border-top-width:1px;
border-right-style:dotted;
border-right-color:#0066FF;
border-right-width:1px;
/* the scrollbars */
overflow:scroll; /* create scrollbars if we have to many content in the table */
}
.m_main_td {
/* this class is for the main links in the menu */
background-color:#FFFFFF;
font-family:Tahoma;
font-size:11px;
font-weight:bold;
text-decoration:none;
text-align:left;
color:#000000;
}
/* usw. */
Das ist meine PHP-Funktion:
PHP-Code:
<?php
function GetCSSData($path) {
if(!is_file($path))
die("$path ist keine gültige Stylesheet-Datei...
\n");
$style = "";
$data = array();
$css = file($path);
foreach( $css as $line ) {
preg_replace("/\n|\r|\n\r/","", $line);
if(preg_match("/^\/\*/", $line))
continue;
if(preg_match("/^\*\//", $line))
continue;
$style .= preg_replace("/{(.*?)}/","$1",$line);
}
echo $style. "
\n";
}
?>
Und das ist mein Output:
Zitat:
|
.blank { background-color:#FFFFFF; width:10px; } .m_body { background-color:#FFFFFF; } .m_msg_table { /* this class is for the output table in the menu */ background-color:#FFFFFF; width:100%; /*height:20%;*/ border:0; border-collapse:collapse; border-spacing:0px; border-bottom-style:dotted; border-bottom-color:#0066FF; border-bottom-width:1px; } .m_main_table { /* this class is for the main table in the menu */ background-color:#FFFFFF; width:100%; /*height:80%;*/ border:0px; border-collapse:collapse; border-spacing:0px; border-top-style:dotted; border-top-color:#0066FF; border-top-width:1px; border-right-style:dotted; border-right-color:#0066FF; border-right-width:1px; /* the scrollbars */ overflow:scroll; /* create scrollbars if we have to many content in the table */ } .m_main_td { /* this class is for the main links in the menu */ background-color:#FFFFFF; font-family:Tahoma; font-size:11px; font-weight:bold; text-decoration:none; text-align:left; color:#000000; }
|
Also bei mir funzt es net...