主题: 请教一下,如何在ext.net中允许得到焦点? |
作者: abis, 发布日期: 2012-09-10 13:13:53, 浏览数: 2483 |
我是在EXT.NET中使用的,在熬游的极速模式下不能获取焦点,但全屏后再恢复就可以了,请各位大侠看一下我的代码,什么地方出错了。 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="Abis.Web.Examples.Edit.Edit" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title></title> <link rel="stylesheet" href="/Resources/kindeditor/themes/default/default.css" /> <link rel="stylesheet" href="/Resources/kindeditor/plugins/code/prettify.css" /> <script type="text/javascript" language="javascript" charset="utf-8" src="/Resources/kindeditor/kindeditor.js"></script> <script type="text/javascript" language="javascript" charset="utf-8" src="/Resources/kindeditor/lang/zh_CN.js"></script> <script type="text/javascript" language="javascript" charset="utf-8" src="/Resources/kindeditor/plugins/code/prettify.js"></script> <script type="text/javascript" language="javascript"> var editor; KindEditor.ready(function (K) { editor = K.create('#content1', { cssPath: '/Resources/kindeditor/plugins/code/prettify.css', uploadJson: '/Resources/kindeditor/Server/upload_json.ashx', fileManagerJson: '/Resources/kindeditor/Server/file_manager_json.ashx', allowFileManager: true, //编辑器高度 width: '680px', //编辑器宽度 height: '400px;', newlineTag: '</br>', designMode:true, resizeType: 0, afterCreate: function () { var self = this; K.ctrl(document, 13, function () { self.sync(); K('form[name=formMain]')[0].submit(); }); K.ctrl(self.edit.doc, 13, function () { self.sync(); K('form[name=formMain]')[0].submit(); }); } }); prettyPrint(); }); </script> </head> <body> <script type="text/javascript" language="javascript" src="../../../Resources/Js/VType.js"></script> <form id="formMain" runat="server"> <div> <ext:ResourceManager ID="ResourceManagerMain" runat="server" DirectMethodNamespace="X" /> <ext:Viewport ID="ViewportMain" runat="server" Layout="border"> <Items> <ext:Panel ID="PanelMain" runat="server" Region="Center" Header="false" Border="false" Padding="0" Layout="fit"> <Content> <textarea id="content1" runat="server" ></textarea> </Content> </ext:Panel> </Items> </ext:Viewport> </div> </form> </body> </html> |
作者: abis, 发布日期: 2012-09-10 13:37:36 |
已经解决 |
回复 |