Yahoo奇摩知識+將於 2021 年 5 月 4 日 (美國東部時間) 終止服務。自 2021 年 4 月 20 日 (美國東部時間) 起,Yahoo奇摩知識+服務將會轉為唯讀模式。其他Yahoo奇摩產品與服務或您的Yahoo奇摩帳號都不會受影響。如需關於Yahoo奇摩知識+ 停止服務以及下載您個人資料的資訊,請參閱說明網頁。
6 個解答
- 2 0 年前最佳解答
右上:
<style type="text/css">
<!--
body {background-image:url(圖片網址);
background-repeat:no-repeat;
background-position: right top;
background-attachment:fixed}
-->
</style>
右下:
<STYLE type="text/css">
<!--
body {background-image:url("圖片網址");
background-position:100% 90%;
background-repeat:no-repeat;}
-->
</STYLE>
左上:
<STYLE type="text/css">
<!--
BODY
{
background-image : url("圖片網址");
background-repeat: no-repeat;
background-attachment: fixed;
}
-->
</STYLE>
左下:
<STYLE type="text/css">
<!--
BODY {
background-image : url("圖片網址");
background-attachment: fixed;
background-position:0% 100%;
background-repeat: no-repeat;}
-->
</STYLE>
中央:
<STYLE><!--
body {
background-image : url("圖片網址");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center ;}
-->
</STYLE>
左側:
<style type="text/css">
<!--
body {background-image:url(圖片網址);
background-repeat:repeat-y;
background-attachment:fixed}
-->
</style>
右側:
<style type="text/css">
<!--
body {background-image:url(圖片網址);
background-repeat:repeat-y;
background-position: right;
background-attachment:fixed}
-->
</style>
上方:
<style type="text/css">
<!--
body {background-image:url(圖片網址);
background-repeat:repeat-x;
background-attachment:fixed}
-->
</style>
下方:
<style type="text/css">
<!--
body {background-image:url(圖片網址);
background-repeat:repeat-x;
background-position: bottom;
background-attachment:fixed}
-->
</style>
這種嗎?!
參考資料: 知識 - 2 0 年前
背景置中↓
<style type=text/css>
<!--
body{
background-image:url(圖片網址);
background-position:center;
background-attachment:fixed;
background-repeat:no-repeat;}
-->
</style>
背景置於右上↓
<style type=text/css>
<!--
body{
background-image:url(圖片網址);
background-position:right top;
background-attachment:fixed;
background-repeat:no-repeat;}
-->
</style>
背景置於右下↓
<style type=text/css>
<!--
body{
background-image:url(圖片網址);
background-position:right bottom;
background-attachment:fixed;
background-repeat:no-repeat;}
-->
</style>
背景置於左上↓
<style type=text/css>
<!--
body{
background-image:url(圖片網址);
background-position:left top;
background-attachment:fixed;
background-repeat:no-repeat;}
-->
</style>
背景置於左下↓
<style type=text/css>
<!--
body{
background-image:url(圖片網址);
background-position:left bottom;
background-attachment:fixed;
background-repeat:no-repeat;}
-->
</style>
其他的你可以去這個網站看看!
http://home.kimo.com.tw/tintin54006831/bobo.html#t...
那裡面很豐富!
趕快選我吧!
參考資料: 自己&網路 - 2 0 年前
可以控制放在上下左右
<STYLE type="text/css">
<!--
body {background-image:url("圖片網址");
background-position:100% 90%;
background-repeat:no-repeat;}
-->
</STYLE>
參考資料: 我 - 2 0 年前
背景圖語法
如留言板本身沒設置背景圖片位置
此語法便適合使用
語法中 bgcolor="cccccc" 是背景色
用意是當圖片看不見時還可預設顏色代替
cccccc 是顏色代碼。但可用
顏色英文字母代替、例如 pink 等等
<BODY bgcolor="cccccc" background="圖片網址" bgproperties="fixed">
- 小倫Lv 72 0 年前
<style type="text/css">body{background-image : url(img/bg.gif); /*背景圖片*/}</style>url後的()填入背景圖片網址就可以了