Windows 10 技术预览版:让IE11以Metro样式全屏运行
在Windows 8和Windows 8.1中,假如IE浏览器为系统默认浏览器,则在Metro中打开时会以全屏、触摸板的样式出现。
而在Windows 10 技术预览版中,这项功能被“去除”,但是如果你非常喜欢以前的样式,那么你可以尝试以下教程来恢复之前的样式哦~
(以下代码来自国外网友@adamUCF)
首先在桌面上新建一个文本文档,复制以下内容并粘贴进去,保存。
$code = @"
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace Win8 {[ComImport, Guid("2e941141-7f97-4756-ba1d-9decde894a3d"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
interface IApplicationActivationManager
{
IntPtr ActivateApplication([In] String appUserModelId, [In] String arguments, [In] UInt32 options, [Out] out UInt32 processId);
}[ComImport, Guid("45BA127D-10A8-46EA-8AB7-56EA9078943C")]//Application Activation Manager
public class ApplicationActivationManager : IApplicationActivationManager
{
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)/*, PreserveSig*/]
public extern IntPtr ActivateApplication([In] String appUserModelId, [In] String arguments, [In] UInt32 options, [Out] out UInt32 processId);}
}
"@add-type -TypeDefinition $code
$appman = new-object Win8.ApplicationActivationManager$appman.ActivateApplication("DefaultBrowser_NOPUBLISHERID!Microsoft.InternetExplorer.Default",$null,0,[ref]0)
保存好后将后缀.txt改成.ps1,然后右键使用PowerShell运行即可。或者直接点此下载
OK,就这样,如果IE还无法恢复以前的样式,请检查IE是否为默认浏览器。