<style>.active { ime-mode:active ;FONT-FAMILY: 'MS ゴシック'</style>
<asp:textbox id="txtBIKOU" runat="server" Width="642" Rows="5" CssClass="active " TextMode="MultiLine"></asp:textbox>
用css应该容易些
<asp:textbox id="txtBIKOU" runat="server" Width="642" Rows="5" CssClass="active " TextMode="MultiLine"></asp:textbox>
用css应该容易些
input type="text" class="active"
就这样吗???
<%@page pageEncoding="UTF-8"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
<!--
.active {
font-family: "MS ゴシック";
}
-->
</style>
</head>
<body>
<form name="form1" method="post" action="">
<table width="267" border="0" align="center" cellpadding="0" cellspacing="6">
<caption>
用户登陆
</caption>
<tr>
<td width="65">帐号:</td>
<td width="184">
<input name="username" type="text" id="username" class="active">
</td>
</tr>
<tr>
<td>密码:</td>
<td><input name="password" type="text" id="password"></td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="Submit" value="确 定"> </td>
</tr>
</table>
</form>
</body>
</html>
/*那个ime-mode:active 属性好像不对*/
<%@page pageEncoding="UTF-8"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
<!--
.active {
font-family: "MS ゴシック"; ime-mode:active;
}
-->
</style>
</head>
<body>
<form name="form1" method="post" action="">
<table width="267" border="0" align="center" cellpadding="0" cellspacing="6">
<caption>
用户登陆
</caption>
<tr>
<td width="65">帐号:</td>
<td width="184">
<input name="username" type="text" id="username" class="active">
</td>
</tr>
<tr>
<td>密码:</td>
<td><input name="password" type="text" id="password"></td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="Submit" value="确 定"> </td>
</tr>
</table>
</form>
</body>
</html>
/*还是中文,数字,英文,全角半角都能输入的,我要只能输入日语的全角汉字*/