我在 CSSTidy 破坏我的字体声明时遇到了一些问题,但不确定问题是什么。本来我是压缩服务器端的,但也尝试通过在线工具运行它来测试。它们都有相同的输出,只包括第一个声明。
我还应该指出原始 CSS(输入)工作正常,只是试图压缩它。
输入:
@font-face {
font-family: 'FuturaBT-Light';
src: url('26A674_0_0.eot');
src: url('26A674_0_0.eot?#iefix') format('embedded-opentype'),
url('26A674_0_0.woff') format('woff'),
url('26A674_0_0.ttf') format('truetype');
}
@font-face {
font-family: 'FuturaBT-Book';
src: url('26A674_1_0.eot');
src: url('26A674_1_0.eot?#iefix') format('embedded-opentype'),
url('26A674_1_0.woff') format('woff'),
url('26A674_1_0.ttf') format('truetype');
}
@font-face {
font-family: 'FuturaBT-Medium';
src: url('26A674_2_0.eot');
src: url('26A674_2_0.eot?#iefix') format('embedded-opentype'),
url('26A674_2_0.woff') format('woff'),
url('26A674_2_0.ttf') format('truetype');
}
@font-face {
font-family: 'FuturaBT-Bold';
src: url('26A674_3_0.eot');
src: url('26A674_3_0.eot?#iefix') format('embedded-opentype'),
url('26A674_3_0.woff') format('woff'),
url('26A674_3_0.ttf') format('truetype');
}
输出:
@font-face
{
font-family:FuturaBT-Bold;
src:url(26A674_3_0.eot?#iefix) format(embedded-opentype), url(26A674_3_0.woff) format(woff), url(26A674_3_0.ttf) format(truetype);
}