小编Ben*_*Ben的帖子

Android上的CSS字体

我正在@font-face网站上展示League Gothic,但它并没有出现在Android 1.6上.这是我用Font Squirrel的@ font-face生成器生成的代码

@font-face {
    font-family: 'LeagueGothicRegular';
    src: url('/fonts/League_Gothic-webfont.eot');
    src: local('?'), url('/fonts/League_Gothic-webfont.woff') format('woff'), url('/fonts/League_Gothic-webfont.ttf') format('truetype'), url('/fonts/League_Gothic-webfont.svg#webfont') format('svg');
    font-weight: normal;
    font-style: normal;
}

font-family:'LeagueGothicRegular',Impact,Charcoal,sans-serif;
Run Code Online (Sandbox Code Playgroud)

如果@font-face不支持,这不是什么大问题(我读到@font-faceAndroid 2 中的支持完全消失了).但是联盟哥特式是非常浓缩的,所以我想为Android指定一个比默认的sans-serif更好的后备字体,所以设计并没有完全破解.

这样的事情将是完美的:http: //www.droidfonts.com/info/droid-sans-condensed-fonts/

但我找不到Android附带的默认字体的确切列表,以及我应该用它来在CSS中引用它们的名称.

编辑 到目前为止答案错过了重点(或者说我严重的问题) - 我所追求的是Android附带的系统字体列表.事情是这样的Android.

css android font-face

14
推荐指数
3
解决办法
4万
查看次数

如何阻止Firefox中的某种字体?

我在我的Windows XP PC上安装了Helvetica,非常适合设计,但Helvetica在PC上的浏览器中显示时看起来很可怕.

EG如果我访问这种风格的网站:

font-family: Helvetica, Arial, sans-serif;
Run Code Online (Sandbox Code Playgroud)

...显示Helvetica,因为它安装在我的系统上.

我可以强制Firefox假装我的系统上没有安装Helvetica吗?我希望这些页面以Arial显示.

firefox fonts

9
推荐指数
2
解决办法
3558
查看次数

可访问的HTML表单输入类型 - "提交"与"图像"

屏幕阅读器用户(或任何用户真的)是否使用"图像"而不是"提交"作为表单提交按钮的类型属性是否有任何真正的区别?

例如:

<input type="submit" value="Submit!" />
Run Code Online (Sandbox Code Playgroud)

VS

<input type="image" src="myButtonImage.jpg" value="Submit!" alt="Submit!" />
Run Code Online (Sandbox Code Playgroud)

html css forms

7
推荐指数
1
解决办法
3080
查看次数

标签 统计

css ×2

android ×1

firefox ×1

font-face ×1

fonts ×1

forms ×1

html ×1