gpt4 book ai didi

css - 'overlapping' 字符的字母间距问题

转载 作者:行者123 更新时间:2023-11-28 13:29:10 30 4
gpt4 key购买 nike

我在使用在 Google Web Fonts 上找到的字体时遇到了一些问题.

正如您在下面发布的图片中看到的,当我使用 Firefox 时,“Versus”中的大写 V 与“e”重叠。尽管当我使用 Chrome(或 IE)时,它不会重叠并在两个字符之间留出难看的空间。

有什么方法可以解决这个问题并使它看起来像 Firefox 中的那样吗?还是我应该开始寻找另一种字体?

Chrome/IE & Firefox Comparison

我的 HTML:

<html>
<head>
<meta charset="utf-8">
<title>Versus</title>
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link href='http://fonts.googleapis.com/css?family=Marck+Script' rel='stylesheet' type='text/css'>
</head>
<body>
<div>
<h1>Versus</h1>
</div>
</body>

我的 CSS:

h1 {
font-family: 'Marck Script', cursive;
font-size: 100px;
color:#444;
text-align:center;
padding:0 50px;
text-shadow: 2px 2px 3px #777;

提前致谢!

最佳答案

为了固定字体中的间距,您应该使用:

letter-spacing: 10px /* How ever much you need */

在不知道 HTML 和 CSS 的细节的情况下,您可以使用类似这样的东西来修复问题区域:

风格

span { letter-spacing: -4px } 

html

<span>V</span>ersus

它是 hokie,但它应该可以工作。

关于css - 'overlapping' 字符的字母间距问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12520287/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com