惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
Arctic Wolf
博客园 - 聂微东
F
Fortinet All Blogs
云风的 BLOG
云风的 BLOG
小众软件
小众软件
V
Visual Studio Blog
博客园 - 三生石上(FineUI控件)
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
L
LangChain Blog
A
About on SuperTechFans
阮一峰的网络日志
阮一峰的网络日志
I
Intezer
T
The Blog of Author Tim Ferriss
Security Latest
Security Latest
C
CXSECURITY Database RSS Feed - CXSecurity.com
Know Your Adversary
Know Your Adversary
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Palo Alto Networks Blog
Scott Helme
Scott Helme
S
Secure Thoughts
Spread Privacy
Spread Privacy
T
Threat Research - Cisco Blogs
Attack and Defense Labs
Attack and Defense Labs
P
Privacy & Cybersecurity Law Blog
O
OpenAI News
H
Heimdal Security Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Help Net Security
Help Net Security
C
Cyber Attacks, Cyber Crime and Cyber Security
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
G
Google Developers Blog
博客园 - Franky
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
K
Kaspersky official blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
T
Tor Project blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Tenable Blog
Google Online Security Blog
Google Online Security Blog
PCI Perspectives
PCI Perspectives

博客园 - everx

CruiseControl.net - 找到的一些文档。分享出来 【摘抄】回归测试(Regression Test) 那就来说说ASP.NET MVC中的Routing吧 ASP.NET MVC - View ASP.NET MVC - Controller(part Ⅱ) ASP.NET MVC - Controller(part Ⅰ) ASP.NET MVC - Model 学一下ASP.NET MVC C# 3.0的新特性 jQuery学习笔记(八) jQuery 学习笔记(七) SilverLight学习之路(四) Silverlight学习之路(三) - everx - 博客园 JQuery学习笔记(六) 初次使用log4net Silverlight学习之路(二) JQuery学习笔记(四) 播下silverlight的种子 JQuery学习笔记(三)
JQuery学习笔记(五)
everx · 2008-02-25 · via 博客园 - everx

六、实用函数

1、JQuery的标记
$.browser
<b>msie</b>—Set to true if the user agent header identifies the browser as Microsoft

Internet
Explorer.
mozilla—Set to true if the user agent header identifies the browser as any Mozillabased
browser. This includes browsers such as Firefox, Camino, and Netscape.
safari—Set to true if the user agent header identifies the browser as Safari or any
Safari-based browser such as OmniWeb.
opera—Set to true if the user agent header identifies the browser as Opera.
version—Set to the version number of the rendering engine for the browser.

version并不是浏览器的版本号,而是浏览器核心的版本号

用这个标记,主要适用于在不同浏览器的方法相同,但是参数类型,或参数个数不同的情况

$.boxModel

结果返回true代表是W3C兼容的盒子模型,反之为IE的模型
主要可以体现在strict mode和quirks mode的差异
关于IE quirks mode的一个经典再现
元素的width指的是“内容的width” + padding的width + border的width,而W3C模式中,指明

元素的width应该仅仅是“内容的width”

可以在网页开头声明DOCTYPE来显示设置成strict mode

$.styleFloat

这个标记主要是为了兼容IE和其他浏览器对style中的float的差异进行处理的
在IE中,style的float应为 styleFloat,在其他浏览器中为 cssFloat
例如
element.style[$.styleFloat] = 'left';