首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Blogger中的Slider HTML问题

Blogger中的Slider HTML问题
EN

Stack Overflow用户
提问于 2014-08-21 03:48:59
回答 2查看 296关注 0票数 0

所以我有了一个新的博客,其中包含一个滑块。(你可以在这里看看:Pc and Internet tutorials blog

正如你在滑块中看到的,实际上没有显示图像,它只是在黑色包装的标题和描述后面的一个白色区域。

关键是在html代码的滑块部分,我想一切都设置正确了。

如果它能提供一些帮助,下面是代码:

代码语言:javascript
复制
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<b:if cond='data:blog.pageType != &quot;item&quot;'>

<script type='text/javascript'>
function startGallery() {
    var myGallery = new gallery($(&#39;myGallery&#39;), {
    timed: true,
    delay: 6000,
    slideInfoZoneOpacity: 0.8,
    showCarousel: false,
    slideInfoZoneSlide: false
});
}
window.addEvent(&#39;domready&#39;, startGallery);
</script>

<div class='fullbox_excerpt'>
    <div class='fullbox_content'>
        <div class='smooth_gallery'>
            <div id='myGallery'>

                <div class='imageElement'>
                    <h3>How to increase Facebook likes ?</h3>
                    <p>Getting likes on your status or picture on Facebook is probably an aim for every Facebook user. How not and everyone seeks that feeling of popularity through having many likes ?
                    In this tutorial I&#39;ll try to guide you step by step on how to increase the number of likes you get on Facebook.</p>
                    <a class='open' href='http://pc-internet-tutorials.blogspot.com.es/2014/08/how-to-get-facebook-likes.html' title='Get mroe Faceebook likes'/>
                    <img alt='get facebook likes on your picture' class='full' HEIGHT="50" WIDTH="50" src='http://1.bp.blogspot.com/-xTwClUYen3A/U_Hsap6QBdI/AAAAAAAAAMc/IGbxs0gIiz8/s1600/how-to-get-more-likes-facebook.jpg'/>
                </div>
            </div>
        </div>
    </div>
</div></b:if></b:if>

http://pastebin.com/h2mkuHQT (这是一个链接,因为在这个网站上它会被修改)

正如你看到的图片的urL,你可以在粘贴链接中找到工作,静止的图片没有显示。

关于如何解决这个问题,有什么建议吗?

提前感谢

EN

回答 2

Stack Overflow用户

发布于 2014-08-21 15:42:12

您有一个未关闭的<a>标记,它应该是导致问题的原因。

更新为:

代码语言:javascript
复制
            <div class="imageElement">
                <h3>How to increase Facebook likes ?</h3>
                <p>Getting likes on your status or picture on Facebook is probably an aim for every Facebook user. How not and everyone seeks that feeling of popularity through having many likes ?
                In this tutorial I'll try to guide you step by step on how to increase the number of likes you get on Facebook.</p>
                <a class="open" href="http://pc-internet-tutorials.blogspot.com.es/2014/08/how-to-get-facebook-likes.html" title="Get mroe Faceebook likes">
                    <img alt="get facebook likes on your picture" class="full" HEIGHT="50" WIDTH="50" src="http://1.bp.blogspot.com/-xTwClUYen3A/U_Hsap6QBdI/AAAAAAAAAMc/IGbxs0gIiz8/s1600/how-to-get-more-likes-facebook.jpg"/>
                </a>
            </div>

我相信这会解决你的问题。

如果您希望使用图片(<img>)作为锚链,则不应使用自封闭的<a>标签。

票数 0
EN

Stack Overflow用户

发布于 2014-08-21 20:31:24

好吧,我问过一个朋友,然后问题是在CSS中我必须添加一些代码,因为目前图片就在那里,就在滑块下面。

在标签之前添加这个解决了这个问题:

代码语言:javascript
复制
<style>div.slideElement { top: 0px; }</style>

无论哪种方式都要感谢您:)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25413256

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档