0
A
回答
2
我建议给予0-DIV静态宽度:
.total{
position:absolute;
background-color:aqua;
font-weight: bold;
font-size:10px;
text-align:center;
width: 40px; <----
left: 5%;
bottom:14px;
}
2
添加此
.divThree:after {
content: "";
display: inline-block;
vertical-align: middle;
height: 100%;
}
和改变。总
.total{
background-color:aqua;
font-weight: bold;
font-size:10px;
text-align:center;
width: 90%;
vertical-align: middle;
display: inline-block;
}
相关问题
- 1. 居中背景图片?
- 2. 在Android中居中背景图片
- 3. 背景图片上的中心文字
- 4. 使背景图片居中链接
- 5. CSS - 居中页脚背景图片
- 6. 大型居中背景图片
- 7. 背景图片上的背景图像
- 8. 文字背后的背景图片
- 9. h标签在IE浏览器中居中的背景图片
- 10. 在DIV中居中背景图像
- 11. AdControl上的背景图片
- 12. 在两列左侧居中放置一个背景图片
- 13. 没有文字的CSS背景图片?
- 14. 背景图片和文字将固定在网站上
- 15. css文字在背景图片上淡出效果
- 16. 如何创建背景图片并在其上添加文字
- 17. 背景图片出现在Opera和Chrome的前景图片上
- 18. 背景图片
- 19. 背景图片
- 20. 检测悬停在背景图片上
- 21. 背景图片在移动设备上
- 22. 在背景图片上放置链接
- 23. 旋转(改变),居中,拉伸背景图片脚本
- 24. 居中背景Jumbotron图片,并使其移动响应
- 25. 如何在Windows 7上的文件夹中有背景图片?
- 26. 如何在背景div baloon图像中居中文本?
- 27. 如何设置背景图片上方的文字
- 28. 背景图片上的图像
- 29. 叠加在背景图片
- 30. 背景图片在Firefox
同上,用于左值...大约5px s应该是对的......否则它会移动。 –
哦,是的。我忘了将%更改为px。谢谢 :) – Gabbax0r