如何在asp net工具提示中放大字体大小和颜色变化 [英] how to enlarge font size And colour change in asp net tooltip

查看:113
本文介绍了如何在asp net工具提示中放大字体大小和颜色变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Am using flowing Method in my Dropdown tooltip.

  protected void dropdownConsignee_DataBound(object sender, EventArgs e)
        {
         
                string CustomerName;
                DataSet Ds = new DataSet();
                String cusCode = txtCusCode.Text.Trim();
                Ds =conSigneeList(cusCode);


                int ItemCount = dropdownConsignee.Items.Count;
                for (int i = 0; i < ItemCount; i++)
                {
                    dropdownConsignee.Items[i].Attributes.Add("Title", Ds.Tables[0].Rows[i]["Address"].ToString());
                }
                dropdownConsignee.Items.Insert(0, new ListItem("Select", "Address"));
                dropdownConsignee.SelectedItem.Selected = false;
                dropdownConsignee.Items.FindByText("Select").Selected = true;


        }



I want to change colour and Font Size In tooltip.Anyone can help me.

Thank You.   

推荐答案

您好,

您可以在css中更改工具提示。将此css应用到您的控件中你想改变工具提示。

Hi,
You can change tool tip in css.Apply this css to your controls where ever you want to change the tool tip.
span.tooltip {
      position: absolute;
      width: 128px;
      height: 48px;
      line-height: 48px;
      padding: 0px 16px 0px 8px;
      font-size: 22px;
      text-align: center;
      color: rgb(255, 255, 255);
      background: rgb(96, 172, 57);
      border: 0px 0px 0px 0px none none none none rgb(255, 255, 255) rgb(70, 126, 42) rgb(255, 255, 255) rgb(255, 255, 255);
      border-radius: 0px 3.2px 3.2px 0px;
      text-shadow: rgba(0, 0, 0, 0.6) 1px 1px 1px;
      box-shadow: rgb(85, 153, 51) -4px 0px 4px 0px inset;
}

span.tooltip:after {
      content: "";
      position: absolute;
      width: 0;
      height: 0;
      border-width: 24px;
      border-style: solid;
      border-color: transparent #60AC39 transparent transparent;
      top: 0px;
      left: -48px;
}


这篇关于如何在asp net工具提示中放大字体大小和颜色变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆