Closed dgunzi closed 2 years ago
实在找不到原因了,过来请教一下,近期用font-carrier写了份处理svg到iconfont程序,发现我的一张图片,怎么转都是这个样子。 我的原始svg代码如下: <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.2674 1.1665H2.00078C1.61578 1.1665 1.30078 1.4815 1.30078 1.8665V12.1332C1.30078 12.5182 1.61578 12.8332 2.00078 12.8332H12.2674C12.6524 12.8332 12.9674 12.5182 12.9674 12.1332V1.8665C12.9674 1.4815 12.6583 1.1665 12.2674 1.1665ZM12.0341 11.8998H2.23411V2.09984H12.0341V11.8998Z M10.1671 1.1665H4.10039C3.71539 1.1665 3.40039 1.4815 3.40039 1.8665V6.29984C3.40039 6.68484 3.71539 6.99984 4.10039 6.99984H10.1671C10.5521 6.99984 10.8671 6.68484 10.8671 6.29984V1.8665C10.8671 1.4815 10.5579 1.1665 10.1671 1.1665ZM9.93372 6.0665H4.33372V2.09984H9.93372V6.0665Z M8.65026 5.24984C8.39359 5.24984 8.18359 5.03984 8.18359 4.78317V3.38317C8.18359 3.1265 8.39359 2.9165 8.65026 2.9165C8.90693 2.9165 9.11693 3.1265 9.11693 3.38317V4.78317C9.11693 5.03984 8.91276 5.24984 8.65026 5.24984Z" fill="#00AAE8"/> </svg> 是不是需要在进行转化前对svg有个什么要求,求解?
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.2674 1.1665H2.00078C1.61578 1.1665 1.30078 1.4815 1.30078 1.8665V12.1332C1.30078 12.5182 1.61578 12.8332 2.00078 12.8332H12.2674C12.6524 12.8332 12.9674 12.5182 12.9674 12.1332V1.8665C12.9674 1.4815 12.6583 1.1665 12.2674 1.1665ZM12.0341 11.8998H2.23411V2.09984H12.0341V11.8998Z M10.1671 1.1665H4.10039C3.71539 1.1665 3.40039 1.4815 3.40039 1.8665V6.29984C3.40039 6.68484 3.71539 6.99984 4.10039 6.99984H10.1671C10.5521 6.99984 10.8671 6.68484 10.8671 6.29984V1.8665C10.8671 1.4815 10.5579 1.1665 10.1671 1.1665ZM9.93372 6.0665H4.33372V2.09984H9.93372V6.0665Z M8.65026 5.24984C8.39359 5.24984 8.18359 5.03984 8.18359 4.78317V3.38317C8.18359 3.1265 8.39359 2.9165 8.65026 2.9165C8.90693 2.9165 9.11693 3.1265 9.11693 3.38317V4.78317C9.11693 5.03984 8.91276 5.24984 8.65026 5.24984Z" fill="#00AAE8"/> </svg>
实在找不到原因了,过来请教一下,近期用font-carrier写了份处理svg到iconfont程序,发现我的一张图片,怎么转都是这个样子。 我的原始svg代码如下:
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.2674 1.1665H2.00078C1.61578 1.1665 1.30078 1.4815 1.30078 1.8665V12.1332C1.30078 12.5182 1.61578 12.8332 2.00078 12.8332H12.2674C12.6524 12.8332 12.9674 12.5182 12.9674 12.1332V1.8665C12.9674 1.4815 12.6583 1.1665 12.2674 1.1665ZM12.0341 11.8998H2.23411V2.09984H12.0341V11.8998Z M10.1671 1.1665H4.10039C3.71539 1.1665 3.40039 1.4815 3.40039 1.8665V6.29984C3.40039 6.68484 3.71539 6.99984 4.10039 6.99984H10.1671C10.5521 6.99984 10.8671 6.68484 10.8671 6.29984V1.8665C10.8671 1.4815 10.5579 1.1665 10.1671 1.1665ZM9.93372 6.0665H4.33372V2.09984H9.93372V6.0665Z M8.65026 5.24984C8.39359 5.24984 8.18359 5.03984 8.18359 4.78317V3.38317C8.18359 3.1265 8.39359 2.9165 8.65026 2.9165C8.90693 2.9165 9.11693 3.1265 9.11693 3.38317V4.78317C9.11693 5.03984 8.91276 5.24984 8.65026 5.24984Z" fill="#00AAE8"/> </svg>
是不是需要在进行转化前对svg有个什么要求,求解?