.outerHeight() - Manipulation , jQuery |
.outerHeight() เป็นการใช้ jQuery Manipulation กับ .outerHeight() ใช้ในการกำหนดค่าความสูงและอ่านค่าความสูงของ element โดยทำการ include ที่เป็น Margin ด้วย
บทความ jQuery กับ HTML พื้นฐาน Go to : jQuery HTML : jQuery and HTML
Syntax
1. .outerHeight( [includeMargin] )

Example ตัวอย่างการใช้งาน jQuery .outerHeight()
ManipulationouterHeight.html

01. <html>
02. <head>
03. <title>ThaiCreate.Com jQuery Tutorials</title>
04. <style>
05. p { margin:10px;padding:5px;border:2px solid #666; }
06. </style>
07. <script type= "text/javascript" src= "jquery-1.6.4.js" ></script>
08. <script type= "text/javascript" >
09. $(document).ready( function (){
10.
11. var p = $( "p:first" );
12. $( "p:last" ).text( "outerHeight:" + p.outerHeight() + " , outerHeight(true):" + p.outerHeight( true ) );
13.
14. });
15. </script>
16. </head>
17. <body>
18.
19. <p>Hello</p><p></p>
20.
21. </body>
22. </html>
Screenshot

คำอธิบาย (ภาษาไทย)
จากตัวอย่างเป็นการใช้ jQuery Manipulation กับ .outerHeight() ในการจัดการกับ element ที่อ้างถึง
ลิ้งค์ที่ควรศึกษา
Go to : jQuery Selectors : jQuery Selectors and Element
Go to : .outerHeight() - Css , jQuery
เกี่ยวกับบทความ
ส่วนหนึ่งของบทความได้เรียบเรียงและแปลจากเว็บไซต์ jQuery.Com โค้ดตัวอย่างคำสั่งนี้อยู่ภายใต้สัญญาอนุญาตของ GFDL สามารถนำโค้ดและคำสั่งใช้งานได้ฟรี สงวนลิขสิทธิ์เฉพาะคำอธิบายภาษาไทย
|
ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท
|
|
|
By : |
ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ) |
|
Score Rating : |
  |
|
|
Create/Update Date : |
2011-09-22 21:13:11 /
2017-03-19 13:50:15 |
|
Download : |
No files |
|
Sponsored Links / Related |
|
|
|
|
|
|