我可以编写CSS专门为Mac浏览器? [英] Can I code CSS specifically for Mac browsers?

查看:143
本文介绍了我可以编写CSS专门为Mac浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

网站: http://clientfiles.priworks.com /lgmanagedportfolios/test/investment.html

我在此网页上工作了一段时间,现在试图获取第一个子菜单链接的左侧以与第一个父级/主菜单链接的左侧对齐。

I have been working at this web page for a while now trying to get the left side of the first submenu link to line up with the left of the 1st parent/main menu link.

我不认为有一个合理的方式做,得到它正确。所有win浏览器和所有Mac浏览器(有一些条件CSS),但不是Win和Mac浏览器在一起,例如在Mac Firefox中的文本位置是一致的,文本是太远了,而在Win Firefox是完美的。

I don't think there is a logical way of doing it but after much fudging I am close to getting it just right. The position is consistent for all win browsers and all Mac browsers (with some conditional CSS) but not for Win and Mac browsers together, for instance in Mac Firefox the text is too far right while in Win Firefox it's perfect.

问题:是否可以专门为Mac浏览器调整填充量?

Question: Is their a way to adjust the padding specificly for Mac browsers?

推荐答案

我不相信你可以用纯CSS做到这一点,但你可以使用javascript检测操作系统,然后使用它来加载不同的CSS。

I don't believe you can do this with pure css, but you can detect the OS with javascript, and then use that to load different css.

http://www.quirksmode.org/js/detect.html

这篇关于我可以编写CSS专门为Mac浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆