jQuery模拟按键"ctrl and +" [英] jquery emulate key press "ctrl and +"

查看:125
本文介绍了jQuery模拟按键"ctrl and +"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道使用CSS移位来缩放页面的技术.

I know the technique for zoom the page using the shift of CSS.

我想创建一个按钮来模拟同时按下 CTRL + 的用户.

I want to make a button for emulate the user that press CTRL and + in same time.

在firefox中,如果我在页面缩放的同时按下 CTRL + .我想编写一个调用的函数,并模拟 CTRL +

In firefox if I press CTRL and + in the same time the page zooms. I want to write a function that I call and I emulate the press of CTRL and +

我该怎么做?

推荐答案

无法以您想要的方式完成.您无法在浏览器上下文中模拟按键.您必须坚持使用CSS变体使用ems来全局缩放字体大小.

Can't be done the way you want to do it. You can't emulate key strokes in browser context. You would have to stick with the CSS variant scaling your font-size globally using ems.

这篇关于jQuery模拟按键"ctrl and +"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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