小编Bri*_*Lam的帖子

如何在页面右下方添加固定按钮

我在网页底部添加固定按钮时遇到了一些问题.一直在用像素测试不同的数字,但是按钮没有显示在右侧页面的下方.

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)

html css button uibutton

25
推荐指数
2
解决办法
12万
查看次数

如何在图像下方对齐标题

我总共有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)

等等.

html css layout caption

14
推荐指数
1
解决办法
6万
查看次数

标签 统计

css ×2

html ×2

button ×1

caption ×1

layout ×1

uibutton ×1