Gridview CSS background-image IE8 不工作
我在母板页里写了下面这段style:
<style type="text/css">
.ListHead2
{
background-color: #E0E3E8;
height: 20px;
color: #000000;
font-family: Tahoma, Arial, Verdana, Tahoma, Arial;
font-size: 8.5pt;
font-weight: normal;
text-align: left;
cursor: default;
font-weight: normal;
background-image:url(../images/img_mnusep.gif);
background-repeat: no-repeat;
padding-left: 8px;
padding-right: 2px;
border : 0px;
border-bottom : solid 1px #A0A0A4;
}
</style>
然后我在内容页里有这样一个gridview:
<asp:GridView ID="myGridView" runat="server" AutoGenerateColumns="False" HeaderStyle-CssClass="ListHead2"
CssClass="List" BorderWidth="0px" DataKeyNames="criterionId" Width="100%">
<Columns>
<asp:TemplateField>
相关问答:
CSS code:
body {
}
#x
{
width:1024px;
height:768%;
background-color:Red;
position:relative;
}
#x.top
{ position:absolute;
width:800px;
height:100px;
top:0px ......
用"服务器控件名.Style.Add("display","")可以给这控件添加CSS,怎么样才能给读出来呢?
怎么都没人帮忙啊
人都死哪去了
控件ID.Style[HtmlTextWriterStyle.BackgroundColor]
控件 ......
367页第11章例18,固定页眉,例中width减了21,height减了35,可我楞是没看出来这21和35是怎么算出来的,请各位高手指点一下。
把完整代码发出来
。。。。楼主,给我们买本那个书吧,买完给你看看,呵呵
把那 ......
如何控制不要打印的列啊。在查看的时候要显示,但是在打印预览及打印里面却不要打印某些信息。请教了!谢谢!
这个需要使用js吧
HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transi ......
原来做网页都是table,做个新闻列表或者物品展示列表之类的需要的时候写循环就可以了
后来在asp.net上就用控件直接输出
现在DIV+CSS是不是DIV也要在程序中输出?全部都编成串然后输出?
没做过希望大家指点一二
......