我在Chrome,Mozilla或Safari中将PrettyPhoto窗口垂直对齐到屏幕中心时遇到问题.它在IE中很好.如果你能解释它为什么会发生以及如何解决它,我会很高兴的.
我检查了故障的原因是计算加载的prettyPhoto窗口的最高值.
Chrome,Mozilla,Safari中相关的源代码行:
<div class="pp_pic_holder light_rounded" style="top: 1236.5px; left: 542.5px; display: block; width: 180px;">
Run Code Online (Sandbox Code Playgroud)
IE中相关的源代码行:
<div class="pp_pic_holder light_rounded" style="left: 542px; top: 199.5px; width: 180px; display: block;">
Run Code Online (Sandbox Code Playgroud)
我还添加了下面的源代码部分,可以帮助您解决问题.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" lang="tr">
<head>
<link rel="stylesheet" href="../css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
<link href="../css/tema.css" rel="stylesheet" type="text/css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script src="../js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="urundetayresim"><ul class="gallery">
<li>
<a href="images/urunler/bu353_1s4.jpg" rel="prettyPhoto[gallery1]"><img src="images/urunler/bu353_1s4.jpg" alt="Bu-353 S4 Usb GPS Al?c?s? Sirf Star 4 Chipset" width="240" height="240" /></a>
</li><li> …Run Code Online (Sandbox Code Playgroud)