HTML/CSS
钱小伟
这个作者很懒,什么都没留下…
展开
-
img元素在div居中显示
很simple的问题,现在需要把img居中,我的老板跟我说只需要把上一级div设置为: #img-holder { position: relative; text-align: center; } 看了很多教程也是这么说,但是发现无论如何都不能让图片居中。由于我需要做一个图片幻灯片,图片一加载之后首先把图片设置为‘display: none’,再通过‘display:原创 2013-03-22 10:42:05 · 1261 阅读 · 0 评论 -
jquery mouseover和hover的区别
前段最近用了很多,但是学无止境啊,做项目的时候想要让鼠标悬停在某个区域触发一系列事件。想也没想就用mouseover来实现。 $(".download_area > div").mouseover(function(){ $(".download_area img").attr("src", "static/images/download.png"); $(this).children(原创 2013-04-15 11:09:40 · 892 阅读 · 0 评论