IE10 under Gridview background setting line height does not work for the solution

  • 2020-06-01 09:24:11
  • OfStack

It was originally written in Page_Load
 
GridView1.HeaderStyle.Height=17; 

Found no effect in IE10

When you look at the generated HTML code, you see that it also has the element height:17px, but it just doesn't work.
I didn't think it was Page_Load

So I put it in RowCreated and RowDataBound and it still doesn't work
Super depressed!!
And then head 1 turns, and since it doesn't work in TR, I'm going to put it in TD, and I'm going to put it down
 
e.Row.Cells[0].Height=17; 

Oh, come on, come on. Khan,

Related articles: