62,074
社区成员
发帖
与我相关
我的任务
分享
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div class="Sample1">
<div class="Header">引用级联CSS Sample1</div>
</div>
<div class="Sample2">
<div class="Header">引用级联CSS Sample2</div>
</div>
</form>
</body>
</html>
.Sample1
{
font-size:12px;
}
.Sample1.Header
{
color:Red;
}
.Sample2
{
font-size:14px;
}
.Sample2.Header
{
color:Blue;
}
.Quarter_Global
{
font-size:12px;
}
.Quarter_Global .header
{
width: 100%;
height: 25px;
background-image: url(/UI/Images/ManagementSystem/ObjectiveTitleBg.gif);
background-repeat: no-repeat;
background-repeat: repeat-x;
font-size:12px;
color:#ff0000;
font-weight:bold;
}