我似乎无法摆脱Illustrator CS5导出的SVG元素重复(作为CSS背景)之间的这个空白区域.
我使用的是一个简单的CSS background-image,background-repeat: repeat-x但每次重复之间总会有这个空格.我根本就没用background-size.
这是我所看到的(在Safari/Chrome上测试):

如果我打开SVG检查侧面是否有空格,那么没有任何东西(见右边的窗口),它一直到窗口的一侧:

我尝试用File -> Scripts -> SaveDocsAsSVG和保存在Illustrator中的图像Save as.. -> SVG.
HTML
<body>
<div class="outer">
<div class="inner">
</div>
</div>
</body>
Run Code Online (Sandbox Code Playgroud)
CSS
.outer {
background-color: #7fcefb;
height: 700px;
background-image: url('/wp-content/themes/grizzly/assets/img/trees.png');
background-position: center 95%;
background-repeat: repeat-x;
}
.inner {
background-image: url('/wp-content/themes/grizzly/assets/svg/treeshill.svg');
height: 700px;
background-position: center bottom;
background-repeat: repeat-x;
}
Run Code Online (Sandbox Code Playgroud) 不是我想要的,但我想知道为什么一元运算符不能直接处理Java中的值?
为什么result++;工作int result = 0;但result = 0++;不工作?
我能找到的docs只是一元运算符只需要一个operand,但是对于一个操作数没有明确的定义,它似乎可以是变量或值.