您的位置:首页 > Web前端 > CSS

CSS对指定页面元素的的格式设置的方式

2010-11-09 18:44 363 查看

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>

<!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>
    <style type="text/css">      
      
        img,table
        { background-color:Red
           
            }
           
              tr.haha1
        {
            background-color:Yellow
            }
       
        td.haha table
        {
            background-color:Blue
            }
          
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
         <table class="style1">
        <tr>
            <td class="style5">
                 </td>
            <td>
                 </td>
        </tr>
        <tr class="haha1" >
            <td class=haha>
                <table>
                    <tr>
                        <td>
                             </td>
                        <td>
                             </td>
                        <td>
                             </td>
                    </tr>
                    <tr>
                        <td >
                             </td>
                        <td 
                             </td>
                        <td class="style2">
                             </td>
                    </tr>
                </table>
            </td>
            <td>
                 </td>
        </tr>
    </table>
    </div>
    </form>

 
</body>
</html>

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐