j***y 发帖数: 2074 | 1 有没有办法让用window.open()打开的网页的内容显示在window的正中?
我的代码如下:
function open_new_win()
{
window.open("poll.shtml", “align = center" "_blank", "width = 210, height =
600");
}
想让poll.shtml的内容显示在弹出窗口的正中,可这个align = center好象没有用? | l******g 发帖数: 90 | 2
=
the code to put the window on the center of the screen (or other place, such
as 200 pixel from left, etc.) should be placed in the "poll,shtml"
【在 j***y 的大作中提到】 : 有没有办法让用window.open()打开的网页的内容显示在window的正中? : 我的代码如下: : function open_new_win() : { : window.open("poll.shtml", “align = center" "_blank", "width = 210, height = : 600"); : } : 想让poll.shtml的内容显示在弹出窗口的正中,可这个align = center好象没有用?
| s**********i 发帖数: 711 | 3
you can't get the effect. you can only make a page in center
through HTML/CSS tags in its content.
【在 j***y 的大作中提到】 : 有没有办法让用window.open()打开的网页的内容显示在window的正中? : 我的代码如下: : function open_new_win() : { : window.open("poll.shtml", “align = center" "_blank", "width = 210, height = : 600"); : } : 想让poll.shtml的内容显示在弹出窗口的正中,可这个align = center好象没有用?
|
|