Thaimisc.com : Today's tips
freepollHOMEFree Chat serverFree Guest BookFree Ecard ServerFree webboard
 
 
  Article
  Html It's Easy
ICQ Status
How2Use FTP
Protect Directory
More...
  Column
  Flash Learning
Perl Scripts
ToDay's Tip
It News
  Community
  Forum
Chatroom new
  etc.
  Guest Book
links
Contact Us
Advertising
FAQ
  MiscFree
  Free Guest Book new
Free Ecard Server new
Free webboard new
Free chat Server new
Free Perl Scripts
Perl Search
Webboard
Web Directory
Protect Directory
Multi Protect new



สมัครสมาชิก เพื่อรับข่าวสารทาง e-mail

 

Today's Tip

จะทำให้ ภาพฉากหลังของเวบเพจอยู่นิ่งตรงกลางทำอย่างไร ?

คงมีหลายๆ คนที่ต้องการจะทราบนะครับว่าเค้าทำกันอย่างไรนะครับ เรามาศึกษาโค๊ตกันเลยดีกว่านะครับ

<style type="text/css">
<!-- body { background-attachment: fixed; background-image: url(bg.gif); background-repeat: no-repeat; background-position: center center} -->
</style>


โดยเราสามารถนำโคตข้างวนนั้นไปติดที่ส่วนของ <head>..</head> ได้เลยนะครับ
โดยโค๊ตนี้จะเป็น การสั่งให้ background นั้นอยู่นิ่งในหน้าเวบเพจ ตรงกลาง คุณสามารถนำแทกนี้ไปไว้บนไฟล์เวบเพจของคุณได้เลยครับ โดยคุณจะต้องเปลี่ยน bg.gif ให้เป็นไฟล์ของรูปภาพของคุณเองนะครับเท่านี้เอง ซึ่งเวลาสกอล์บาร์ลงไป หรือขึ้น ภาพนั้นก็จะยังอยู่ตรงกลาง นะครับ (ใช้กับ IE เท่านั้น) ส่วนใน NN ภาพจะอยู่ตรงกลางของเพจครับ แต่เวลาเลือกสกอล์บาร์ภาพจะเลื่อนตามนะครับ

 

 

 

 

Copyright 1999 Thailand Miscellaneous. Allrights reserved. webmaster@thaimisc.com