---
title: "web developer tips (3):设置垂直拆分视图"
author: "cjc"
date: "2009-06-05T01:06:00Z"
tags: []
slug: "web-developer-tips-3"
draft: false
lastmod: "2009-06-05T01:06:00Z"
id: 402627
url: "https://cjc.iteye.com/blog/402627"
---

&lt;script&gt;function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}&lt;/script&gt;

原文链接：[Split View could be set vertically in VS 2008](http://blogs.msdn.com/webdevelopertips/archive/2008/08/05/tip-3-did-you-know-split-view-could-be-set-vertically-in-vs-2008.aspx)

拆分视图是Visual Studio 2008 中除现有的“设计视图”和“源试图”外新的视图选项。在拆分割视图的情况下，可以打开源视图和设计视图并排排列，这将更容易使你了解源视图的改变对设计视图的影响，反之亦然。

此功能在Visual Studio 2008 和Web Developer 2008 中都支持，默认情况下，拆分视图是水平模式的，做如下的设置可以让分割在垂直模式下工作：  
[http://www.watch-life.net/visual-studio/split-view-could-be-set-vertically.html](http://www.watch-life.net/visual-studio/split-view-could-be-set-vertically.html)  
菜单：**工具+选项+html设计器+常规**，勾选“**垂直拆分视图**”  
![Split View](http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip3DidyouknowSplitViewcouldbesetvertica_DDB5/ToolsOptionsForSplitView_thumb.jpg)

效果图如下：  
![Split View](http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip3DidyouknowSplitViewcouldbesetvertica_DDB5/SplitViewVerical_thumb.jpg)

以前做html的设计的时候，只知道水平拆分窗口模式，原来还有垂直拆分模式。不过，要注意的是只有html的设计里才有垂直拆分模式。如果要想垂直拆分生效的话，必须关闭当前打开的html设计文件（比如aspx文件）再打开才看到垂直拆分的效果。

更多文章见：[守望轩](http://www.watch-life.net)\[[http://www.watch-life.net](http://www.watch-life.net)/]