如何更改全局CSS

问题描述

我的网站上目前没有全屏滑动条。我想全屏显示。因此,当我检查网站时,我可以看到此代码

<!DOCTYPE html>
<!--TheFreeElectron 2015,http://www.instructables.com/member/TheFreeElectron/ -->

<html>
    <head>
        <Meta charset="utf-8" />
        <title>Antenna Relays</title>
    </head>
 
    <body style="background-color: black;">
    <h1><p style="color:white"><font size="7">     
     &emsp; &emsp; ANTENNA SELECTOR
    </p>
    
    </font></h1>
    <!-- On/Off button's picture -->
    <?PHP
    $val_array = array(0,0);
    //this PHP script generate the first page in function of the file
    for ( $i= 0; $i<4; $i++) {
        //set the pin's mode to output and read them
        system("gpio mode ".$i." out");
        exec ("gpio read ".$i,$val_array[$i],$return );
    }
    //for loop to read the value
    $i =0;
    for ($i = 0; $i < 4; $i++) {
        //if off
        if ($val_array[$i][0] == 0 ) {
            echo ("<img id='button_".$i."' src='data/img/red/red_".$i.".jpg' onclick='change_pin (".$i.");'/>");
        }
        //if on
        if ($val_array[$i][0] == 1 ) {
            echo ("<img id='button_".$i."' src='data/img/green/green_".$i.".jpg' onclick='change_pin (".$i.");'/>");
        }    
    }
    ?>
     
    <!-- javascript -->
    <script src="script.js"></script>
    </body>
</html>

代码来自Global.css,我在主题文件夹中没有该代码。 当我将此代码粘贴到css文件中时,将检查滑块上的最大宽度更改为100%变为全屏显示时,没有任何反应。如何将该代码移植到CSS?

谢谢。

解决方法

通常只需将其包含在CSS中即可。本地CSS优先于全局CSS设置。如果可以的话,请确保CSS文件包含在全局文件之后。