#bubblemenu li {
display: inline;
margin-left: 15px;
cursor:pointer;
}
#bubblemenu li > div {
width: 150px;
min-height: 100px;
position: absolute;
display: inline;
margin-left: -120px;
padding: 5px;
visibility:hidden;
opacity: 0;
margin-top: -125px;
background: #ffffff;
font-size:1em;
/* setting the border-radius property for all browsers */
-moz-border-radius: 5px; /* firefox */
-webkit-border-radius: 5px; /* safari and chrome */
border-radius: 5px; /* browsers that support it like opera */
/* setting the box-shadow property for all browsers */
-moz-box-shadow: 0 0 8px gray; /* firefox */
-webkit-box-shadow: 0 0 8px gray; /* safari and chrome */
filter: progid:dximagetransform.microsoft.shadow(color='#272229', direction=135, strength=3); /* ie */
box-shadow: 0 0 8px gray; /* browsers that support it like opera */
/* setting the transition property for all browsers */
-moz-transition: all 0.5s ease-in-out; /* firefox */
-webkit-transition: all 0.5s ease-in-out; /* safari and chrome */
-o-transition: all 0.5s ease-in-out; /* opera */
transition: all 0.5s ease-in-out; /* browsers that support it */
}
#bubblemenu li:hover > div {
visibility:visible;
opacity: 1;
margin-top: -150px;
/* setting the transition property for all browsers */
-moz-transition: all 0.5s ease-in-out; /* firefox */
-webkit-transition: all 0.5s ease-in-out; /* safari and chrome */
-o-transition: all 0.5s ease-in-out; /* opera */
transition: all 0.5s ease-in-out; /* browsers that support it */
}
</style>
</head>
<body>
<h1>coda effect with css3</h1>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<ul id="bubblemenu">
<li>
penn jillett
<div>
my favorite thing about the internet is that you get to go into the private world of real creeps without having to smell them.
</div>
</li>
<li>
thomas watson
<div>
i think there is a world market for maybe five computers.
</div>
</li>
<li>
bill gates
<div>
640k ought to be enough for anybody.
</div>
</li>
<li>
sam ewing
<div>
computers are like bikinis. they save people a lot of guesswork.
</div>
</li>
</ul>
<div style=" color:#000;width:600px;margin:0 auto; text-align:center; font-size:12px;">
</div></body>
</html></td>
</tr>
</table>
ffcod = delpost.runcode1 .value; ffcod = ffcod.replace(/
/g,''); delpost.runcode1 .value = ffcod; 提示:您可以先修改部分代码再运行