CSS中如何实现分屏,或者点开一个网页时打开两个网页

来源:百度知道 编辑:UC知道 时间:2024/05/16 19:51:04

css不行,使用JavaScript的open方法即可
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
function change(){
var sw=window.screen.width;
var sh=window.screen.height;
window.open('http://www.google.com','newWin1','width='+sw/2+',height='+sh+',screenX=0,screenY=0');
window.open('