Commit 7cf7adb4 authored by agping's avatar agping

图片放大 位置固定

parent bb2282ba
...@@ -33,8 +33,7 @@ ...@@ -33,8 +33,7 @@
/*border-radius: 15px;*/ /*border-radius: 15px;*/
} }
#preview img{ #preview img{
width: 350px; width: 388px;
/*height: 550px;*/
} }
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
padding:"4px", padding:"4px",
border:"1px solid #f3f3f3", border:"1px solid #f3f3f3",
backgroundColor:"#eeeeee", backgroundColor:"#eeeeee",
top:show_y + "px", top: h/4+ "px",
left:show_x + "px", left:show_x + "px",
zIndex:1000 zIndex:1000
}); });
...@@ -28,11 +28,12 @@ ...@@ -28,11 +28,12 @@
backgroundColor:"white", backgroundColor:"white",
border:"1px solid #cccccc" border:"1px solid #cccccc"
}); });
if (show_y + 430 > h + scroll_y) {
$("#preview").css("bottom", h - show_y - $(this).height() + "px").css("top", "auto"); // if (show_y + 421 > h + scroll_y) {
} else { // $("#preview").css("bottom", h - show_y - $(this).height() + "px").css("top", "auto");
$("#preview").css("top", show_y + "px").css("bottom", "auto"); // } else {
} // $("#preview").css("top", show_y + "px").css("bottom", "auto");
// }
$("#preview").fadeIn("fast") $("#preview").fadeIn("fast")
},function(){ },function(){
$("#preview").remove(); $("#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