0
我想调整我正在控制的屏幕的大小,使其不显示任何滚动条。我已经通过调整html元素的大小来做到这一点,但是通过这样做,光标的位置和移动在远端也会发生变化。我使用的鳄梨在Web客户端上的鳄梨调整大小调整屏幕
var display = document.getElementById("display");
// Instantiate client, using an HTTP tunnel for communications.
var guac = new Guacamole.Client(
new Guacamole.HTTPTunnel("tunnel")
);
// Add client to display div
var dis = guac.getDisplay().getElement();
dis.getElementsByTagName("canvas")[0].style = "width:1100px;"
dis.setAttribute("style", "width:1100px");
display.appendChild(guac.getDisplay().getElement());
// Error handler
guac.onerror = function(error) {
alert(error);
};
// Connect
guac.connect();