首页 > 解决方案 > 每种分辨率的字体变化

问题描述

我开发了一个网页。在那个页面中,我使用 php 打印了一些文本。在每个屏幕(分辨率)中,该文本的对齐方式一直在变化。任何人都可以提出什么问题。

这是我的代码,

.collegename {
font-family: "Monda";
color: #000;
position: absolute;
left: 3.8rem;
top: -46.2rem;
font-weight: 300;
font-size: 0.9rem;
text-align: center;
z-index: 1;
}
<h1 class="collegename" id="collegename" style=" text-transform: uppercase;"><span style="font- 
family:Segoe UI;font-weight: bold;"><?php echo $insert['college'];?></h1>

标签: phphtmlcss

解决方案


推荐阅读