ios
  • html5
  • css3
  • uiwebview
  • mobile-safari
  • 2012-11-02 3 views 0 likes 
    0

    나는 하이라이트에 약간의 문제가있다. 이건 내 HTML 코드이상한 하이라이트 모바일 사파리

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

    입니다 :

    <a href="javascript: location.href = 'level://?id=123456';"> 
        <div class="Box" id="Box0"> 
         <table class="BoldText" style="margin:8px;"> 
          <tr> 
           <td valign="top" width="50"> 
            <div class="ProfileImage"> 
             <div style="background:url(<url>) top left no-repeat;"></div> 
            </div> 
           </td> 
           <td>gustaf98 published a level 
            <div style="width:220px; margin-top:4px;" class="lightText">Skiftnyckel</div> 
           </td> 
          </tr> 
         </table> 
        </div> 
    </a> 
    

    가 그리고 내가있는 UIWebView 내 아이폰에있는 상자를 터치하면이 결과 :

    이 내 CSS 코드

    Preview

    제 질문은 어떻게하면 검은 색 하이라이트를 얻을 수 있습니까? 전체 상자?

    도와주세요!

    답변

    0

    이 내용은 CSS에 따라 특정 컨테이너가 아닌 전체 HTML에 적용됩니다. 이 예제 나 링크에 대한 실례가 있습니까?

    강조 표시 할 상자에 구체적으로 적용 해보십시오. 예를 들어

    ...

    .box { 
         -webkit-tap-highlight-color: rgba(0,0,0,0.7); 
         -webkit-touch-callout: none; 
        } 
    
    +1

    이 나를 위해 작동하지 않습니다. :( –

    관련 문제