2017-07-04 13 views

答えて

0

<!DOCTYPE html> 
 
<html> 
 
<head> 
 
<style> 
 
body { 
 
    background-image: url('w3css.gif'); 
 
    background-repeat: no-repeat; 
 
    background-attachment: fixed; 
 
} 
 
p{ 
 
position: fixed; 
 
color:Red; 
 
} 
 
</style> 
 
</head> 
 
<body> 
 

 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 

 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>The background-image is fixed. Try to scroll down the page.</p> 
 
<p>If you do not see any scrollbars, try to resize the browser window.</p> 
 

 
</body> 
 
</html>

背景取付:固定は、イメージ位置として位置決めするためのものである:固定します。 p、span、divのような要素です。

+0

私はそれを...ありがとうございました...))) –

+0

お元気ですか:ごめんなさい、私は最初に質問を誤解しました。それは私がそれが質問ではなかったとコメントした理由:( –

+0

悩んでいない仲間: ) –