Html 当没有任何效果时如何使用 CSS 向上移动文本

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14854900/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 05:35:44  来源:igfitidea点击:

How to move text up using CSS when nothing is working

htmlcss

提问by vipin8169

I want to move the text displayed at the bottom of the page slightly upwards and have tried almost everything i know and google but can't shift the text upwards to display the remaining clipped text.

我想将页面底部显示的文本稍微向上移动,并尝试了我所知道的几乎所有内容和谷歌,但无法将文本向上移动以显示剩余的剪辑文本。

Attached is a ScreenShot of the same Please suggest that what can be done to accomplish this task Text clipped from bottom

附件是相同的屏幕截图请建议可以做什么来完成此任务 从底部剪下的文本

采纳答案by vipin8169

used the following snippet and it worked fine..

使用了以下代码段,它工作正常..

.smallText .bmv-disclaimer {
   height: 40px;
}

回答by pwolaq

you can try

你可以试试

position: relative;
bottom: 20px;

but I don't see a problem on my browser (Google Chrome)

但我的浏览器(谷歌浏览器)没有发现问题

回答by onlinespending

try a negative margin.

尝试负边距。

margin-top: -10px; /* as an example */

回答by Grant Thomas

Your footer container is constricting the width of the inner element with an explicit width on itself, which sees the text clipped at the end and wrapped onto a new line, so change that:

您的页脚容器正在限制内部元素的宽度,其本身具有明确的宽度,它会看到文本在末尾被剪裁并换行,因此请更改:

div#fv2-footer-container {
  width: 1090px;
  ...

回答by Pedro JR

footerText { line-height: 20px; }

footerText { line-height: 20px; }