0
내 HTML 문서에 두 개의 SVG 구조가 있습니다. 예동일한 SVG 구조 내에서 SVG 연결
<svg width="8cm" height="3cm"
xmlns="http://www.w3.org/2000/svg" version="1.1">
<desc>Local URI references within ancestor's 'defs' element.</desc>
<defs>
<linearGradient id="Gradient01">
<stop offset="20%" stop-color="#39F" />
<stop offset="90%" stop-color="#F3F" />
</linearGradient>
</defs>
<rect x="1cm" y="1cm" width="6cm" height="1cm" fill="url(#Gradient01)" />
</svg>
및
<svg width="8cm" height="3cm"
xmlns="http://www.w3.org/2000/svg" version="1.1">
<defs>
<linearGradient id="Gradient01">
<stop offset="20%" stop-color="#85F" />
<stop offset="90%" stop-color="#35F" />
</linearGradient>
</defs>
<rect x="10cm" y="10cm" width="60cm" height="10cm" fill="url(#Gradient01)" />
</svg>
SVG 구조 모두에서 ID 「Gradient01 "와"이 LinearGradient 태그 "가 비록 말해, 제 SVG 구조의 RECT 또한"이 LinearGradient 뒤에 "첫번째 것의. (전체 문서에서 ID를 검색 할 때)
어쨌든 SVG 구조 내에서만 항상 링크됩니다. (제 경우로는 ID를 변경할 수 없습니다)
답장을 보내 주셔서 감사합니다. 하지만 iframe이나 개체를 사용하지 않고 다른 방법이 있습니까 ?? – geeky
단일 문서에는 고유 ID가 있어야합니다. ID를 고유하게 만들기 위해 이드를 변경할 준비가되지 않았다면 개별 문서로 분할해야합니다. –