我有一个 svg,我需要用渐变填充它,css 是由脚本添加的,如果你使用单一的 RGB 颜色,它都可以正常工作,但是使用渐变,SVG 会导致白色背景。
脚本后的结果代码:
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
id="Livello_1" x="0px" y="0px" viewBox="0 0 70 70"
style="enable-background:new 0 0 70 70;width: 50px; height: 50px;"
xml:space="preserve">
<defs>
<lineargradient id="grC29M" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:rgb(88,88,88);stop-opacity:1"></stop>
<stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:1"></stop>
</lineargradient>
</defs>
<path class="st0" d="......" style="fill: url("#grC29M")">
</svg>
Run Code Online (Sandbox Code Playgroud)
谢谢!
在高级模板前端的主配置中配置缓存组件时,我收到异常,在我的 php.ini 上启用了扩展 rsults,如何解决此问题?前端/config/main.php:
'cache' => [
'class' => 'yii\caching\ApcCache',
'keyPrefix' => 'myapp', // a unique cache key prefix
],
Run Code Online (Sandbox Code Playgroud)
关于phpinfo()
apcu: