2012-10-18 60 views
0

我有一个Javascript代码,可以打开包含表格的弹出式窗口。问题是该表格包含太多的行要显示在屏幕区域。在IE和Chrome上,我有一个滚动条可以上下移动,但在Firefox上我没有。 这是JavaScript代码:Firefox中的滚动条

function openWindowInsertResp() { 
    ............. 
dropDownValueA + "&subactivityID=" + dropDownValueS, "PartialTask", "status = 1,height = auto,width = 900,top = 100,left=250,resizable = 1"); 
............. 
    } 

,这是HTML:

<table style="border:none; width:100%;"> 
<tr> 
<th style="text-align:center;"> 
No.</th> 
<th style="text-align:center;">Description</th></tr> 
@{ 
    int i=1; 
    foreach (Project.Domain.Entities.Labor_JobDesc cr in contracts) 
    { 
     <tr style="border:none"> 
     <td style="text-align:center; width:2%;">@i</td> 
     <td style="text-align:center;"> 
     <textarea cols="auto"; rows="auto"; style="width:100%;"; readonly="readonly"> @cr.Res</textarea> 
     </td> 
     </tr> 
     i++; 
    } 
} 
</table> 

我必须做的,在Firefox上的滚动条?有任何想法吗? 在此先感谢。

回答

2

使用

window.open(adress, '....other params..., scrollbars = yes') 
2

尝试加入 '滚动条= 1' 到您的window.open选项:

window.open(url, name, "status = 1, ... ,resizable = 1, scrollbars=1"); 
+0

这两个答案都是正确的,但我会接受的第一个(如FIFO) –

+0

那会是我的,然后,大约45秒前;) 没关系... –

+0

是的,@ Reinder的答案是更早,尽管我无法弄清楚这是怎么发生的,因为我检查是否有答案才发布我的。 –