CSS-floating display reminder, CSS-floating display

Source: Internet
Author: User

CSS-floating display reminder, CSS-floating display

<Script>
$ (Function (){
$ ("# Account, div. account-set"). hover (<! -- Display content when you move the cursor -->
Function () {$ (". account-set"). show ();},
Function () {$ (". account-set"). hide ();}
);
})
$ (Document). ready (
Function (){
$ (". Account-set" ).css ("left", $ ("# account"). offset (). left + 26); <! -- Display position of the suspended content -->
$ (". Account-set" ).css ("top", $ ("# account"). offset (). top + 19 );
});
</Script>
<Style>

<Style>
. Account-set {
Z-INDEX: 1; BORDER-BOTTOM: #558bc6 1px solid; POSITION: absolute; BORDER-LEFT: #558bc6 1px solid; PADDING-LEFT: 1px; width: 300px; PADDING-RIGHT: 2px; DISPLAY: none; BACKGROUND: # fff no-repeat; BORDER-TOP: #558bc6 1px solid; RIGHT: 0px; BORDER-RIGHT: #558bc6 1px solid; PADDING-TOP: 10px; TOP: 20px
}
UL. account-set-btns {
PADDING-LEFT: 0px; PADDING-RIGHT: 0px
}
UL. account-set-btns-li {
PADDING-LEFT: 0px; PADDING-RIGHT: 0px
}
</Style>

 

<Div class = "link"> <a href = "javascript: void (0) "id =" account "> </a> <div class =" account-set "> <ul class =" account-set-btns "> <! -- Note the combination of ul and li --> <li class = "account-set-btns-li"> Name: <span id = "_ NAME"> </span> </li> <li class = "account-set-btns-li"> address: <span id = "_ ADDRESS"> </span> </li> ● </ul> </div> when ul and li are used, ● ol and li are displayed at the beginning of each line. The serial number is 1 ~ I

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.