admin管理员组文章数量:1430595
I am using the css and Javascript method to enlarge the image in a page.. I used some code s which didn't give me a correct way..
Seeking help and I have given my fiddle link below
My Css is
#demo {
overflow: hidden;
width: 120px;
text-align: center;
padding: 10px;
z-index: 3;
}
#demo img {
border: none;
width: 100px;
height: 100px;
border: 5px solid #f4f4f4;
z-index: 3;
}
#enlarge_images {
;
display: none;
border: 5px solid #f4f4f4;
z-index: 100;
}
I tried this Fiddle CODE
I am using the css and Javascript method to enlarge the image in a page.. I used some code s which didn't give me a correct way..
Seeking help and I have given my fiddle link below
My Css is
#demo {
overflow: hidden;
width: 120px;
text-align: center;
padding: 10px;
z-index: 3;
}
#demo img {
border: none;
width: 100px;
height: 100px;
border: 5px solid #f4f4f4;
z-index: 3;
}
#enlarge_images {
;
display: none;
border: 5px solid #f4f4f4;
z-index: 100;
}
I tried this Fiddle CODE
Share Improve this question asked Aug 5, 2013 at 7:35 SARAVANA KUMARSARAVANA KUMAR 4742 gold badges6 silver badges16 bronze badges 2- Perhapse you'd be kind enough to explain why this isn't what you wanted, and what actually you did want. – user1864610 Commented Aug 5, 2013 at 7:40
- what's that ; after ---> #enlarge_images { ?? – Vipin Kumar KM Commented Aug 5, 2013 at 7:52
1 Answer
Reset to default 1Check out this Fiddle
WORKING DEMO
Not exactly sure what your javascript did or was meant to do but check this out .
CSS
#demo img{
width: 100px;
padding: 10px;
z-index: 3;
}
#demo img:hover {
border: 5px solid #f4f4f4;
transform: scale(2.8);
-webkit-transition-duration: 1s;
-moz-transition-duration: 1s;
-o-transition-duration: 1s;
transition-duration: 1s;
z-index: 3;
}
HTML
<div id="demo" >
<img src="#" />
<img src="#" />
<img src="#" />
</div>
本文标签: Enlarging images using CSS or JavascriptStack Overflow
版权声明:本文标题:Enlarging images using CSS or Javascript - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745468340a2659632.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论