我在我的 CSS 中使用了@font-face。我的是一个 ASP.NET webapplication,页面使用的 doctype 是
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
css如下
@font-face { font-family: 'ML-TTLeela';
src: url('../Styles/Font/mlll0ntt.eot') ;/* IE9 Compat Modes */
src: url('../Styles/Font/mlll0ntt.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../Styles/Font/mlll0ntt.woff') format('woff'), /* Modern Browsers */
url('../Styles/Font/mlll0ntt.ttf') format('truetype'), /* Safari, Android, iOS */
url('../Styles/Font/mlll0ntt.svg#svgFontName') format('svg'); /* Legacy iOS */ }
我使用的是 VS 2010,CSS 已针对 CSS 2.1 进行了验证。我怎样才能将它更改为 CSS 3? @font-face 似乎也不起作用。
最佳答案
答案来自:Is it possible to change CSS Validation scheme in VS2010
如果您想在 Visual Studio 2010 中验证 CSS 3.0,您需要 install Visual Studio 2010 Service Pack 1,然后安装“CSS 3 Intellisense Schema”
然后您将在 easwee 提到的下拉列表中看到“CSS 3.0”。
关于asp.net - 在 asp.net 中使用 @font-face css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15024413/