留一列不确定宽度就行。
例如
<tr><td width=100>固定宽度</td><td>不固定</td><td width=200>固定</td></tr>
当1600时,中间那个就是1300
当800时,中间那个就是500
例如
<tr><td width=100>固定宽度</td><td>不固定</td><td width=200>固定</td></tr>
当1600时,中间那个就是1300
当800时,中间那个就是500
<script language="JavaScript">
<!--
function Display()
{
if( parent.document.getElementById("MoXie_SN_Main").cols == "0,*" )
{
if (window.screen.availWidth < "1024" ) // Scan the screen.
{
parent.document.getElementById("MoXie_SN_Main").cols = "50%,50%"; // Give a equal cols parameter.
return true;
}
else if (window.screen.availWidth < "1280" )
{
parent.document.getElementById("MoXie_SN_Main").cols = "45%,55%";
return true;
}
else if (window.screen.availWidth < "1600" )
{
parent.document.getElementById("MoXie_SN_Main").cols = "42%,58%";
return true;
}
else
{
parent.document.getElementById("MoXie_SN_Main").cols = "35%,65%";
return true;
}
}
else
{
parent.document.getElementById("MoXie_SN_Main").cols = "0,*" ;
return true;
}
}
// This function produced by MoXie
// If you want to use this function please hold these res.thank you.
//-->
</script>