0

我目前正在实习,没有真正的编程背景经验,他们给了我一本关于 asp.net 2.0 VB 的 24 小时书,但我使用的是 Visual Studio 2010 而不是 2005。另外,这本书正在使用更多设计视图比源视图更多。我在母版页章节,它告诉我将表格用作站点范围的模板。这是问题所在:

它告诉我去布局菜单(它不存在或我找不到它)。所以我找到了一个表格菜单,所以我进入了插入表格。书上说应该有一个带有页眉、页脚和侧面的模板下拉菜单。没有,我在其他任何地方都找不到。

问题:它在 2010 年仍然可用,还是我应该使用其他东西?

4

1 回答 1

0

Layout menu is no more there since VS2005

In Visual Studio 2010 on Design View (The bottom "Design" button should be enabled) go to the main upper menu and choose:

Tools - Options - CSS Styling and Check the option "Change position to absolute for controls added using Toolbox,paste or drag and drop"

However I don't recommend this because in my experience is not browser compatible sometimes so you should permanently check how your page looks in different browsers as you go forward in your layout.

You can try to create your tables manually (with the menu you just found) instead and use their css properties to align the text/images inside each row and cell as you wish. This can help to walk you through the process:

http://social.msdn.microsoft.com/Forums/is/csharpgeneral/thread/7db5a810-e9e0-42eb-8ebc-a4c28036effc

http://forums.asp.net/t/1599099.aspx/1

http://technet.microsoft.com/en-us/subscriptions/downloads/dyxa0hhe.aspx

Hope this helps.

于 2012-08-02T15:21:27.677 回答