font-family

Is there a trick to show Arial Black in Firefox?

£可爱£侵袭症+ 提交于 2019-11-29 17:47:33
问题 Since Arial black is buggy in firefox, is there a way to show it without embedding it with @font-face? https://bugzilla.mozilla.org/show_bug.cgi?id=644385 I've seen a couple of work arounds like using font-weight: 900; font-family:'Arial Black', Gadget, sans-serif; However that method does not work for me. Suggestions? 回答1: The problem (according to the bug) is that the Windows DirectWrite API that Firefox uses treats Arial Black as font-family: Arial; font-weight: bold; (comment #8), so

博客园页面优化2

一个人想着一个人 提交于 2019-11-29 17:23:22
一个博客园皮肤 用simplememory css /*simplememory*/ /*! Color themes for Google Code Prettify | MIT License | github.com/jmblog/color-themes-for-google-code-prettify */ .pln{color:#4d4d4c}ol.linenums{margin-top:0;margin-bottom:0;color:#8e908c}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#fff;list-style-type:decimal!important;}@media screen{.str{color:#718c00}.kwd{color:#8959a8}.com{color:#8e908c}.typ{color:#4271ae}.lit{color:#f5871f}.pun{color:#4d4d4c}.opn{color:#4d4d4c}.clo{color:#4d4d4c}.tag{color:#c82829}.atn{color:#f5871f}.atv{color:#3e999f}.dec

Adjust font size depending on which font is used from a font stack

风流意气都作罢 提交于 2019-11-29 13:42:02
I'm using one of the new google api fonts for a heading on a site. It's Yannone Kaffeesatz and is quite a condensed typeface. My font stack is as follows: font-family: 'Yanone Kaffeesatz', arial, serif; This is fine when the Yannone Kaffeesatz font renders, but if it doesn't, Arial is much more open and the heading spans over two lines. My question is: Is it possible to use a different font-size depending on which font is rendered on the page? Ideally supported across a multitude of browsers. Thanks Tom Pekka 웃 Nope, this is not possible. It is complex and difficult to find out the actual used

how to apply custom font to web browser content WP7

旧时模样 提交于 2019-11-29 12:48:52
Am developing simple app for learning webBrowser concept in Windows phone. My aim is to display the content in Telugu(Indian language) in my WP7. that web application is displaying Telugu content only my MainPage.xaml.cs code is : private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e) { webBrowser1.Navigate(new Uri("http://www.eenadu.net", UriKind.Absolute)); } in MainPage.xaml file <phone:WebBrowser HorizontalAlignment="Left" Margin="0,92,0,0" Name="webBrowser1" VerticalAlignment="Top" Height="575" Width="468" FontFamily="Fonts/eenadu.ttf#Eenadu" /> and i have included

文本及字体属性

做~自己de王妃 提交于 2019-11-29 06:15:37
字体属性 font-size 字体大小 font-size 表示设置字体大小,如果设置成 inherit 表示继承父元素的字体大小值 font-weight 字体粗细 font-weight:字体粗细 取值范围: 值 描述 normal 默认值,标准粗细 bold 粗体 bolder 更粗 lighter 更细 inherit 继承父元素字体的粗细值 100~900 设置具体粗细,400等同于normal,700等同于bord font-style 字体风格 font-style 属性定义字体风格 属性值: 值 描述 normal 默认值,浏览器显示一个标准样式 italic 斜体的字体样式 oblique 倾斜的字体样式 inherit 继承父元素字体样式 font-family 字体系列 font-family 属性规定元素的字体系列 font_family 可以把多个字体名称作为一个"回退"系统来保存,如果浏览器不支持第一个字体,则会尝试下一个,也就是说,font-family 属性的值是用于某个元素的字体族名称或/及类族名称的一个优先表。浏览器会使用它可识别的第一个值。 body { font-family: "Microsoft Yahei", "微软雅黑", "Arial", sans-serif } /*如果浏览器不支持第一个字体,则会尝试下一个

字体、文字属性

。_饼干妹妹 提交于 2019-11-29 06:15:19
字体相关CSS属性介绍 font-family 字体系列。 font-family 可以把多个字体名称作为一个“回退”系统来保存。如果浏览器不支持第一个字体,则会尝试下一个。浏览器会使用它可识别的第一个值。 简单实例: body { font-family: "Microsoft Yahei", "微软雅黑", "Arial", sans-serif } 如果设置成 inherit ,则表示继承父元素的字体。 font-weight 字重(字体粗细)。 取值范围: 值 描述 normal 默认值,标准粗细 bord 粗体 border 更粗 lighter 更细 100~900 设置具体粗细,400等同于normal,而700等同于bold inherit 继承父元素字体的粗细值 font-size 字体大小。 p { font-size: 14px; } 如果设置成 inherit 表示继承父元素的字体大小值。 color 设置内容的字体颜色。 支持三种颜色值: 十六进制值 如: #FF0000 一个RGB值 如: RGB(255,0,0) 颜色的名称 如: red p { color: red; } 字体属性 text-align 文本对齐 text-align 属性规定元素中的文本的水平对齐方式。 值 描述 left 左边对齐 默认值 right 右对齐 center

7.文本和字体属性

瘦欲@ 提交于 2019-11-29 06:14:38
字体相关CSS属性介绍 font-family 字体系列。 font-family 可以把多个字体名称作为一个“回退”系统来保存。如果浏览器不支持第一个字体,则会尝试下一个。浏览器会使用它可识别的第一个值。 简单实例: body { font-family: "Microsoft Yahei", "微软雅黑", "Arial", sans-serif } 如果设置成 inherit ,则表示继承父元素的字体。 font-weight 字重(字体粗细)。 取值范围: 值 描述 normal 默认值,标准粗细 bord 粗体 border 更粗 lighter 更细 100~900 设置具体粗细,400等同于normal,而700等同于bold inherit 继承父元素字体的粗细值 font-size 字体大小。 p { font-size: 14px; } 如果设置成 inherit 表示继承父元素的字体大小值。 color 设置内容的字体颜色。 支持三种颜色值: 十六进制值 如: #FF0000 一个RGB值 如: RGB(255,0,0) 颜色的名称 如: red p { color: red; } 字体属性 text-align 文本对齐 text-align 属性规定元素中的文本的水平对齐方式。 值 描述 left 左边对齐 默认值 right 右对齐 center

博客园主题美化(自己的版本)

和自甴很熟 提交于 2019-11-29 03:24:22
页面定制CSS代码 /*.cnblogs_code pre { font-family: Consolas!important; font-size: 17px!important; /*font-weight:bold;*/ word-wrap: break-word; white-space: pre-wrap; } .cnblogs_code span { font-family: Consolas!important; font-size: 17px!important; line-height: 1.5!important; }*/ /*初始:Courier New!important;*/ /*simplememory*/ #google_ad_c1, #google_ad_c2 {display:none;} .syntaxhighlighter a, .syntaxhighlighter div, .syntaxhighlighter code, .syntaxhighlighter table, .syntaxhighlighter table td, .syntaxhighlighter table tr, .syntaxhighlighter table tbody, .syntaxhighlighter table thead,

CSS基础(1)

安稳与你 提交于 2019-11-29 03:11:09
1.CSS的发展历程 随着HTML的成长,HTML本身自带了一些样式功能,这就导致了HTML越来越杂乱,HTML页面也越来越臃肿, 于是CSS便诞生了. 2.CSS介绍 CSS(Cascading Style Sheets) CSS通常称为CSS样式表或层叠样式表(级联样式表),主要用于设置HTML页面中的文本内容(字体、大小、对齐方式等)、图片的外形(宽高、边框样式、边距等)以及版面的布局等外观显示样式。 简单来说一句话,就是用来给HTML标签设置外观样式的,让我们的HTML页面更加的丰富多彩. 3.css的书写位置(重点) 行内式 就是写在标签内添加样式 <div style="color:red;font-size:130px;">今天开始学习CSS样式结构</div> 内嵌式 在同一个页面的head标签的一对style标签内写样式 页面结构比较简单 <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>内嵌样式的写法</title> <style type="text/css"> div { color

Set a font specifically for all numbers on the page

感情迁移 提交于 2019-11-29 02:02:42
For my webpage, I chose a font that works well for all the letters. However, for all numbers I'd like to use a different font. Is there a way that I can set a CSS rule to target all the numbers on the page? If I can't do it strictly with CSS, my first thought is to use regular expressions to surround all numbers with a span with a "numbers" class and apply a font for that class. Is there a better way to do this? You can do it in JavaScript relatively simply by traversing the document so that you wrap any sequence of digits in a span element with a class attribute and declare font-family for it