eot

php使用界定符后报 PHP Parse error: syntax error, unex...

◇◆丶佛笑我妖孽 提交于 2020-02-28 19:16:26
被这个烂问题折磨的死去活来,同样一段代码 <?php echo <<<END ssdsdad END; ?> 在文件A中可以正确执行,在文件B中不能执行 报错 PHP Parse error: syntax error, unexpected $end in ....... 查资料是因为第二个END附近有非法的符号导致的,找啊找,找啊找,发现只有一个换行符 又找资料发现 MAC和DOC系统中换行符好像不太一样 php会根据系统确定换行符符号 查看能正确运行的那个文件 是Dos\Windows 不能运行的是 Macintosh 修改不能运行的文件格式为Macintosh 尼玛 终于正确运行了 然后又发现一个问题 服务器是linux系统 文件是 Dos\Windows 系统和文件的格式不一样 但没有报错 猜想是因为UNIX和 Dos\Windows 中换行符是同一个符号 实验验证不一样 看下图 具体原理求大神 换行符在各系统中的符号 MAC 你妹~ 坑爹货~ 来源: oschina 链接: https://my.oschina.net/u/273372/blog/95172

@font-face import not working in offline website/different host using online fonts via CSS in IE only

情到浓时终转凉″ 提交于 2020-02-08 03:10:57
问题 IE is very strange. I've had a look at MIME types, added a .htaccess file with <FilesMatch "\.(ttf|otf|eot|woff)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch> AddType application/vnd.ms-fontobject .eot AddType application/octet-stream .otf .ttf And the IE9 developer tools seem to have noticed that is in place but again no change. The website is currently offline (just viewed on the hard drive) - authough when it's uploaded to a different

How to prevent IE7 from downloading all EOT files used for font-face declaration?

自作多情 提交于 2020-01-14 05:38:05
问题 I need some assistance here. We are using custom fonts (non-standard fonts) for our site and use the following font-face declaration (declared in our global css): @font-face { font-family: 'MyWebFont'; src: url('webfont.eot'); /* IE9 Compat Modes */ src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('webfont.woff') format('woff'), /* Modern Browsers */ url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */ url('webfont.svg#svgFontName') format('svg'); /*

Can't figure out how to send ^D (EOT) signal to mailx in bash script

青春壹個敷衍的年華 提交于 2019-12-22 11:35:42
问题 I'm writing a bash script to send me an email automatically. Mailx requires an EOT or ^D signal to know the message body is over and it can send. I don't want to hit ^D on the keyboard when I run script which is what it does now. Here is my code: #! /bin/bash SUBJ="Testing" TO="test@test.com" MSG="message.txt" echo "I am emailing you" >> $MSG echo "Time: `date` " >> $MSG mail -s "$SUBJ" -q "$MSG" "$TO" rm -f message.txt 回答1: If you do not need to add more text and just need to send the

认识 Iconfont 以及什么是 .eot、.woff、.ttf、.svg

懵懂的女人 提交于 2019-12-21 11:47:09
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 在看别人 github 项目的时候,看到了 iconfont,百度了一下是阿里的图标库,这个很容易理解,但是自己操作一遍之后发现下载下来的目录还包含了 .eot、.woff 等文件,对于这些新东西感到有些陌生,在经过一番查找之后有所得,整理思路,记录于此。 一、Iconfont 1. 概述 在前端作业中,二十年前只有页面中铺满文字就算上线产品,现如今,不加点俏皮的“图标”会让页面显得很 Low 很 Low。 在写这篇文章之前,我一直以为上图中的“图标”是一个个的图片组成,但学习总是给人新知,现在我知道了它们只是一种字体,类似于“宋体”、“楷体”这种。如果我们要使用它们,也只需要在 css 文件中使用 @font-face 引入这种字体即可。@font-face 是 css3 的一个语法,刚兴趣的可以自行阅读 @font-face 用法 。 2. Iconfont 介绍 Iconfont 是阿里提供了一个图标库,你可以想象成是一个售卖图标的超市,挑选你需要的图标放入购物车,然后 Iconfont 会为你打包你购物车里的图标,自动生成一种新的字体,你可以选择下载到本地,在你的项目中引入这种字体,这样即便没有网络的情况也可以使用图标。 这种模式的一大优点就是只挑选出需要的图标

font-face runs in IE but not in firefox - formats of fonts

心不动则不痛 提交于 2019-12-11 01:35:47
问题 I downloaded a free font in two kings of regular and bold. and with these format: svg,eot,ttf, woff. These fonts are working well for IE. but they don't work in firefox. 1. I want to know which format is used for which web browser. 2. Please help me solve this probelm: @font-face { font-family: "Nazanin"; src: url("../font/nazanin.eot"); src: local("B Nazanin"), url("../font/nazanin.eot?#iefix") format('embedded-opentype'), url("../font/nazanin.woff") format("woff"), url("../font/nazanin.ttf"

MIME Types for woff, ttf, svg, and eot 404ing despite being setup in IIS

一个人想着一个人 提交于 2019-12-03 05:47:05
问题 I am trying to get a font to render within a file and it is giving me the usual error of Resource interpreted as Font but transferred with MIME type text/html: But the HTML file on show is our 404.aspx file, I tried the usual of installing the applications in the web.config and then eventually into IIS itself as: .woff application/font-woff .ttf application/font-ttf .eot application/vnd.ms-fontobject .otf application/font-otf .svg image/svg+xml I cannot understand where I am going wrong. the

MIME Types for woff, ttf, svg, and eot 404ing despite being setup in IIS

馋奶兔 提交于 2019-12-02 18:15:32
I am trying to get a font to render within a file and it is giving me the usual error of Resource interpreted as Font but transferred with MIME type text/html: But the HTML file on show is our 404.aspx file, I tried the usual of installing the applications in the web.config and then eventually into IIS itself as: .woff application/font-woff .ttf application/font-ttf .eot application/vnd.ms-fontobject .otf application/font-otf .svg image/svg+xml I cannot understand where I am going wrong. the files are stored in a folder called fonts that is in the base directory for the site and I have the

Correct Apache AddType directives for font MIME types

江枫思渺然 提交于 2019-11-27 03:30:33
I’m using @font-face for embedded fonts (thanks Paul Irish ). In trying to fix Chrome’s warning about wrong MIME type for woff fonts, I’ve discovered a mass of conflicting suggestions. Everyone seems to agree that .eot fonts (for IE 6-8?) should be served using AddType application/vnd.ms-fontobject .eot For .ttf fonts (older non-IE browsers?) I’ve seen AddType application/x-font-ttf .ttf AddType application/octet-stream .ttf AddType font/truetype .ttf AddType font/ttf .ttf And for .woff fonts (the new standard?) I’ve seen AddType application/font-wof .woff AddType application/x-font-woff .woff

Correct Apache AddType directives for font MIME types

瘦欲@ 提交于 2019-11-26 10:31:21
问题 I’m using @font-face for embedded fonts (thanks Paul Irish). In trying to fix Chrome’s warning about wrong MIME type for woff fonts, I’ve discovered a mass of conflicting suggestions. Everyone seems to agree that .eot fonts (for IE 6-8?) should be served using AddType application/vnd.ms-fontobject .eot For .ttf fonts (older non-IE browsers?) I’ve seen AddType application/x-font-ttf .ttf AddType application/octet-stream .ttf AddType font/truetype .ttf AddType font/ttf .ttf And for .woff fonts