|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS fot mac and pc platform
Hi all,
Just made a tables site runs oke on a pc but not on a mac. So now i want to create a mac-css. How can i include the right css-file based on an user platform????? Javascript or php?? |
|
#2
|
||||
|
||||
|
javascript:
alert(navigator.platform) ; |
|
#3
|
|||
|
|||
|
|
|
#4
|
||||
|
||||
|
the only downside is that some browsers can spoof others, eg Opera can pretend to be IE or Moz. You can only eschew this bu using Javascript object detection:
Code:
if (document.all && document.getELementById && !document.layers) isIE = true ; if (!document.all && document.getELementById && !document.layers) isMoz = true ; if (document.all && document.getELementById && document.layers) isOp = true ; kapiche? |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS fot mac and pc platform |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|