基于浏览器的分屏阅读


制作分屏书签


首先打开一款浏览器,此处以Chrome为例。

新建一个空页面
图1
将新建页面存为书签
在这里插入图片描述
在这里插入图片描述
进入书签管理界面,编辑书签网址
在这里插入图片描述
将其替换为如下代码,并保存。

javascript:document.write('<HTML><HEAD></HEAD><FRAMESET COLS=\'50%25,*\'><FRAME SRC=' + location.href + '><FRAME SRC=' + location.href + '></FRAMESET></HTML>')

在这里插入图片描述


分屏测试


打开预实现分屏的目标页面,点击刚刚制作好的分屏书签
在这里插入图片描述


分屏效果


在这里插入图片描述


恢复界面


如何恢复原始界面呢,刷新该页面即可,F5.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要同时分屏显示4个浏览器,并定义每个分屏的分辨率,您可以使用PowerShell的Start-Process命令启动浏览器,并使用Add-Type命令加载Windows API Code Pack库以访问Windows Shell API。 以下是一个同时分屏显示4个浏览器的示例脚本: ``` # 加载Windows API Code Pack库 Add-Type -AssemblyName Microsoft.WindowsAPICodePack.Shell # 定义每个分屏的分辨率 $screenWidth = [Microsoft.WindowsAPICodePack.Shell.ShellSystemMetrics]::PrimaryScreenWidth $screenHeight = [Microsoft.WindowsAPICodePack.Shell.ShellSystemMetrics]::PrimaryScreenHeight $splitWidth = $screenWidth / 2 $splitHeight = $screenHeight / 2 # 启动4个浏览器分屏显示 $browserPath = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" Start-Process $browserPath -ArgumentList "--window-position=0,0", "--window-size=$splitWidth,$splitHeight" -WindowStyle Maximized Start-Process $browserPath -ArgumentList "--window-position=$splitWidth,0", "--window-size=$splitWidth,$splitHeight" -WindowStyle Maximized Start-Process $browserPath -ArgumentList "--window-position=0,$splitHeight", "--window-size=$splitWidth,$splitHeight" -WindowStyle Maximized Start-Process $browserPath -ArgumentList "--window-position=$splitWidth,$splitHeight", "--window-size=$splitWidth,$splitHeight" -WindowStyle Maximized ``` 在上面的脚本中,我们使用Google Chrome浏览器作为示例,您需要将浏览器可执行文件的路径替换为您要使用的浏览器的路径。脚本将定义每个分屏的分辨率,并在每个分屏中启动一个最大化窗口的Chrome浏览器实例。 如果您需要同时分屏显示不同类型的浏览器,您可以使用相应的可执行文件路径替换$browserPath变量,并使用多个Start-Process命令启动它们。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值