简体   繁体   English

不在html5boilerplate网站中显示的jQuery超大图像

[英]jQuery Supersized image not displayed within html5boilerplate website

I'm trying to implement the jQuery plugin Supersized (3.2.6) into a blank html5boilerplate (3.0) website but I don't get it to work: 我正在尝试将jQuery插件Supersized (3.2.6)实施到一个空白的html5boilerplate (3.0)网站中,但无法正常工作:

Images are not displayed although all necessary files are loaded (including script, style and some sample images). 尽管加载了所有必需的文件(包括脚本,样式和一些示例图像),但不显示图像。 I figured out that the image (inside div with id="supersized" ) has the css attribute display: none . 我发现该图像(在div内id="supersized" )具有css属性display: none When I remove this from style sheet everything looks fine and the images are displayed. 当我从样式表中删除此文件时,一切看起来都很好,并显示了图像。 But I don't think, that this is the right way because I changed the default style which should be OK: 但是我不认为这是正确的方法,因为我更改了应该可以的默认样式:

    #supersized img{ width:auto; height:auto; position:relative; display:none; outline:none; border:none; }

Any ideas? 有任何想法吗?

Solved it by myself: For slideshow I have to use the script from slideshow example. 我自己解决了这个问题:对于幻灯片,我必须使用幻灯片示例中的脚本。 I thought it isn't a different script because it is named the same. 我认为这不是一个不同的脚本,因为它的名称相同。 My fault. 我的错。 And btw. 顺便说一句。 this is no issue regarding to html5boilerplate. 这与html5boilerplate无关。 Sorry for that. 抱歉

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM