[英]Adding css modal to javascript new open window
I want adding class new open window with css model. 我想用CSS模型添加类新的打开的窗口。
class="modal-basic"
How can I configure new open window and adding class"modal-basic" to open window with JavaScript ? 如何配置新的打开的窗口并添加类“ modal-basic”以使用JavaScript打开窗口?
window.open('jex5.htm','mywindow','width=600,height=500,left=0,top=100');
Adding new class window so I don't want to input width=600,height=500,left=0,top=100
. 添加新的类窗口,所以我不想输入
width=600,height=500,left=0,top=100
。
window.open('jex5.htm','mywindow','clas=modal-basic');
The popup window appearance is designed by the browser and css cannot change its styling. 弹出窗口的外观是由浏览器设计的,css无法更改其样式。 If you want to open another location inside a modal just embed an iframe inside a div and style the div to look like your modal.
如果您想在模态内打开另一个位置,只需在div中嵌入一个iframe并设置div的样式使其看起来像模态即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.