如何在PHP中将自己的CSS添加到Included表单中

如何在PHP中将自己的CSS添加到Included表单中,php,css,forms,overwrite,Php,Css,Forms,Overwrite,我在PHProxy 0.5b2上安装了代理服务器,其中包括迷你url表单。但是CSS有一个问题。每个访问过的页面都会覆盖和重叠我自己的CSS 我尝试为每个对象添加自己的style=“”,但不起作用(访问的站点覆盖css) My index.inc.php if ($_flags['include_form'] && !isset($_GET['nf'])) { $_url_form = '<div style="width:100%;margin:0;te

我在PHProxy 0.5b2上安装了代理服务器,其中包括迷你url表单。但是CSS有一个问题。每个访问过的页面都会覆盖和重叠我自己的CSS

我尝试为每个对象添加自己的style=“”,但不起作用(访问的站点覆盖css)

My index.inc.php

if ($_flags['include_form'] && !isset($_GET['nf']))
{
    $_url_form      = '<div style="width:100%;margin:0;text-align:center;border-bottom:1px solid #725554;color:#000000;background-color:#F2FDF3;font-size:12px;font-weight:bold;font-family:Bitstream Vera Sans,arial,sans-serif;padding:4px;">'
                    . '<form method="post" action="' . $_script_url . '">'
                    . ' <label for="____' . $_config['url_var_name'] . '"><a href="' . $_url . '">Address</a>:</label> <input id="____' . $_config['url_var_name'] . '" type="text" size="80" name="' . $_config['url_var_name'] . '" value="' . $_url . '" />'
                    . ' <input type="submit" name="go" value="Go" />'
                    . ' [go: <a href="' . $_script_url . '?' . $_config['url_var_name'] . '=' . encode_url($_url_parts['prev_dir']) .' ">up one dir</a>, <a href="' . $_script_base . '">main page</a>]'
                    . '<br /><hr />';

    foreach ($_flags as $flag_name => $flag_value)
    {
        if (!$_frozen_flags[$flag_name])
        {
            $_url_form .= '<label><input type="checkbox" name="' . $_config['flags_var_name'] . '[' . $flag_name . ']"' . ($flag_value ? ' checked="checked"' : '') . ' /> ' . $_labels[$flag_name][0] . '</label> ';
        }
    }

    $_url_form .= '</form></div>';
    $_response_body = preg_replace('#\<\s*body(.*?)\>#si', "$0\n$_url_form" , $_response_body, 1);
}
if($_标志['include_form']&&!isset($_GET['nf']))
{
$\u url\u表单=“”
. ''
. ' : '
. ' '
“[go:,]”
“

”; foreach($\标志为$flag\名称=>$flag\值) { 如果(!$\u冻结\u标志[$标志\u名称]) { $\u url\u form.=''.$\u标签[$flag\u name][0].'; } } $\u url\u表单=''; $\u response\u body=preg\u replace(“\\ si”、“$0\n$\u url\u form”、$\u response\u body,1); }
有什么帮助吗

谢谢
彼得

也许你可以试着把它放进去!您希望强制使用的样式旁边的重要信息?我做了,但不起作用。你的css代码是内联的吗?通常内联代码比包含的代码强。我在style.CSS中有CSS。内联代码修复了50%,因为如果我有这样的东西:它将从访问过的页面中获取css样式,如下所示:输入,选择,文本区域{背景色:#f5f5;边框:1px实心#ddd;边框半径:3px;方框阴影:1px 1px 3px#eee inset;颜色:#999;字体系列:'Lora',serif;字体大小:14px;字体大小:1.4rem;填充:16px;填充:1.6rem;宽度:100%;}是否有URL可以看到这个问题?