我用js对css做的一个样式进行了简单的移动效果实现,但在手机上会移出手机屏幕,
如何解决这个问题呢?谢谢!
关于css动画效果移动问题(手机屏幕适配问题)
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
6条回答 默认 最新
- Runing_snailLBNL 2016-11-08 01:32关注
{
xtype: 'button',
text: '',
iconCls: 'plus white',
cls: 'newBtn',
ui: 'action',
action: 'new'
,
draggable:{
direction: 'both',
initialOffset: { x: window.innerWidth - 20 - window.innerWidth / 2, y: window.innerHeight },
constraint: {
min: { x: 0, y: 0 },
max: { x: window.innerWidth - 50, y: window.innerHeight - 110}
}
}
}
这是一个可移动的button且不会移出屏幕,你可以模仿着实现你的拖动不移出屏幕。解决 无用评论 打赏 举报
悬赏问题
- ¥15 oracle集群安装出bug
- ¥15 关于#python#的问题:自动化测试
- ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
- ¥15 教务系统账号被盗号如何追溯设备
- ¥20 delta降尺度方法,未来数据怎么降尺度
- ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
- ¥15 再不同版本的系统上,TCP传输速度不一致
- ¥15 高德地图点聚合中Marker的位置无法实时更新
- ¥15 DIFY API Endpoint 问题。
- ¥20 sub地址DHCP问题