바탕 화면에서 onmouseover
은 녹색으로 바뀌고 그 다음 I click
이 빨간색으로 바뀌지 만 모바일 장치에서는 두 이벤트가 동시에 진행됩니다. 초록색을 탭 변경하면 두 번째 탭에서 붉은 색으로 변하는 것이 가능한가?svg에서 마우스를 가져 가서 모바일을 클릭하십시오.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="800" height="600" version="1.1" style="display:inline">
<g>
<rect id="rect1" x="160" y="10"
width="60" height="60" fill="blue"
onmouseout="evt.target.setAttribute('fill','blue');"
onclick="evt.target.setAttribute('fill','red');"
onmouseover="evt.target.setAttribute('fill','green');"/>
</g>
</svg>
감사합니다!