您现在的位置是:首页
>
古筝入门教程视频教程 ASP.NET入门教程 5.1.4 设置站点级别的样式[2]
ASP.NET入门教程 5.1.4 设置站点级别的样式[2] 试一试 ( )右击Cha ter 文件夹并选择Add New Item 在弹出的对话框中 创建一个新的We 配置文件(We co fig)
ASP.NET入门教程 5.1.4 设置站点级别的样式[2]
![古筝入门教程视频教程 ASP.NET入门教程 5.1.4 设置站点级别的样式[2]](http://img.zhputi.com/uploads/d7df/d7df20ad4467d7dece1a410d4bf7284233363.jpg)
试一试
( )右击Chapter 文件夹并选择Add New Item 在弹出的对话框中 创建一个新的Web配置文件(Web config)并单击OK ( )将下面的代码(灰色部分)添加到Web config文件中并保存该文件
<?xml version= ?>
<!
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application Use
the Website >Asp Net Configuration option in Visual Studio
A full list of settings and ments can be found in
machine config ments usually located in
WindowsMicrosoft NetFrameworkv xConfig
>
<configuration>
<appSettings/>
<connectionStrings/>
<system web>
<pages theme= red styleSheetTheme= blue />
( )删除所有页面中的Theme属性和Stylesheet属性并运行该应用程序 站点中的所有页面都将应用Red主题 但请注意图 中显示的ThemeDefault页面 lishixinzhi/Article/program/net/201311/15191 很赞哦! (1072)