我在网页底部添加固定按钮时遇到了一些问题.一直在用像素测试不同的数字,但是按钮没有显示在右侧页面的下方.
HTML
<a href="#head"><img src="upbutton.png" id="fixedbutton"></a>
Run Code Online (Sandbox Code Playgroud)
CSS
.fixedbutton {
position: fixed;
bottom: 560px;
right: 1000px;
}
Run Code Online (Sandbox Code Playgroud) 我总共有9个图像,每行有3个,我已经设法为我的一个图像添加了一个标题,但是没有为其他图像添加标题,因为它只是将所有内容放在下面,而不是将文本对齐到每个图像的行.
<figure>
<center>
<img src='images/album1.jpg' alt='missing' />
<figcaption>Album name goes here
<br>Year goes here
<br>artist name goes here</figcaption>
<img src='images/album2.jpg' alt='missing' />
<figcaption>Album name goes here
<br>Year goes here
<br>artist name goes here</figcaption>
<img src='images/album2.jpg' alt='missing' />
<figcaption>Album name goes here
<br>Year goes here
<br>artist name goes here</figcaption>
</figure><center>
Run Code Online (Sandbox Code Playgroud)
等等.