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