HTML Table layout issue Draw a table
<!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>
<title>Test Page</title>
</head>
<body>
<table border="1px">
<tr>
<td rowspan="2">
XXX
</td>
<td>
XXX
</td>
</tr>
<tr>
<td>
XXX
</td>
</tr>
</table>
</body>
</html>
相关文档:
package com.jb.y2t034.thefifth.web.servlet;
import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import jav ......
<html>
<head>
<mce:style type = "text/css"><!--
div
{
overflow-y:scroll;
height:200;
overflow-x:scroll;
width:200;
}
--></mce:style><style type = "text/css" mce_bogus="1"> div
{
ove ......
用javascript判断一个html元素是否存在的五种方法:
1. 判断表单元素是否存在(一)
if("periodPerMonth" in document.theForm){
return true;
}else{
return false;
}
2. 判断页面元素是否存在
if(document.getElementById("XXX")){
//存在
}
3. 判断表单元素是否存在(二)
if(document.theForm. ......
.winstonDivClass{ overflow:hidden; zoom:1; }
如果父div需要根据子div的大小的变化而变化,那么这个父div
需要加上class="winstonDivClass"
,且该父div不能指定height属性,其中的子div的position属性最好为relative;
用zoom:1;触发ie的haslayout,用来清浮动
而overflow可以触发ie7的haslayout,并在FF ......