【发布时间】:2015-07-05 10:59:14
【问题描述】:
我正在尝试将一些图片(带有超链接)放入悬停展开的 DIV BOX > 一旦框在(5 秒后)完全打开。
我做了一个非常糟糕的尝试,通过创建一个 zaxis 并使内容显示在可折叠的可展开框上。
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
div {
width: 10px;
height: 600px;
background: rgba(55, 55, 55, .8);
-webkit-transition-property: width; /* Safari */
-webkit-transition-duration: 4s; /* Safari */
-webkit-transition-delay: 2s; /* Safari */
transition-property: width;
transition-duration: 5s;
transition-delay: 0s;
}
html {
background: url(BG1.jpg) no-repeat center top fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
div:hover {
width: 600px;
}
div.image55:after {
content:url(http://placehold.it/350x150);
}
.style2 {
text-align: right;
font-family: "Calibri Light";
}
.style3 {
border-width: 0;
}
</style>
</head>
<body>
<div class="style2"><br>
<a href=""><img alt="" src="editorial.png" width="100" height="20"
class="style3"></a></div>
<div class="image55" style="position: absolute; left: 20px; top: 20px;
z-index: 1"></div>
</body>
</html>
【问题讨论】:
标签: html css webkit axis onhover