有沒有人有一個想法在CSS會把下面的鏈接塊?如何做一個WordPress的鏈接塊?
<div class="one_third">
<?php
//The Query
query_posts('posts_per_page=1&cat=15');
//The Loop
if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?></small>
<?php if (has_post_thumbnail()) the_post_thumbnail('medium-thumbnail'); ?>
<div class="entry">
<p><a style="display: block;" rel="bookmark" href="<?php the_permalink(); ?>"><?php echo strip_tags(get_the_excerpt());?></a></p>
對不起,沒有職位符合您的條件。
感謝
你能發表嗎?生成的html和你的css? – Sotiris 2011-06-05 15:52:37
你是什麼意思的一個「鏈接塊」?你想要禾潛水工作就像一個鏈接? – 2011-06-05 16:04:50
@大衛是的,我希望「one_third」div包裝內的所有東西都成爲一個鏈接。請參閱下面的代碼。 感謝 – Nsokyi 2011-06-06 19:07:27