请问如何设置calendar控件的title部分的背景图?

解决方案 »

  1.   

    可以实现,设置title的css
     <TitleStyle CssClass="style1"></TitleStyle>css文件:
    .style1

       background-image:url(/images/1.jpg);
       ...
    }
      

  2.   

    看看这个日期控件
    http://bbs.lionsky.net/ShowThread.aspx?PostID=14#14
      

  3.   

    to noahart(八卦小子) 
    我就是这么设的,有个小问题,就是无论多大的图片,都不能全部显示,就是说title部分留有一圈灰色边框
    这个怎么解决呢
      

  4.   

    <td colspan="7" style="background-color:Silver;">
    <table class="test" cellspacing="0" border="0" style="font-weight:bold;width:100%;border-collapse:collapse;">
    <tr>
    <td align="Center" style="width:70%;">2004年11月</td>
    </tr>
    </table>
    </td>
    _______________________________________
    <table>部分是calendar的titlestyle控制对象,问题好像出在外层的style="background-color:Silver;">这个不知道可不可以改。
      

  5.   

    .style1

       background-image:url(/images/1.jpg);
       padding:0;
       margin:0;
       border:0;
    }
      

  6.   

    要去掉灰色的边框也可以直接设置BorderStyle="None"
      

  7.   

    .calendar_title 

    BACKGROUND-IMAGE: url(images/title.gif);
    WIDTH: 169px;----->并非title.gif属性,是上面说的那个td的
    HEIGHT: 24px; ---->并非title.gif属性,是上面说的那个td的
    BACKGROUND-COLOR: transparent }
    __________
    <calendar BorderWidth="1px" BorderStyle="Solid" DayNameFormat="Full" CellPadding="0" CellSpacing="0"......>
    <TitleStyle CssClass="calendar_title " Heghit=5--尽量小>