0

此页面上的文本有一个测试 div,我可以使用 CSS 重新定位。

http://www.theshowroomonline.co.uk/clothing

                        <div id="test"><a href="http://www.theshowroomonline.co.uk/product/1980s-stanley-platos-dress">1980&#8242;s Stanley Platos Dress</a></div>          
        <div class="wrapper-price">
                        <div class="entry-price">
            &pound;106.00               </div><!-- entry-price -->

                        <div class="entry-post-thumbnail">
                <a class="tcp_size-medium" href="http://www.theshowroomonline.co.uk/product/1980s-stanley-platos-dress"><img width="200" height="300" src="http://www.theshowroomonline.co.uk/wp-content/uploads/2012/10/stanley-platos-dress-front-200x300.jpg" class="attachment-medium wp-post-image" alt="stanley-platos-dress-front" title="stanley-platos-dress-front" /></a>
            </div><!-- .entry-post-thumbnail -->
                    </div><!-- .wrapper-price -->

   #tcp_shortcode_all_clothing #test {
        position: relative;
        top: 298px;
    }

但是 div 似乎没有出现在其他页面上,所以我无法重新定位文本:

http://www.theshowroomonline.co.uk/outerwear

4

1 回答 1

0

如果您在提供的页面(http://www.theshowroomonline.co.uk/outerwear)上查看源代码,您将看到该元素实际上并未包含在 id="test" 的元素中,这似乎是您的问题您正在为这些页面使用两个不同的模板。

来自问题页面的示例:

<tr class="tcp_first-row">
    <td id="td-post-480" class="tcp_col tcp_4_cols tcp_col_1">
            <div id="post-480" class="post-480 tcp_product type-tcp_product status-publish hentry">
<a href="http://www.theshowroomonline.co.uk/product/vintage-gianfranco-ferre-coat">Vintage Gianfranco Ferre Coat</a>            
            <div class="wrapper-price">
                            <div class="entry-price">
                &pound;180.00               </div><!-- entry-price -->

                            <div class="entry-post-thumbnail">
                    <a class="tcp_size-medium" href="http://www.theshowroomonline.co.uk/product/vintage-gianfranco-ferre-coat"><img width="200" height="300" src="http://www.theshowroomonline.co.uk/wp-content/uploads/2012/10/gianfranco-coat-front-200x300.jpg" class="attachment-medium wp-post-image" alt="gianfranco-coat-front" title="gianfranco-coat-front" /></a>
                </div><!-- .entry-post-thumbnail -->
                        </div><!-- .wrapper-price -->

与工作页面相比:

<tr class="tcp_first-row">
    <td id="td-post-491" class="tcp_col tcp_4_cols tcp_col_1">
            <div id="post-491" class="post-491 tcp_product type-tcp_product status-publish hentry">


                            <div id="test"><a href="http://www.theshowroomonline.co.uk/product/1980s-stanley-platos-dress">1980&#8242;s Stanley Platos Dress</a></div>          
            <div class="wrapper-price">
                            <div class="entry-price">
                &pound;106.00               </div><!-- entry-price -->

                            <div class="entry-post-thumbnail">
                    <a class="tcp_size-medium" href="http://www.theshowroomonline.co.uk/product/1980s-stanley-platos-dress"><img width="200" height="300" src="http://www.theshowroomonline.co.uk/wp-content/uploads/2012/10/stanley-platos-dress-front-200x300.jpg" class="attachment-medium wp-post-image" alt="stanley-platos-dress-front" title="stanley-platos-dress-front" /></a>
                </div><!-- .entry-post-thumbnail -->
                        </div><!-- .wrapper-price -->

也就是说,如上所述,您确实需要将其切换id="test"class="test"ID 应该是页面唯一的。

于 2012-10-16T14:37:54.097 回答