4. .NET and C#
.NET Web Skills
The .NET Framework is:
• Common Language Runtime – provides an abstraction
layer over the operating system
• Base Class Libraries – pre-built code for common low-
level programming tasks
• Development frameworks and technologies – reusable,
customizable solutions for larger programming tasks
5. .NET and C#
.NET Web Skills
The .NET Framework allows you to:
• Apply common skills across a variety of devices,
application types, and programming tasks
• Integrate with other tools and technologies to build the
right solution with less work
• Build compelling applications faster
17. ASP.NET
.NET Web Skills
ASP.NET 是一个统一的 Web 开发模型,它包括您使用尽可能少
的代码生成企业级 Web 应用程序所必需的各种服务。ASP.NET
作为 .NET Framework 的一部分提供。当您编写 ASP.NET 应用
程序的代码时,可以访问 .NET Framework 中的类。可使用与公
共语言运行时 (CLR) 兼容的任何语言(包括 Microsoft Visual
Basic 和 C#)编写应用程序的代码。使用这些语言,可以开发
利用公共语言运行时、类型安全、继承等方面的优点的
ASP.NET 应用程序。
36. .NET Web Skills
Javascript and Css
id 选择器
可以为标有特定 id 的 HTML 元素指定特定的样式。
id 选择器以 "#" 来定义。
下面的两个 id 选择器,
第一个可以定义元素的颜色为红色,第二个定义元素的颜色为绿色:
#red {color:red;}
#green {color:green;}
<p id="red">这个段落是红色。</p>
<p id="green">这个段落是绿色。</p>
37. .NET Web Skills
Javascript and Css
类选择器
以一个点号显示
.center {color:red;}
<h1 class="center"> This heading will be center-aligned
</h1>
<p class="center"> This paragraph will also be center-aligned.
</p>