嗨Mark, 如果我们有 " name"和id对于任何形式的隐藏元素,只有名称将 小心......在我们的情况下,id不起作用。 您可以复制我在上一封邮件中提到的代码。试试 it ..这个问题有解决办法吗 谢谢 Srini 马克Rae写道: Hi Mark, This change wahtever u suggested does not seems to work...if we havethe "name" and "id" for any form hidden element, Only the "name" willbe taken care...in our case id will not work. You can copy the code which i mentioned in the previous mail..and tryit..is there any workaround for this problem ThanksSriniMark Rae wrote: " srini" < si **************** @ gmail.com写信息 新闻:11 ************** ********@a3g2000cwd.googlegro ups.com ... "srini" <si****************@gmail.comwrote in messagenews:11**********************@a3g2000cwd.googlegro ups.com... document.getElementsByName(''resW'')。value = screen.width ; document.getElementsByName(''resH'')。value = screen.height; document.getElementsByName(''resW'').value = screen.width; document.getElementsByName(''resH'').value = screen.height; document.getElementById(''resW'')。value = screen.width; document.getElementById(''resH'' ).value = screen.height; document.getElementById(''resW'').value = screen.width;document.getElementById(''resH'').value = screen.height; 这篇关于ASP.NET中的Javascript变量(屏幕分辨率)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-31 23:36