SlimBox2 支持 PNG 吗?
我尝试使用 Slimbox2 在 Firefox 中打开 PNG 文件:
<a href="images/project3.png" rel="lightbox" title="my caption">image #1</a>
它不起作用,它只是打开了图片。
然后我将 PNG 更改为 Jpg 并且它起作用了。
SlimBox2 支持 PNG 吗?
标题:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<title>New Project</title>
<link rel="stylesheet" type="text/css" href="styles/slimbox2.css" />
<link rel="stylesheet" type="text/css" href="styles/global.css" />
<link rel="stylesheet" type="text/css" href="styles/home.css" />
<script type="text/javascript" src="scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="scripts/jquery.corner.js"></script>
<script type="text/javascript" src="scripts/slimbox2.js"></script>
<script type="text/javascript" src="scripts/custom.js"></script>
</head>
I tried to open a PNG file in Firefox using Slimbox2:
<a href="images/project3.png" rel="lightbox" title="my caption">image #1</a>
It didn't work, it just opened the picture.
then I cahnged PNG to Jpg and it worked.
Does SlimBox2 support PNG?
Header:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<title>New Project</title>
<link rel="stylesheet" type="text/css" href="styles/slimbox2.css" />
<link rel="stylesheet" type="text/css" href="styles/global.css" />
<link rel="stylesheet" type="text/css" href="styles/home.css" />
<script type="text/javascript" src="scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="scripts/jquery.corner.js"></script>
<script type="text/javascript" src="scripts/slimbox2.js"></script>
<script type="text/javascript" src="scripts/custom.js"></script>
</head>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,它支持 PNG 文件。我会确保您的图像文件夹中有一个project3.png 文件。
单击链接时会发生什么?什么也没有,或者你得到一个带有 ajax“请稍候”图形的白框?
这是一个被编译并复制到另一个文件夹的项目吗?如果是这样,则可能无法复制图像。
Yes it supports PNG files. I would look to make sure you have a project3.png file in your images folder.
What happens when you click on the link? Nothing at all or do you get a white box with the ajax "please wait" graphic?
Is this a project that gets compiled and copied to another folder? If so the image may not be copied.