- สมัครสมาชิกเมื่อ
- 10-5-2008
- เข้าระบบล่าสุด
- 18-3-2010
- ระดับการใช้งาน
- 200
- หัวข้อสำคัญ
- 0
- เครดิต
- 1131
- จิตพิสัย
- 1131
- แอ๊บแบ๊ว
- 1173
- โพสต์แล้ว
- 1357
  
|
ทุกอันเป็นแบบรูปยึดติดพื้นหลังไม่เลื่อนตามบาร์
1.บังคับให้รูปbgอยู่ตรงกลางด้านล่าง
<styletype='text/css'> body, .bodyContent {background-color:ใส่โค้ดสีพื้นส่วนที่ไม่ใช่รูป;background-image:url(ใส่urlรูปแทนตรงนี้); background-position:BottomCenter; background-attachment:fixed; background-repeat:no-repeat;border-width:0px; border-style:Solid; } </style>
2.บังคับให้รูปbgอยู่ตรงกลางด้านบน
<styletype='text/css'> body, .bodyContent {background-color:ใส่โค้ดสีพื้นส่วนที่ไม่ใช่รูป;background-image:url(ใส่urlรูปแทนตรงนี้); background-position:TopCenter; background-attachment:fixed; background-repeat:no-repeat;}</style>
3.บังคับให้รูปbgอยู่มุมด้านซ้ายล่าง
<styletype='text/css'> body, .bodyContent {background-color:ใส่โค้ดสีพื้นส่วนที่ไม่ใช่รูป;background-image:url(ใส่urlรูปแทนตรงนี้); background-position:BottomLeft; background-attachment:fixed; background-repeat:no-repeat;</style>
4.บังคับให้รูปbgอยู่มุมด้านซ้ายบน
<styletype='text/css'> body, .bodyContent {background-color:ใส่โค้ดสีพื้นส่วนที่ไม่ใช่รูป ;background-image:url(ใส่urlรูปแทนตรงนี้); background-position:top Left;background-attachment:fixed; background-repeat:no-repeat; </style>
5.บังคับให้รูปbgอยู่ด้านซ้ายกลาง
<styletype='text/css'> body, .bodyContent {background-color:ใส่โค้ดสีพื้นส่วนที่ไม่ใช่รูป ;background-image:url(ใส่urlรูปแทนตรงนี้); background-position:centerLeft; background-attachment:fixed; background-repeat:no-repeat;}</style>
6.บังคับให้รูปbgอยู่ด้านขวาล่าง
<styletype='text/css'> body, .bodyContent {background-color:ใส่โค้ดสีพื้นส่วนที่ไม่ใช่รูป ;background-image:url(ใส่urlรูปแทนตรงนี้); background-position:bottomright; background-attachment:fixed; background-repeat:no-repeat;}</style>
7.บังคับรูปbgให้อยู่ด้านขวากลาง
<styletype='text/css'> body, .bodyContent {background-color:ใส่โค้ดสีพื้นส่วนที่ไม่ใช่รูป ;background-image:url(ใส่urlรูปแทนตรงนี้); background-position:centerright; background-attachment:fixed; background-repeat:no-repeat;}</style>
8.บังคับรูปbgให้อยู่ด้านขวาบน
<styletype='text/css'> body, .bodyContent {background-color:ใส่โค้ดสีพื้นส่วนที่ไม่ใช่รูป ;background-image:url(ใส่urlรูปแทนตรงนี้); background-position:topright; background-attachment:fixed; background-repeat:no-repeat;}</style>
ช่วยเม้นกันด้วยนะจร้า |
กระทู้แนะนำ:
|