01.12.2004, 18:05
|
|
Регистрация: Dec 2004
Сообщений: 5
|
Спасибо, это работает, а как допустим, применить к элементам таблицы
<html>
<head>
<script language="JavaScript" type="text/javascript">
function change_style() {
if(screen.width==800) {
document.body.style.fontSize="10px"
} if(screen.width==1024) {
document.body.style.fontSize="500px"
}
}
</script>
</head>
<body onload="change_style();">
<div id="div_top">
<table border=1 cellspacing='0' >
<tr >
<td >qwerty</td>
<td >asdfgh</td>
</tr>
</table>
</div>
</body>
</html>
|