">
<head>
<meta http-equiv="Content-Type"/>
<title>表格示例</title>
</head>
<body>
<table width="447" border="2" align="center" cellpadding="2" cellspacing="4" bordercolor="#FF0000" bgcolor="#CCFFFF">
<tr>
<td width="158" height="40" background="bg.jpg">单元格设置背景</td>
<td width="175"> </td>
<td width="76"> </td>
</tr>
<tr>
<td height="40" align="right" valign="bottom">对其方式的设置</td>
<td bgcolor="#666666"><font color="#FFFFFF" size="+3">单元格的背景颜色</font></td>
<td> </td>
</tr>
<tr>
<td height="83" align="center" valign="middle">居中对齐</td>
<td bordercolor="#FFFFFF">单元格的边框颜色</td>
<td> </td>
</tr>
</table>
</body>
</html>
删除content="text/htmlcharset=utf-8“
这个才是正确的哈:<script>
function
showdiv(){
document.getelementbyid('div_h').style.display
=
'block'
}
</script>
<div
id="div_h"
style="display:none">隐藏的文字</div>
<input
type="button"
value="显示"
onclick="showdiv()"
/>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)