html Öбí¸ñ³¤¶È¹Ì¶¨
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="gb2312" />
<title>test</title>
<meta name="Author" content="Doyoe(Æ®ÁãÎíÓê), edzmaster@gmail.com" />
<style type="text/css">
table {width:500px;table-layout:fixed;}
.col1 {width:100px;}
.col2 {width:200px;}
.col3 {width:200px;}
th strong {display:block;width:100%;}
tr strong,tr td {white-space:nowrap;overflow:hidden;}
</style>
</head>
<body>
<table border="1" cellspacing="0" summary="²âÊÔ">
<thead>
<tr>
<th class="col1"><strong>²úÆ·Ãû³Æ</strong></th>
<th class="col2"><strong>²úÆ·½éÉÜ</strong></th>
<th class="col3"><strong>²úÆ·±¸×¢</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</td>
<td>ÓÅÑÅQ400N£¬2007Äê7ÔÂÉÏÊУ¬²ÉÓÃIntel Core2 Duo(Merom) T5450(1.66G)´¦ÀíÆ÷</td>
<td>Ѹ³Û4ƽ̨£¬Í»³öµÄÐԼ۱ȣ¬Æ¯ÁÁµÄÍâ¹Û</td>
</tr>
</tbody>
</table>
</body>
</html>
Ïà¹ØÎĵµ£º
//½ØÈ¡²¿·ÖÄÚÈÝ·½·¨
public static string strvalue(string value, int length)
{
string strValue = NoHTML(value);// È¥³ýHTML±ê¼Ç
&nb ......
Example:
1.<!--[if !IE]><!--> ³ýIEÍⶼ¿Éʶ±ð <!--<![endif]-->
2.<!--[if IE]> ËùÓеÄIE¿Éʶ±ð <![endif]-->
3.<!--[if IE 5.0]> Ö»ÓÐIE5.0¿ÉÒÔʶ±ð <![endif]-->
4.<!--[if IE 5]> ½öIE5.0ÓëIE5.5¿ÉÒÔʶ±ð <![endif]-->
5.<!--[if gt IE 5.0]> IE ......
<label> ±êǩΪ input ÔªËض¨Òå±ê×¢£¨±ê¼Ç£©¡£
label ÔªËز»»áÏòÓû§³ÊÏÖÈκÎÌØÊâЧ¹û¡£²»¹ý£¬ËüΪÊó±êÓû§¸Ä½øÁË¿ÉÓÃÐÔ¡£Èç¹ûÄúÔÚ label ÔªËØÄÚµã»÷Îı¾£¬¾Í»á´¥·¢´Ë¿Ø¼þ¡£¾ÍÊÇ˵£¬µ±Óû§Ñ¡Ôñ¸Ã±êǩʱ£¬ä¯ÀÀÆ÷¾Í»á×Ô¶¯½«½¹µãתµ½ºÍ±êÇ©Ïà¹ØµÄ±íµ¥¿Ø¼þÉÏ¡£
<label> ±êÇ©µÄ for ÊôÐÔÓ¦µ±ÓëÏà¹ØÔªËØµÄ id ÊôÐÔÏ ......
<script language="javascript">
function newRow()
{
var tbl = document.all("mytbl");
var row = &nb ......