易截截图软件、单文件、免安装、纯绿色、仅160KB

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>


相关文档:

去除HTML格式 截取字符串

  //截取部分内容方法
        public static string strvalue(string value, int length)
        {
            string strValue = NoHTML(value);// 去除HTML标记
 &nb ......

通过HTML 注释性语法判断IE版本

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 ......

修改 html 标签属性

修改 checked 属性
     
    var sex = '${entity.sex}';
   if(sex == '男')
   {  
       
     //document.all.sexCk1.checked=true; 这种火狐不支持
 &nbs ......

HTML 5——下一代web开发标准

HTML 5——下一代web开发标准
HTML5看来将成为主流,浏览器战争乃至整个互联网的发展也将围绕这一点展开。而Flash、Silverlight和JavaFX等等RIA技术,将面临严峻的生存挑战
参考51cto
http://developer.51cto.com/art/200907/133407.htm ......

html 中 id 和name 的区别

百度了下 大体知道 如下区别:
id 代表唯一 ,在整个页面是唯一的,不能重复。
name 可以重复,整个页面的 name 可以都一样
用在JavaScript 中 时
document.getElementById("str") 返回的是 唯一的数据。
document.getElementsByName("str") 返回的是个数组。
还有什么区别?有待路人指证! ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号