:
Note the following points:
1, the arrow effect of the prompt box, and the arrow changes with the position.
2. The Close button of the prompt box, and the content of the prompt box is highly arbitrary.
3. Shadow effect
Code:
<! DOCTYPE html> <HTML> <HEAD> <script src= "Https://code.jquery.com/jquery-3.2.1.min.js" >&L T;/script> <script> $ (function () {function Showtip (flag) {var t IP = $ ("Div.tool-tip-content-wrapper, Div.tool-tip-info-border"); if (flag) tip.show (); else Tip.hide (); } $ ("Span.tool-tip-info"). On ("click", Function () {Showtip (true); }); $ ("div.tip-content-btn"). On ("click", Function () {Showtip (false); }); }); </script> <style>. tool-tip-info-border{Display:none; }. tool-tip-info-border-b{Border-top-color: #fff; Border-left-color:transparent; Border-right-color:transparent; Border-bottom-color:transparent; Border-style:dashedDashed solid; border-width:8px; Position:absolute; Top: -12px; Left: -2px; z-index:2000; height:0; width:0; }. tool-tip-info-border-a{Border-top-color: #aaa; Border-left-color:transparent; Border-right-color:transparent; Border-bottom-color:transparent; Border-style:dashed dashed solid; border-width:8px; Position:absolute; Top: -11px; Left: -2px; z-index:2000; height:0; width:0; }. tool-tip-content {background: #fff; border:1px solid #ccc; Border-color:rgba (0,0,0,.2); -webkit-box-shadow:0 2px 10px Rgba (0,0,0,.2); box-shadow:0 2px 10px Rgba (0,0,0,.2); Outline:none; Overflow:hidden; Position:absolute; left:0px; bottom:7px; -webkit-animation:gb__a. 2s; Animation:gb__a. 2s; -webkit-border-radius:2px; border-radius:2px; -webkit-user-select:text; width:360px; Height:auto; padding:15px; Font:13px ' Lato ', Sans-serif; Color:rgb (51,51,51); Box-sizing:border-box; }. tool-tip-info{position:relative; Display:inline-block; width:13px; height:13px; Text-align:center; line-height:13px; border:1px solid #407bae; border-radius:10px; Color: #407bae; font:12px ' Lato ', Sans-serif; Cursor:pointer; }. tip-content-btn{Position:absolute; top:2px; right:2px; width:13px; height:13px; Cursor:pointer; }. tip-content-btn:before{Position:absolute; top:1px; left:3px; width:1px; height:15px; Background-color: #888; Transform:rotate ( -45DEG); -webkit-transform:rotate ( -45DEG); -moz-transform:rotate ( -45DEG); -ms-transform:rotate ( -45DEG); -o-transform:rotate ( -45DEG); Content: ""; }. tip-content-btn:hover:before{Background-color: #333; }. tip-content-btn:after{Position:absolute; top:1px; left:3px; width:1px; height:15px; Background-color: #888; Transform:rotate (45DEG); -webkit-transform:rotate (45DEG); -moz-transform:rotate (45DEG); -ms-transform:rotate (45DEG); -o-transform:rotate (45DEG); Content: ""; }. tip-content-btn:hover:after{Background-color: #333; }. Tool-tip-content-wrapper{position:relative!important; height:0px; Display:none; z-index:1000; } </style> </HEAD> <BODY> <p>paragraph a</p> <p>paragraph B</P&G T <p>paragraph c</p> <p>paragraph d</p> <p>paragraph E</p> <p>Paragraph F< /p> <p>paragraph g</p> <div class= "Tool-tip-content-wrapper" > <div class= "tool-tip-conte NT "> <div class=" tip-content-msg "> providing your last name adds another lay Er of security and keeps your world's Tester profile protected. </div> <div class= "tip-content-btn" ></div> </div> </div> <div> Last Name: <span class= "Tool-tip-info" > <span>i</span> <div class= "tool-tip- Info-border "> <div class=" Tool-tip-info-boRder-a "></div> <div class=" Tool-tip-info-border-b "></div> </div> & Lt;/span> </div>