CSS Style Not Working With ID

后端 未结 3 1388
被撕碎了的回忆
被撕碎了的回忆 2021-01-21 07:49

I am using asp.net/C# for my project.Currently i have a default.aspx page and a master page.The default.aspx page has many controls , and

3条回答
  •  独厮守ぢ
    2021-01-21 08:41

    1. If you are using Visual Studio 2010 you can set the clientID mode of the control toClientIDMode="Static"
    2. I would advise you to use CSS along with a skin file
    3. Also, if you are trying to style a control via CSS, just wrap a div around it & then apply styles like (these get applied to all inputs inside that div)

      divId input {

                width: 100px;
           }
      

      ASP.NET Themes and Skins Themes & Skins

提交回复
热议问题