2013-01-09 2 views
2

iPad에서 볼 수 있어야하는 웹 페이지를 만들고 있습니다.iPad 앱에서 탭 하이라이트 색상을 사용 중지 할 수 없습니다.

모든 것이 훌륭하지만 클릭 할 때마다이 성가신 검은 색 플래시가 있습니다. 나는 꽤 많은 솔루션을 시도했다 :

html { 
    -webkit-tap-highlight-color: rgba(0,0,0,0); 
    -webkit-user-select: none; 
    -webkit-touch-callout:none; 
} 


<script type="text/javascript"> 
    document.documentElement.style.webkitTouchCallout = "none"; 
</script> 

심지어 요소 자체에 추가 : 나는 그것을 독립 할 때

.viewCont { 
    width: 1000px; 
    height: 690px; 
    position: absolute; 
    background-repeat: no-repeat; 
    -webkit-tap-highlight-color: rgba(0,0,0,0); 
    -webkit-user-select: none; 
    -webkit-touch-callout:none; 
} 

그것은 내가 내 아이 패드 사파리에서 볼 때 작동하지만, 대시 보드 앱에서 깜박임이 반환됩니다.

누구나 힌트 나 조언이 있으십니까?

답변

3

HTML 태그뿐 아니라 모든 요소에이 기능을 적용해야합니다. 이처럼 시도하십시오

html * { 
    -webkit-tap-highlight-color: rgba(0,0,0,0); 
    -webkit-user-select: none; 
    -webkit-touch-callout:none; 
} 
+1

그건 그렇고. 성가신 검정색 강조 표시를 제거하려면 "-webkit-tap-highlight-color : rgba (0,0,0,0);"을 사용해야합니다. –

관련 문제