object.css('width','height') 这个是设置的格式啊。当前的意思是object的width的值被设置成了height。但是你看它返回的应该是一个函数,看样子像原码。具体没看了。  widht:function ( margin, value ){

var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),

extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );

return jQuery.access( this, function( elem, type, value ) {

var doc;

if ( jQuery.isWindow( elem ) ) {

// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there

// isn't a whole lot we can do. See pull request at this URL for discussion:

// https://github.com/jquery/jquery/pull/764

return elem.document.documentElement[ "client" + name ];

}

// Get document width or height

if ( elem.nodeType === 9 ) {

doc = elem.documentElement;

// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest

// unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.

return Math.max(

elem.body[ "scroll" + name ], doc[ "scroll" + name ],

elem.body[ "offset" + name ], doc[ "offset" + name ],

doc[ "client" + name ]

);

}

return value === undefined ?

// Get width or height on the element, requesting but not forcing parseFloat

jQuery.css( elem, type, extra ) :

// Set width or height on the element

jQuery.style( elem, type, value, extra );

}, type, chainable ? margin : undefined, chainable, null );

} height:function ( margin, value ) {

var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),

extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );

return jQuery.access( this, function( elem, type, value ) {

var doc;

if ( jQuery.isWindow( elem ) ) {

// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there

// isn't a whole lot we can do. See pull request at this URL for discussion:

// https://github.com/jquery/jquery/pull/764

return elem.document.documentElement[ "client" + name ];

}

// Get document width or height

if ( elem.nodeType === 9 ) {

doc = elem.documentElement;

// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest

// unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.

return Math.max(

elem.body[ "scroll" + name ], doc[ "scroll" + name ],

elem.body[ "offset" + name ], doc[ "offset" + name ],

doc[ "client" + name ]

);

}

return value === undefined ?

// Get width or height on the element, requesting but not forcing parseFloat

jQuery.css( elem, type, extra ) :

// Set width or height on the element

jQuery.style( elem, type, value, extra );

}, type, chainable ? margin : undefined, chainable, null );

}

css多个属性怎么写,.css多个属性读取写法?相关推荐

  1. css 圆形背景icon_我写CSS的常用套路(附demo的效果实现与源码)

    前言 本文是笔者写CSS时常用的套路.不论效果再怎么华丽,万变不离其宗.1.交错动画 有时候,我们需要给多个元素添加同一个动画,播放后,不难发现它们会一起运动,一起结束,这样就会显得很平淡无奇.那么如 ...

  2. 10 个 GitHub 上超火的 CSS 技巧项目,找到写 CSS 的灵感!

    大家好,我是你们的 超级猫,一个不喜欢吃鱼.又不喜欢喵 的超级猫 ~ 如果 CSS 是女孩子,肯定如上图那样吧 ???? ~ 简介 一般人没事的时候刷刷朋友圈.微博.电视剧.知乎,而有些人是没事的时候 ...

  3. 3 css 奖品出现弹出动画_10 个 GitHub 上超火的 CSS 奇技淫巧项目,找到写 CSS 的灵感!...

    如果 CSS 是女孩子,肯定如下图那样吧 ~ 简介 一般人没事的时候刷刷朋友圈.微博.电视剧.知乎,而有些人是没事的时候刷刷 GitHub ,看看最近有哪些流行的项目. 久而久之,这差距就越来越大,因 ...

  4. html与css结合动效案例,写CSS动效的常用套路(附demo的效果实现与源码)

    作者:alphardex https://juejin.im/post/5e070cd9f265da33f8653f0 前言 本文是笔者写CSS时常用的套路.不论效果再怎么华丽,万变不离其宗. 1.交 ...

  5. css多个属性怎么写,具有多个属性的CSS过渡简写?

    ibeautiful 如果您有想要以同样的方式过渡几个特定的属性(因为你也有你特别一些属性并不想转型,比方说opacity),另一种选择是做这样的事情(略去了前缀):.myclass {    tra ...

  6. 10 个 GitHub 上超火的 CSS 奇技淫巧项目,找到写 CSS 的灵感!

    大家好,我是你们的 超级猫,一个不喜欢吃鱼.又不喜欢喵 的超级猫 ~ 如果 CSS 是女孩子,肯定如上图那样吧

  7. Web前端,CSS中关于背景颜色、背景图片、背景平铺、背景位置、背景相关属性连写

    前言 持续总结输出中,今天分享的是Web前端,CSS中关于背景颜色.背景图片.背景平铺.背景位置.背景相关属性连写 1.背景颜色 background-color(bgc) 颜色取值: 关键字.rgb ...

  8. html 中写样式,css样式中黑体怎么写

    css样式中黑体怎么写 css中通过font-family指定黑体即可.font-family:"Heiti SC","黑体-简" 如果是中文字体需要加引号,字 ...

  9. 比较有名的CSS,优雅地写css

    重置你的CSS样式 使用CSS常量进行更快速的开发. /* # Dark grey (text): #333333 # Dark Blue (headings, links) #000066 # Mi ...

最新文章

  1. [NOI2005]维护数列
  2. android异常(2)
  3. 希尔排序的java算法_Java算法系列篇 【希尔排序】
  4. 让Apache支持Rewrite静态页面重写的方法
  5. 浏览器输入网址到浏览器渲染页面的过程
  6. 设计模式--策略模式(strategy)
  7. P2898 [USACO08JAN]haybale猜测Haybale Guessing
  8. ASP.NET Atlas简单控件介绍——InputControl,TextBox,Button和CheckBox
  9. 只能输入数字或含两位小数的正则
  10. 十八.描述符(__get__,__set__,__delete__)
  11. 在SQL Server 语句中,如何将参数做为表名传递到查询语句中
  12. oppo刷机工具_黔隆科技刷机教程OPPOA1忘记密码免刷机保资料解屏幕锁教程
  13. 1、串口(UART/COM/TTL/RS232/RS485)
  14. Centos 6 版本下载
  15. 分享若何利用博客做外链的心得寻味
  16. Python从RGBD数据进行3D场景重建
  17. 国威电话交换机如何设置加拨17909IP功能
  18. 如何用PDF编辑器更改和隐藏PDF批注
  19. 数据结构基础(严蔚敏)
  20. win10图标变白纸_#波导的效率私房# WIN10自带这么多好工具

热门文章

  1. 中科院自动化研究所面试
  2. Windows无线网“无法连接到这个网络”的解决办法
  3. 苹果公司的企业文化_【全景标杆】乔布斯给苹果留下了什么样的企业文化?
  4. ubuntu18.04安装vim
  5. 洛谷:坚果保龄球(P1413,贪心)
  6. verdi\debussy的使用技巧
  7. PHP设计模式(2) -创建型模式
  8. 【数据结构】先序遍历+中序遍历创建二叉树(C++实现)
  9. 华为应用内支付无法拉起
  10. 小程序根据地址信息获取经纬度导航功能实现