css样式中的li标签去掉图片
html代码:
</tr>
<tr>
<td id="td_group_list" runat="server" class="list"></td>
</tr>
<tr>
.cs代码:
public void GetGroupList()
{
List<string> lst = Managers.Leads.GetLeadsInGroup();
string str = string.Empty;
for (int i = 0; i < lst.Count; i++)
{
str += lst[i];
}
td_group_list.InnerHtml = "<h2 class='lead-category' style='font-weight:bold' onclick='HideOrShowLeft()'>Folders</h2><ul id='list'>" + str + "</ul><br/>";
}
css
list
class
------解决方案--------------------
1.ul li img{display:none;}//样式隐藏图片
2.直接看 能否在lst[i]中去掉图片
------解决方案--------------------重新定一个css,不要img
------解决方案-------------------- <style type="text/css">
#list ul li img
{
display: none;
}
</style>