GOogle chrome浏览器设置新标签页的简单方法
作者:admin 日期:2016-12-15
chrome应用商店搜索“New tab URL”,安装设置即可。
sqlserver查看数据库编码
作者:admin 日期:2016-12-14
webbrowser浏览器版本设置
作者:admin 日期:2016-08-12
Browser Emulation
Windows Internet Explorer 8 and later. The FEATURE_BROWSER_EMULATION feature defines the default emulation mode for Internet Explorer and supports the following values.
Value | Description |
11001 (0x2AF9 | Internet Explorer 11. Webpages are displayed in IE11 edge mode, regardless of the declared !DOCTYPE directive. Failing to declare a !DOCTYPE directive causes the page to load in Quirks. |
11000 (0x2AF8) | IE11. Webpages containing standards-based !DOCTYPE directives are displayed in IE11 edge mode. Default value for IE11. |
10001 (0x2711) | Internet Explorer 10. Webpages are displayed in IE10 Standards mode, regardless of the !DOCTYPE directive. |
10000 (0x02710) | Internet Explorer 10. Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode. Default value for Internet Explorer 10. |
9999 (0x270F) | Windows Internet Explorer 9. Webpages are displayed in IE9 Standards mode, regardless of the declared !DOCTYPE directive. Failing todeclare a !DOCTYPE directive causes the page to load in Quirks. |
9000 (0x2328) | Internet Explorer 9. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode. Default value for Internet Explorer 9.
Important In Internet Explorer 10, Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode.
|
8888 (0x22B8) | Webpages are displayed in IE8 Standards mode, regardless of the declared !DOCTYPE directive. Failing to declare a !DOCTYPE directivecauses the page to load in Quirks. |
8000 (0x1F40) | Webpages containing standards-based !DOCTYPE directives are displayed in IE8 mode. Default value for Internet Explorer 8
Important In Internet Explorer 10, Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode.
|
7000 (0x1B58) | Webpages containing standards-based !DOCTYPE directives are displayed in IE7 Standards mode. Default value for applications hosting the WebBrowser Control. |
MySQL正则表达式查询
作者:admin 日期:2016-04-20
css3背景图片全屏显示
作者:admin 日期:2016-03-31
如何用css背景图片拉伸 以及100% 满屏显示呢?这个问题听起来似乎很简单。但是很遗憾的告诉大家。不是我们想的那么简单。
比如一个容器(body,div,span)中设定一个背景。这个背景的长宽值在css2.1之前是不能被修改的。
所以实际的结果是只能重复显示,所以出现了repeat,repeat-x,repeat-y,no-repeat这些属性。就是用来控制背景图片的显示的。所以一般用作背景图片的有2类:
1.是一整张大图,尺寸和区域大小刚好吻合
2.一个很小的条状图,通过repeat后,形成一个很规则的大图背景。
但是css3出现以后,这个情况被改善了。background-size 属性可以让我们之前的希望成真。
而且这个属性在firefox,chrome,以及ie9上都可以使用。
背景图尺寸(数值表示方式):
- #background-size{
- background-size:200px 100px;
- }
用命令实现Win7远程桌面关机和重启
作者:admin 日期:2016-01-12
今天远程桌面到Windows7上,需要远程重启,可是发现没有重启的选项,还是和XP一样,在Windows7中没有加入远程重启或关机的功能,无奈还是只能通过命令来重启了,具体方法如下:
如果你要远程重启Windows7,只需要在运行框中输入shutdown -r -t 0后回车即可;
如果你要远程关闭Windows7,只需要在运行框中输入shutdown -s -t 0后回车即可。
当然需要先打开运行框(Win+R键),输入上述命令即可,后面的数字表示关机/重启延迟的时间
关机 shutdown -s -t 0
重启 shutdown -r -t 0
打开运行框(Win+R键),输入上述命令即可,后面的数字表示关机/重启延迟的时间
at 12:00 shutdown -s
在运行里输入这个然后敲回车
他就会在12点种的时候关机
Visual Studio
作者:admin 日期:2016-01-12
在实际的应用程序开发中,我们可能会在程序里查找另一个程序是否已打开,如果查找的程序已打开就把它激活成当前的窗口。这里分别用C#.NET和VB.NET两种程序来实现了这个功能,这两个程序里都可以打开一个标题是"我的电脑"的窗口:
-------------------C#.NET的实现---------------
[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern bool OpenIcon(IntPtr hWnd);
private static extern bool OpenIcon(IntPtr hWnd);
[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern bool IsIconic(IntPtr hWnd);
[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern int SetForegroundWindow(IntPtr hWnd);[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern IntPtr FindWindow(string strclassName, string strWindowName);
void FindAndOpenWindow(string Title)
{
IntPtr hWnd = FindWindow(null, Title);
if (hWnd != IntPtr.Zero)
{
bool isIcon = IsIconic(hWnd);
if ( !isIcon )
{
SetForegroundWindow(hWnd);
}
else
{
OpenIcon(hWnd);
}
}
}
private void button1_Click(object sender, System.EventArgs e)
{
FindAndOpenWindow("我的电脑");
}
-------------------VB.NET的实现---------------
Private Declare Function OpenIcon Lib "user32.dll" (ByVal hWnd As IntPtr) As Boolean
Private Declare Function IsIconic Lib "user32.dll" (ByVal hWnd As IntPtr) As Boolean
Private Declare Function SetForegroundWindow Lib "user32.dll" (ByVal hWnd As IntPtr) As Integer
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal strclassName As String, ByVal strWindowName As String) As IntPtr
Sub FindAndOpenWindow(ByVal Title As String)
Dim hWnd As IntPtr = FindWindow(Nothing, Title)
If Not hWnd.Equals(IntPtr.Zero) Then
Dim isIcon As Boolean = IsIconic(hWnd)
If Not isIcon Then
SetForegroundWindow(hWnd)
Else
OpenIcon(hWnd)
End If
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
FindAndOpenWindow("我的电脑")
End Sub
广告位