我运行locahost时不显示CSS [关闭]

am using Ubuntu OS and when i run my site in browser as an HTML file it displays the CSS but when i convert the site to a PHP file and run it using local host it doesn't display my CSS.i have attached some screenshots of the HTML and PHP views of the navigation bar.thank you for your timeHTML file view in browser

PHP file view

  • First check your css file. Is it available or not.
  • If that file is available then check the file directly wether you have access or not. For example, if the file in css directory. Try access it directly by url. Do you get any error?
  • If you doesn't have access to directory probably htaccess configuration or directory issue (set the directory access to public or chmod 777) and try to give htaccess to allow all https://httpd.apache.org/docs/current/howto/htaccess.html
Order allow,
deny Allow from all

$style ='';

            $style .='.'.$element_class.' .team-intro h5{color: '.$membar_info_color.';}';
            $style .='.'.$element_class.' .team-intro span{color: '.$membar_info_color.';}';
            $style .='.'.$element_class.' .team-intro {background: '.$membar_info_bg.';}';
            $style .='.'.$element_class.' .team-hover {background: '.$overlay_bg.';}';

            $style .='.'.$element_class.' .desk, .desk h4, p, .team-hover .s-link a {color: '.$desc_color.'; box-shadow:none;}';
            $style .='.'.$element_class.' .desk, .desk h4, p, .team-hover .s-link a:hover {color: '.$hover_color.';}';

            echo $border;

            if (empty($border)) {
                $style .= '.'.$element_class.' .team-hover {border: 20px solid '.$border_color.';}';
            }else{
                $style .= '.'.$element_class.' .team-hover {}';
            }

            $style .= '</style>';


        $output = '';
        $output .= $style;
        $output .= '<div class="team-member '.$element_class.' '.$element_id.'">
               HTML Code.....
            </div>';
        return $output;

Please try same way i hope you solved your problem. Thanks.