Commit 7cf7adb4 authored by agping's avatar agping

图片放大 位置固定

parent bb2282ba
......@@ -33,8 +33,7 @@
/*border-radius: 15px;*/
}
#preview img{
width: 350px;
/*height: 550px;*/
width: 388px;
}
</style>
<div id="page-content-wrapper">
......
......@@ -19,7 +19,7 @@
padding:"4px",
border:"1px solid #f3f3f3",
backgroundColor:"#eeeeee",
top:show_y + "px",
top: h/4+ "px",
left:show_x + "px",
zIndex:1000
});
......@@ -28,11 +28,12 @@
backgroundColor:"white",
border:"1px solid #cccccc"
});
if (show_y + 430 > h + scroll_y) {
$("#preview").css("bottom", h - show_y - $(this).height() + "px").css("top", "auto");
} else {
$("#preview").css("top", show_y + "px").css("bottom", "auto");
}
// if (show_y + 421 > h + scroll_y) {
// $("#preview").css("bottom", h - show_y - $(this).height() + "px").css("top", "auto");
// } else {
// $("#preview").css("top", show_y + "px").css("bottom", "auto");
// }
$("#preview").fadeIn("fast")
},function(){
$("#preview").remove();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment