背景(Background)如何縮寫(xiě)?_Div+CSS教程
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!
Background背景的屬性如下:
示例代碼 [m.dounai2.com]
●background-color:#f00;
●background-image:url(background.gif);
●background-repeat:no-repeat;
●background-attachment:fixed;
●background-position:0 0;
●background-image:url(background.gif);
●background-repeat:no-repeat;
●background-attachment:fixed;
●background-position:0 0;
可以縮寫(xiě)為一句:background:#f00 url(background.gif) no-repeat fixed 0 0;
語(yǔ)法是background:color image repeat attachment position;
你可以省略其中一個(gè)或多個(gè)屬性值,假如省略,該屬性值將用瀏覽器默認(rèn)值,默認(rèn)值為:
示例代碼 [m.dounai2.com]
●color: transparent
●image: none
●repeat: repeat
●attachment: scroll
●position: 0% 0%
●image: none
●repeat: repeat
●attachment: scroll
●position: 0% 0%
相關(guān)Div+CSS教程:
- DIV+CSS設(shè)計(jì)的誤區(qū)
- CSS基礎(chǔ):常用CSS英文字體介紹
- IE6和IE7中border邊框斷線現(xiàn)象
- border:none;與border:0;的有什么不同?
- div+css下js對(duì)聯(lián)廣告不隨屏幕滾動(dòng)的解決方法
- HTML元素的ID和Name屬性的區(qū)別
- divcss教程:深入了解css的行高Line Height屬性
- CSS文檔流,塊級(jí)元素和內(nèi)聯(lián)元素
- 5個(gè)你該知道的CSS3新技術(shù)
- 用正則表達(dá)式替換a標(biāo)記href值
- 30個(gè)優(yōu)秀的CSS導(dǎo)航和按鈕設(shè)計(jì)教程
- css中px和em有什么區(qū)別
Div+CSS教程Rss訂閱Div+Css教程搜索
Div+CSS教程推薦
- CSS帶當(dāng)前標(biāo)識(shí)的標(biāo)簽式橫向?qū)Ш?/a>
- ol有序列表居然沒(méi)有按順序顯示的奇怪現(xiàn)象
- CSS selector 選擇符是我們進(jìn)行CSS網(wǎng)頁(yè)布局的基
- web標(biāo)準(zhǔn)中滾動(dòng)條顏色設(shè)置失效怎么辦?
- IE6和IE7中border邊框斷線現(xiàn)象
- 如何避免容器被長(zhǎng)單詞撐開(kāi)?
- Google谷歌的CSS前景圖片合并技術(shù)
- 為什么IE6下容器的寬度和FF解釋不同呢
- dreamweaver套用源格式,將混亂無(wú)序的代碼變得整潔
- 一定要學(xué)CSS嗎?有什么理由?
猜你也喜歡看這些
- DIVCSS菜單:超炫的菜單一張圖片實(shí)現(xiàn)鼠標(biāo)的兩種狀態(tài)及CSS當(dāng)前頁(yè)效果
- CSS實(shí)例:三列自適應(yīng)等高且中列寬度自適應(yīng)
- CSS實(shí)例:如何讓無(wú)空格的長(zhǎng)字符在IE和FF下面實(shí)現(xiàn)自動(dòng)換行?
- ul列表中包含input時(shí)line-height屬性失效的解決辦法
- CSS導(dǎo)航菜單:仿淘寶首頁(yè)導(dǎo)航條布局效果
- CSS實(shí)例:ULli打造CSS橫向菜單藍(lán)色地平線
- CSS中以圖片替換文字的表現(xiàn)方法
- DIVCSS布局教程:應(yīng)用ul、li實(shí)現(xiàn)表格形式
- CSS JavaScript打造鼠標(biāo)懸停圖片漸顯效果!
- Web標(biāo)準(zhǔn)實(shí)戰(zhàn)CSS網(wǎng)頁(yè)布局Google首頁(yè)
- 相關(guān)鏈接:
- 教程說(shuō)明:
Div+CSS教程-背景(Background)如何縮寫(xiě)?。