iT邦幫忙

0

ASP.NET TextBox顏色設定問題

小k 2017-10-27 16:26:237270 瀏覽
  • 分享至 

  • xImage

請問這段程式碼對應下列圖片....我想請問TextBox是有顏色,原以為他是每一個textBox去設定,實際上點開是沒有,程式碼中也沒看到相關設定,這部分顏色設定可能放在哪裡?

<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
                        <label for="exampleInputEmail1" class="show">標題</label>
                        <asp:TextBox ID="TextBox47" class="show use" runat="server" Width="80px" ReadOnly="true"></asp:TextBox>
                        <asp:TextBox ID="TextBox48" class="show use" runat="server" Width="80px" ReadOnly="true"></asp:TextBox>
                        <asp:TextBox ID="TextBox49" class="show use" runat="server" Width="80px" ReadOnly="true"></asp:TextBox>
                        <asp:TextBox ID="TextBox50" class="show use" runat="server" Width="80px" ReadOnly="true"></asp:TextBox>
                        <asp:TextBox ID="TextBox51" class="show use" runat="server" Width="80px" ReadOnly="true"></asp:TextBox>
                        <asp:TextBox ID="TextBox52" class="show use" runat="server" Width="80px" ReadOnly="true"></asp:TextBox>
                    </div>

https://ithelp.ithome.com.tw/upload/images/20171027/20104137Sfi53A7kWA.png

石頭 iT邦高手 1 級 ‧ 2017-10-27 16:59:14 檢舉
請問頁面是否有JS 在控制顏色
codebehind是否有程式控制顏色
小k iT邦新手 4 級 ‧ 2017-10-30 08:49:02 檢舉
好 有JS跟CSS 這部分我去看一下
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

0
jimmu20121010
iT邦新手 5 級 ‧ 2017-10-27 23:36:01
最佳解答

答案在class="show use"
要去找style css中class id="show use"
裡面設定即可

小魚 iT邦大師 1 級 ‧ 2017-10-29 00:06:15 檢舉

應該是在某個CSS檔案中,如果這是人家寫好的程式,應該是在自定義的某個引入的CSS檔案中...
搜尋 .show 或 .use 或 .show.use 或 .use.show

小k iT邦新手 4 級 ‧ 2017-10-30 08:48:37 檢舉

好的 我去找看看

小k iT邦新手 4 級 ‧ 2017-10-30 09:39:38 檢舉

確實是.SHOW這一部分 謝謝各位~

0
mis2000lab
iT邦好手 1 級 ‧ 2017-10-31 11:01:52

ASP.NET (Web Form)的控制項,如果要搭配CSS
建議放在 "CssClass屬性"裡面

當然,翻譯後,仍是HTML標籤裡面的 class="..."

我要發表回答

立即登入回答