1

我正在使用带有 wordpress 的 twitter 引导程序,并希望显示带有特色图像和一些文本的框,它看起来像这样:

      <div class="span2 first-page-article">
        <?php while (have_posts()) :the_post(); ?>
            <?php if (has_tag('start-smaka')) : ?>
                <?php 
                    if (has_post_thumbnail()) 
                    {
                ?>
                    <div>
                      <?php the_post_thumbnail(); ?>
                    </div>
                <?php
                    } 
                ?>
                <div class="first-page-article-description">
                    <h2><?php echo get_the_title(); ?></h2> 
                    <div><?php the_content(); ?></div>
                </div>
            <?php endif ?>
        <?php endwhile ?>
      </div><!--/span-->

我做了自己的网格(10cols,80width 和 16gutter)并上传了 220px*220px 的特色图片,而我在首页文章描述上的最小高度为 220px;这样我得到一个宽度为 220 像素、高度为 440 像素的框(文本框与图像的大小相同很重要)。现在我想在 div 悬停上制作 en 覆盖效果。我试图使用该插件:http ://www.backslash.gr/demos/contenthover-jquery-plugin/ (示例4)但它破坏了网站;它不再响应。有谁知道怎么做鞋底吗?

4

0 回答 0