背景画像を横に繰り返す方法

分析例:

background-repeat 属性は、背景画像のタイリング方法を設定するために使用されます。次の値を設定できます。

## ● 繰り返し: デフォルト値、背景画像が垂直方向と水平方向に繰り返されます。

##●repeat-x: 水平位置のみ背景画像を繰り返します。

##●repeat-y: 垂直位置のみ背景画像を繰り返します。

# ● no-repeat: 背景画像を繰り返さないように設定します。


#

学び続ける
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> <style> body { background-image:url('https://img.php.cn/upload/article/000/000/015/5c6a80bba060c467.png'); background-repeat:repeat-x; } </style> </head> <body> <h1>Hello World!</h1> </body> </html>
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!