css - 文字下方的文字响应

标签 css responsive-design font-size

我怎样才能让我的文本响应。例如在桌面上

--------------------------------
   12  0  12   15              |
                               |
                               |
                               |
--------------------------------

如果字体太大,我希望在移动设备上显示在下方

------
  12 |
  0  |
  12 |
  15 |

现在我的文字没有响应..我的数字相互矛盾。

这是我使用的代码:

.hasCountdown {
    text-shadow: transparent 0px 1px 1px;
    overflow: hidden;
    padding: 30px;
    /*cursor:pointer;*/
}

.countdown_rtl {
    direction: rtl;
}
.countdown_holding span {
    background-color: #ccc;
}
.countdown_row {
    clear: both;
    width: 100%;
    padding: 3px 2px;
    text-align: center;
}


.countdown_show4 .countdown_section {
    width: 24.5%;
}


.countdown_section {
    display: block;
    float: left;

    text-align: center;
    line-height: 200%;
    margin:3px 0;
    font-family:'halvetica_light';
}
.countdown_amount {
    font-size: 450%;
}


.countdown_amount_red
{   
    color:red;
}

最佳答案

您可以尝试简单地添加以下内容(因为您没有提供用于测试的 HTML)

html{
    font-size: 2vw;
}

h1{
    font-size: 1em; /*Change h1 or size to fit requirements */
}

关于css - 文字下方的文字响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39764662/

相关文章:

iphone - @media 不调整 iPhone 上的字体大小

html - Bootstrap 3 - 将 4 个 div 按 25% 放置,并在下方再放置一个 div

css - 使用 CSS 创建座位表

html - Bootstrap 响应式导航栏不会折叠

css - 如何在移动 View 中使填充响应?

c++ - 在 C++ 中更改 QML font.pointSize

css - background-clip 属性 - 背景图像被切断

css文本旋转-仅文本,而不是父元素

CSS 视口(viewport)媒体查询在 Windows Phone 上关闭 IE 中的水平滚动

html - 如何根据文本内容动态设置html表格列的宽度?