.square_blue {
border-right-width: 1px;
border-bottom-width: 3px;
border-left-width: 1px;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-right-color: #ceefff;
border-bottom-color: #ceefff;
border-left-color: #ceefff;
border-top-width: 3px;
border-top-style: solid;
border-top-color: #ceefff;
}上面是我要调用的样式,在html格式下调用一点问题也没有,但是如果在aspx格式下就一点反应都没有,没有调用到,到底是什么原因呢?

解决方案 »

  1.   

    你写<script>标签了吗
    是放在<head>里的吗
      

  2.   

    在<head>里引用css文件
    调用<td class="square_blue">
    就OK了):
      

  3.   

    是不是 xhtml 的关系?
      

  4.   

    我在head里是这么引用的
    <link href="../style1.css" rel="stylesheet" type="text/css" />style1.css:
    .square_blue {
        border-right-width: 1px;
        border-bottom-width: 3px;
        border-left-width: 1px;
        border-right-style: solid;
        border-bottom-style: solid;
        border-left-style: solid;
        border-right-color: #ceefff;
        border-bottom-color: #ceefff;
        border-left-color: #ceefff;
        border-top-width: 3px;
        border-top-style: solid;
        border-top-color: #ceefff;
    }我引用的时候是<table width="752" border="0" cellpadding="0" cellspacing="0" class="square_blue">
      

  5.   

    你都把border="0"了,怎么会有反应呢,<table width="752" border="0" cellpadding="0" cellspacing="0" class="square_blue">
    里面的设置优先级高一些
      

  6.   

    你把两个文件都贴出来看看呢,全文件。路径有问题吗?我也是你那样的都有效果啊!border=0那个不关事。
      

  7.   

    Insus.NET在aspx页面的Source介面,直接拉style1.css到<head>之间,是能显示出效果来的.<link href="style1.css" rel="stylesheet" type="text/css" />