Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
d584a884
Commit
d584a884
authored
Jun 17, 2006
by
Gilles van den Hoven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
$.getCSS (see bug #11)
parent
8ad487f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
45 deletions
+45
-45
jquery.js
jquery/jquery.js
+45
-45
No files found.
jquery/jquery.js
View file @
d584a884
...
@@ -357,17 +357,17 @@ $.getCSS = function(e,p) {
...
@@ -357,17 +357,17 @@ $.getCSS = function(e,p) {
// Handle extra width/height provided by the W3C box model
// Handle extra width/height provided by the W3C box model
var
ph
=
!
$
.
boxModel
?
0
:
var
ph
=
!
$
.
boxModel
?
0
:
parseInt
(
$
.
css
(
e
,
"paddingTop"
))
+
parseInt
(
$
.
css
(
e
,
"paddingBottom"
))
+
parseInt
(
$
.
css
(
e
,
"paddingTop"
))
+
parseInt
(
$
.
css
(
e
,
"paddingBottom"
))
+
parseInt
(
$
.
css
(
e
,
"borderTop"
))
+
parseInt
(
$
.
css
(
e
,
"borderBottom"
));
parseInt
(
$
.
css
(
e
,
"borderTop"
))
+
parseInt
(
$
.
css
(
e
,
"borderBottom"
))
||
0
;
var
pw
=
!
$
.
boxModel
?
0
:
var
pw
=
!
$
.
boxModel
?
0
:
parseInt
(
$
.
css
(
e
,
"paddingLeft"
))
+
parseInt
(
$
.
css
(
e
,
"paddingRight"
))
+
parseInt
(
$
.
css
(
e
,
"paddingLeft"
))
+
parseInt
(
$
.
css
(
e
,
"paddingRight"
))
+
parseInt
(
$
.
css
(
e
,
"borderLeft"
))
+
parseInt
(
$
.
css
(
e
,
"borderRight"
));
parseInt
(
$
.
css
(
e
,
"borderLeft"
))
+
parseInt
(
$
.
css
(
e
,
"borderRight"
))
||
0
;
var
oHeight
,
oWidth
;
var
oHeight
,
oWidth
;
if
(
$
.
css
(
e
,
"display"
)
!=
'none'
)
{
if
(
$
.
css
(
e
,
"display"
)
!=
'none'
)
{
oHeight
=
e
.
offsetHeight
||
parseInt
(
e
.
style
.
height
,
10
);
oHeight
=
e
.
offsetHeight
||
parseInt
(
e
.
style
.
height
,
10
)
||
0
;
oWidth
=
e
.
offsetWidth
||
parseInt
(
e
.
style
.
width
,
10
);
oWidth
=
e
.
offsetWidth
||
parseInt
(
e
.
style
.
width
,
10
)
||
0
;
}
else
{
}
else
{
var
els
=
e
.
style
;
var
els
=
e
.
style
;
var
ov
=
els
.
visibility
;
var
ov
=
els
.
visibility
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment