如何将弹出图像用于所有类型的分辨率手机 [英] How to use my pop up image for all type of resolution phones

查看:66
本文介绍了如何将弹出图像用于所有类型的分辨率手机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我正在做一个功能,当用户点击它需要显示一个弹出图像。

我的手机分辨率是480X854像素,

当我放到其他android手机喜欢低版本,不匹配。

你能指导我吗。



先谢谢你,

Hi I am doing a function, when user clicks it needs to display a popup image.
My phone resolution was 480X854 pixels,
When i put to other android phones like low version, its mismatching.
Can you guide me please.

Thanks in Advance,

推荐答案

您可以尝试根据您的情况尝试给出弹出容器宽度百分比(如100%)和填充px。



You can try giving your popup container width in percentage like 100% and padding in px according to your scenario.

.popup_container_example{
 width:100%;
 padding:15px;
 /* your code to suit your scenario*/
}


这篇关于如何将弹出图像用于所有类型的分辨率手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆