xanga既野 急 !!!!!!!!!!

2006-12-23 5:37 am
我個xg 有個框 ,框住晒全部日記,我想只係個框框裏面有blackground,點整呀????

回答 (2)

2006-12-27 12:41 am
✔ 最佳答案
有閞 Xanga 的背景語法如下:
日記背景圖固定
CODE:
<STYLE type="text/css">
<!--
BODY{background-image:url("圖片網址");
background-color:000000;
background-position:% %;
background-repeat:no-repeat;
background-attachment:fixed;}
-->
</STYLE>

日記內容背景
CODE:

<style type="text/css">
table.blogbody {
family-font: verdana;
border: 粗度px dotted #顏色;
BACKGROUND-IMAGE: url(圖片網址);
FILTER: alpha(opacity=透明度);
}
</style>


隨機背景圖+自訂位置


<script language=javascript>
var pic=new Array(5)
pic[0]="圖1網址"
pic[1]="圖2網址"
pic[2]="圖3網址"
pic[3]="圖4網址"
pic[4]="圖5網址"


var newdate=new Date()
var getpic=newdate.getSeconds()%pic.length
document.write('<STYLE>')
document.write('body{ background-image: url('+pic[getpic]+');')
document.write(' background-repeat: no-repeat; ')
document.write('background-attachment: fixed; ')
document.write('background-position: 50% 50% }')
document.write('</STYLE>')
</script>

**語法中最底部background-position: 50% 50%的50% 50%是控制圖片顯示位置,可修改。若設定為background-position: 0% 0%則是升到、最高、最左。如此類推。


2007-01-01 5:47 pm
日記背景圖固定

CODE:

2007-01-01 09:50:26 補充:
BODY{background-image:url(&quot;圖片網址&quot;);background-color:000000;background-position:% %;background-repeat:no-repeat;background-attachment:fixed;}


收錄日期: 2021-04-13 17:03:12
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20061222000051KK04143

檢視 Wayback Machine 備份