jQuery lightbox doesn't work in IE
Take a look at this site, http://www.uniquegeeks.co.uk/product/test-LED%20Lights-0001#, and pleas开发者_运维百科e work out why it works perfectly in every other browser but IE.
The problem is that in IE the site is off to the left and every other browser it's as it should be, in the middle.
When you click the larger image in a non IE browser, it's a working lightbox. In IE it doesn't work and just shows the large picture underneath.
As an aside:
<div id="wrapper">
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
is not valid HTML.
It's due to it operating in quirks mode (if you press F12 in IE you'll see the 'document mode' defaults to quirks).
Set a doctype like:
<!doctype html>
To ensure it defaults to IE9 (or whatever version it actually is)
I think the main problem here is that your <div id="wrapper">
is being carried to the top of your html for some reason. I only see this if I view source, if I view html through debugger tools that div is placed correctly after the body tag.
精彩评论