zoukankan      html  css  js  c++  java
  • 更有好的文本框[同样可以用于其它情况]信息提示

    1.样式引用(附带几种样式,根据实际情况引用)

        <%--信息提示代码样式--%>
        <link rel="stylesheet" href="~/Js/ToolTip/tip-yellow/tip-yellow.css" type="text/css" />
        <link rel="stylesheet" href="~/Js/ToolTip/tip-yellowsimple/tip-yellowsimple.css"
            type="text/css" />

    2.由于应用了Jquery,所以引用Jquery。

            <script src="<%= ResolveUrl("~/Js/Jquery.js")%>" type="text/javascript"></script>

    3.相关Js配置

        <%--信息提示代码--%>
         <script src="<%= ResolveUrl("~/Js/ToolTip/jquery.poshytip.js")%>" type="text/javascript"></script>
    
    <asp:TextBox ID="txtTip" runat="server" Width="150px" ToolTip="我是个性信息提示啦啦啦啦啦啦!"></asp:TextBox>
        <script type="text/javascript">
            //<![CDATA[
            $(function ()
            {
                $('#<%=txtTip.ClientID %>').poshytip(
                {
                    className : 'tip-yellowsimple', showOn : 'focus', alignTo : 'target', alignX : 'right', alignY : 'center', 
                    offsetX : 5 
                });
            });
            //]]>
    </script>

    4.相关Js下载

    下载

    5.效果图:

  • 相关阅读:
    lnmp环境搭建
    Git常用命令
    博客园写随笔环境搭建
    Win常用软件
    Docker环境搭建
    ESP-8266 RTOS 环境搭建
    查看Linux信息
    博客园markdown语法
    Java后台技术(TDDL)
    Java后台技术(Dubbo入门)
  • 原文地址:https://www.cnblogs.com/52net/p/3062419.html
Copyright © 2011-2022 走看看