2012-05-24 105 views

回答

1

爲iPhone創建一個自定義樣式表,並附上它像這樣:

<?php 
    $browser = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); 
    if ($browser == true){ 
    $browser = 'iphone'; 
    } 
?> 

<?php if($browser == 'iphone'){ ?> <!-- Attach style-sheet here -- <?php } ?>