创建内部样式表
<style type="text/css">
<!--
a:link { text-decoration: none;
color: blue;
}
a:hover { text-decoration: underline;
color: red;
}
a:visited { text-decoration: none;
color: blue;
}
-->
</style>
把样式直接应用于HTML元素
使用CSS的第一种方法是直接把样式应用于ASP.NET页面包含的标记上。例如,
<p style="color:blue; font-weight:bold">
Pork chops and applesauce
</p>