for (int i = 0; i < GridView1.Rows.Count; i++)
{
//Add logic to fill the GridView
//Now let's iterate through the DropDown controls to add a "Title" to the
//resulting HTML "<option>" elements: this will add the toolip to highlighted element
for (int i2 = 0; i2 < dropDownList.Items.Count; i2++)
{
dropDownList.Items[i2].Attributes.Add("Title", dropDownList.Items[i2].Text);
}
}
Even if Firefox (at least the version I’ve tried) does not respect the control width we have set through CSS and the DropDown for this sample is large enough to read the complete text, the tooltip is displayed:


294

被折叠的 条评论
为什么被折叠?



