【发布时间】:2012-05-24 15:02:44
【问题描述】:
这是我的标记的摘录:
<img src="<?php echo get_post_meta($post->ID, 'thumbnail_value', true); ?>" title="<?php the_tags(); ?>" alt="" class="thumb"></a>
我已经输入了“标题”属性<?php the_tags(); ?>,这是来自 Wordpress 的一个函数。
当我检查 Firebug 中的标记时,我看到:
li class="view view_2 view-first">
<a id="50" href="" class="thumb_link" onclick="update_default_proj_list(1, '', '_'); getProject(50);"><span class="selected"></span><img
src="13370318682.jpg" title="Tags: <a href=" http:="" whiteandgold.ro="" realty="" ?tag="house"" rel="tag">house</a>, <a href="http://
whiteandgold.ro/realty/?tag=rent-3" rel="tag">rent</a>" alt="" class="thumb">
我试图隐藏该文本:
img.thumb[title] {text-indent:-9999px;}
a[rel~="tag"] { text-indent:-999px;}`
它不起作用,你也可以看到这个here(尝试检查缩略图)
【问题讨论】: