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]
控件 ......
position:relative不是相对定位吗~~为什么用了边偏移定位后有些人就说是变成了绝对定位了……~~而且它与margin来确定位置有什么不同~~
边偏移定位后有些人就说是变成了绝对定位了
re:
谁说的!真是不象话!positi ......
a b两个div
a设置为absolute z-index:99
b设置为fixed z-index:100
在ie7和ie8下面为什么z-index就无效了呢?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML ......