我是新手使用SVG,无法弄清楚我在这里做错了什么.对于大多数人来说,如果我想改变颜色,我会使用:
svg path {
fill: blue;
}
Run Code Online (Sandbox Code Playgroud)
但对于这一个 - 以及我遇到的其他 - 由于某种原因,这种方式不起作用.
HTML
<div class="logo-wrapper">
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg id="logo-personal-care" width="100%" height="100%" viewBox="0 0 159 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"><g id="Pest-Peeve-Personal-Care-Logo"><g id="PERSONAL-CARE"><text x="19.199px" y="41px" style="font-family:Lucida Grande;font-size:11px;font-weight:500;fill:#fff;">P<tspan x="25.609px 31.901px 39.187px 45.441px 54.316px 62.773px 70.692px 76.887px 80.698px 88.639px 96.558px " y="41px 41px 41px 41px 41px 41px 41px 41px 41px 41px 41px ">ERSONAL CAR</tspan></text><text x="103.503px" y="41.007px" style="font-family:Lucida Grande;font-size:11px;font-weight:500;fill:#fff;">E</text></g><g id="PPLogo"><path id="Fill-1" d="M158.737,16.764l0,1.884c0,0.428 -0.348,0.777 -0.776,0.777l-12.385,0c-0.429,0 -0.777,-0.349 -0.777,-0.777l0,-15.298c0,-0.428 0.348,-0.776 …
Run Code Online (Sandbox Code Playgroud) 我正在使用 Shopify 并希望挂钩客户标签,但它们区分大小写。所以{% if customer.tags contains "wholesale" %}
不等于{% if customer.tags contains "Wholesale" %}
。我的客户在应用标签时可能会或可能不会坚持一种情况,所以我想在将来防止这种情况发生。
我想获取一个数组 customer.tags,并将所有值转换为小写。我正在尝试找出逻辑,但遇到了麻烦。
我想将 customer.tags 放入一个不起作用的新数组中。
{% assign newArray = customer.tags %}
{{ newArray }}
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?