我想使用连字。目前我所有的连字在连字代码中都有连字符。例如:我的连字
所以当我使用
<i>my-ligature</i>
它在 Firefox 和 IE 中可以正常工作,但在 Chrome 中却不行。当我添加一个 或任何其他角色
<i>my-ligature </i>
<i>my-ligature </li>
它也适用于 Chrome。
一旦我用下划线之类的其他东西替换连字代码中的连字符,它就会按预期在 Chrome 中工作(不需要空格等)
这是 Chrome 错误还是此处不允许使用连字符?
你会在这里找到整个事情的演示(使用标准 icomoon 图标制作) http://www.swisscocktailblog.ch/icomoon/demo.html
编辑:根据要求提供连字的 css(这是演示中使用的 css)
@font-face {
font-family: 'icomoon';
src:url('fonts/icomoon.eot?6mfq3a');
src:url('fonts/icomoon.eot?#iefix6mfq3a') format('embedded-opentype'),
url('fonts/icomoon.ttf?6mfq3a') format('truetype'),
url('fonts/icomoon.woff?6mfq3a') format('woff'),
url('fonts/icomoon.svg?6mfq3a#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
i, .icomoon-liga {
font-family: 'icomoon';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Enable Ligatures ================ */
letter-spacing: 0;
-webkit-font-feature-settings: "liga";
-moz-font-feature-settings: "liga=1";
-moz-font-feature-settings: "liga";
-ms-font-feature-settings: "liga" 1;
-o-font-feature-settings: "liga";
font-feature-settings: "liga";
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-wifi-full:before {
content: "\e600";
}