“-webkit-transform: scale(2)” doesn't affect click area of Facebook Like Button (on iPad)

蓝咒 提交于 2019-12-13 12:57:29

问题


I've transformed size of iframe with like:

iframe
{
    transform: scale(2) !important; 
    -webkit-transform: scale(2) !important; 
    transform-origin: top left;
    -webkit-transform-origin: top left;
}

For all desktop browsers it works just fine, but in iPad Safari clickable area of links stay just the same size (look at third picture)

Does anybody know how it can be fixed?


回答1:


have you tried using the 'clip:' attribute?

ie: clip: rect(3px 20px 5px 8px);

Sorry if that's too much of a workaround.



来源:https://stackoverflow.com/questions/18267614/webkit-transform-scale2-doesnt-affect-click-area-of-facebook-like-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!