conditional statement for screen resolution?

后端 未结 3 498
慢半拍i
慢半拍i 2020-12-31 12:36

I would like to use a conditional statement to attach a different stylesheet for:

if the clients resolution is <= 1024*768

I\'m pretty sure t

3条回答
  •  清歌不尽
    2020-12-31 13:14

    There's this option, totally client side and javascript driven, add a script tag:

    
    

    You could even add other if statements for smartphones and tablets.

提交回复
热议问题