background
英 [?b?kgra?nd]? ?美 [?b?k?ɡra?nd]??
n.(畫等的)背景;底色;背景資料;配樂
復(fù)數(shù): backgrounds
repeat
英 [r??pi:t]? ?美 [r??pit]??
vt.重復(fù);復(fù)述,背誦
vi.重做;重復(fù)投票
n.重復(fù);(節(jié)目)重演;重復(fù)的事物
第三人稱單數(shù): repeats 復(fù)數(shù): repeats 現(xiàn)在分詞: repeating 過去式: repeated 過去分詞: repeated
css background-repeat屬性 語法
background-repeat屬性怎么用?
CSS中background-repeat屬性是用來設(shè)置背景圖像如何平鋪。background-repeat:repeat-x;表示只有水平位置會(huì)重復(fù)背景圖像;background-repeat:repeat-y;表示只有垂直位置會(huì)重復(fù)背景圖像。
作用:設(shè)置是否及如何重復(fù)背景圖像。
說明:background-repeat 屬性定義了圖像的平鋪模式。從原圖像開始重復(fù),原圖像由?background-image?定義,并根據(jù)?background-position?的值放置。
注釋:任何版本的 Internet Explorer (包括 IE8)都不支持屬性值 "inherit"。
css background-repeat屬性 示例
<html> <head> <style type="text/css"> body { background-image: url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg); background-repeat: repeat-y } </style> </head> <body> </body> </html>
運(yùn)行實(shí)例 ?
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例