早上好,
我有一个问题,我正在为一个小队名单拉出一张个人资料图片,除了某些iphone之外,其他地方都显示确定,其中有不同的图片,任何想法?
是不是我还没有为移动平台做过任何编码,而且它正在尝试优化Iphone?
任何帮助表示感谢。
<style>
.profile img{
float: left;
margin-right: 10px;
margin-top: 10px;
}
.profile h3 {
display: inline-block;
}
.profile pos{
}
.column-left{ float: left; width: 33%; }
</style>
<div class="profile">
[insert_php]
$result = mysql_query("SELECT *,
CASE Position
WHEN 'DF' THEN 'Defender'
WHEN 'MF' THEN 'Midfielder'
WHEN 'FD' THEN 'Forward'
END as PositionLong
FROM People
WHERE
(Position='DF' or
Position='MF' or
Position='FD') and
Season = '2015'
ORDER BY Number");
while($row = mysql_fetch_assoc($result)){
echo '<div class="column-left"><img src="/wp-content/uploads/profile/'.$row['Id'].'.jpg" alt="" />',
'<h3 class="widget-title">'.$row['FirstName'].' '.$row['Surname'].'</h3><br />',
'<pos>'.$row['PositionLong'].' #'.$row['Number'].'</pos>,</div>';
}
[/insert_php]
</div>