Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
ASP網頁 enter模擬Tab
Jul 22nd 2013, 02:00

用Visual Studio 2010 C# 寫了一個網頁來測試Enter模擬Tab的功能,可是我發現IE執行上沒問題Chrome就不行 有辦法可以解決嗎?

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default_TEST1.aspx.cs" Inherits="Default_TEST1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>

<script type="text/javascript">
function tabchange() {
if (event.keyCode == 13) {
event.keyCode = 9;
return event.keyCode;
}
}

function setStyle(x) {
document.getElementById(x).style.background = "#FFCCFF"
}

function freeStyle(x) {
document.getElementById(x).style.background = "white"
}

</script>
<style type="text/css">
.style3
{
width: 10px;
}
</style>

</head>
<body onkeydown="tabchange()">
<form id="form1" runat="server">
<div>

<asp:Panel ID="Panel1" runat="server" Height="349px">
<table style="width:100%;" bgcolor="#FFFFCC">
<tr>
<td>
<asp:Label ID="LabelID" runat="server" Text=""></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" ontextchanged="TextBox1_TextChanged"></asp:TextBox>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
<asp:CheckBox ID="CheckBox1" runat="server" />
</td>
<td class="style3">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>

<table style="width:100%;" bgcolor="#FFFFCC">
<tr>

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 jmuko99 的頭像
    jmuko99

    2016韓劇推薦好看的 , 學校2015 韓劇 線上看 , 2015韓劇排行榜前十名2016韓劇排行榜前十名 , 好看的韓劇推薦 , 2016韓劇收視率 , 韓劇推薦 , 2017好看的韓劇推薦 ,

    jmuko99 發表在 痞客邦 留言(0) 人氣()