小编Ile*_*Nea的帖子

每次清除docker容器内的缓存时都无法创建存储目录

我正在使用 docker 在 Symfony 3.4 应用程序中工作。问题是在我进入容器并做

php bin/console cache:clear
Run Code Online (Sandbox Code Playgroud)

我总是有这个缓存问题:

Unable to create the storage directory (/var/www/app/var/cache/dev/profiler).
Run Code Online (Sandbox Code Playgroud)

我知道我可以使用以下方法解决它:

chmod 777 -R var/cache/* var/logs/*
Run Code Online (Sandbox Code Playgroud)

但是我再次清除缓存后,问题依旧。有没有办法只添加一次权限,等我清除缓存后这个问题就解决了?

谢谢你。

php caching symfony docker

5
推荐指数
2
解决办法
3709
查看次数

无法为未选中的复选框设置背景颜色

我正在尝试将未选中的复选框的背景颜色设置为白色,但我找不到方法来做到这一点。当选中和未选中时,它都会保持蓝色。我尝试过:

input[type=checkbox]:not(:checked) {
    background-color: white;
}
Run Code Online (Sandbox Code Playgroud)

并且:

input[type=checkbox]:after { (this one I don't think it's even valid)
    background-color: white;
}
Run Code Online (Sandbox Code Playgroud)

我目前的代码是:

input[type=checkbox]:not(:checked) {
    background-color: white;
}
Run Code Online (Sandbox Code Playgroud)
input[type=checkbox]:after { (this one I don't think it's even valid)
    background-color: white;
}
Run Code Online (Sandbox Code Playgroud)

如果有人有任何想法,我将不胜感激。谢谢

css checkbox

2
推荐指数
1
解决办法
6305
查看次数

标签 统计

caching ×1

checkbox ×1

css ×1

docker ×1

php ×1

symfony ×1