Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 不使用css的变量更少_Html_Css_Less - Fatal编程技术网

Html 不使用css的变量更少

Html 不使用css的变量更少,html,css,less,Html,Css,Less,我的less变量(例如,如果我将h1 color设置为#000)不起作用,但代码的其余部分起作用 这是我的HTML: <link rel="stylesheet" type="text/css" href="styles.less?ts=123456789<=filemtime('style.css')?> 您有两个选项: 您需要在服务器()中“编译”更少的文件 添加在浏览器中执行此操作的脚本。阅读并搜索“客户端使用” 这没有帮助,它说我需要使用node,但当我在mac上安

我的less变量(例如,如果我将h1 color设置为#000)不起作用,但代码的其余部分起作用

这是我的HTML:

<link rel="stylesheet" type="text/css" href="styles.less?ts=123456789<=filemtime('style.css')?> 
您有两个选项:

  • 您需要在服务器()中“编译”更少的文件
  • 添加在浏览器中执行此操作的脚本。阅读并搜索“客户端使用”

  • 这没有帮助,它说我需要使用node,但当我在mac上安装它时,它就消失了。因此,使用客户端选项将脚本添加到代码中,或者询问如何解决服务器的问题。