0
我想弄清楚在哪裏指定facebook.png
的圖像大小,即24x24。指定由PHP文件調用的圖像寬度和高度
下面是代碼,但我不確定如何指定大小。我知道如何在HTML中做到這一點,但不是在PHP中。
<?php if (get_option('solostream_facebook_url')) { ?>
<a title="<?php echo stripslashes(get_option('solostream_facebook_link_text')); ?>" rel="external" href="http://www.facebook.com/<?php echo stripslashes(get_option('solostream_facebook_url')); ?>"><img class="facebook-sub" src="<?php bloginfo('template_directory'); ?>/images/facebook.png" alt="<?php echo stripslashes(get_option('solostream_facebook_link_text')); ?>" align="top" /></a>
<?php } ?>
請清楚解釋你的問題,你究竟想要什麼? –