TA的每日心情 | 开心 2018-1-29 01:48 |
|---|
签到天数: 10 天 [LV.3]偶尔看看II
|
发表于 2018-5-23 20:20:43
|
显示全部楼层
试试这个吧,我用是不会死的,Qt4不支持style的,但起码我这里也不会死) u0 q, d5 c$ e- \
font-name 是这个 ☺ , 我忘了是什么原因最好要用这种,好象和兼容性有关,你改成2个,3个笑脸吧
: G& Q: B! g( S& Q. [' L- @font-face {0 r% z# S- [+ M# N v+ }. M
- font-family: ☺;8 i4 a1 L3 D8 D& N8 b+ o2 W/ V
- font-style: normal;
1 K3 V+ D, y' _ p& p - font-weight: 300;
4 X" R, R7 E4 `& n3 w6 y$ { - src: url('fonts/OpenSans-Light.ttf') format('truetype');
% j7 g/ u$ s7 F! G - }
8 ]+ |, u0 r) e - @font-face {: t$ `/ Z; W: j5 V( N- p
- font-family: ☺;8 Z2 C% ^3 A( o& G
- font-style: italic;2 \6 m1 L6 ~, R$ |. D
- font-weight: 300;
% M- Z `" Q( x0 h - src: url('fonts/OpenSans-LightItalic.ttf') format('truetype');( \) i0 d$ @! h. ?6 `, W% A
- }
! ?# \: `9 t& s3 i5 x - @font-face {
! A8 q! o0 C3 J' Q - font-family: ☺;# U0 M: @9 ?$ m
- font-style: normal;* E8 _: S( c" g% f: |5 w
- font-weight: 400;
+ }$ i+ Z7 e D7 @/ T. P4 E! e# { - src: url('fonts/OpenSans-Regular.ttf') format('truetype');2 u' F! a! t1 a' ~6 E; U
- }* |4 |4 G7 K; L* G# C) y
- @font-face {: P" F7 B) O; q5 \7 C- ~
- font-family: ☺;
6 E9 y8 Q ^' Q4 }6 V - font-style: italic;
9 G4 X* j: o5 W - font-weight: 400;# H" P: e' k" n# @1 ]% T! u
- src: url('fonts/OpenSans-Italic.ttf') format('truetype');
- u# c, _) O) \! O - }
; q8 j3 M) _1 t7 b+ N1 u - @font-face {9 s' C! y- P% j5 J7 y3 h
- font-family: ☺;2 d. U4 m9 ~0 j8 l9 i% _. p
- font-style: normal;' a4 D) |3 [* B9 X& f
- font-weight: 600;
2 {$ P7 r: s2 i - src: url('fonts/OpenSans-SemiBold.ttf') format('truetype');0 S# n( P" ~; R
- }
: o2 b; a: J- L# h6 x4 ^( T - @font-face {2 @$ C c% s' N$ u8 z4 y
- font-family: ☺;7 o, n6 I/ G3 w5 v
- font-style: italic;0 U; }2 D; `1 O" q/ C6 p
- font-weight: 600;0 G- N! N+ r$ b. a5 R9 G u, v
- src: url('fonts/OpenSans-SemiboldItalic.ttf') format('truetype');% j. r5 H; S- a2 K
- }
/ n0 Z4 e; v. J& O. V) ~: [ - @font-face {# ^- a9 r1 ]" o" u# z
- font-family: ☺;2 S) E, d% d: H( t0 g
- font-style: normal;' f! q: M. T% j9 M/ z7 L
- font-weight: 700;
$ I/ N! o% A9 k2 ^& ~ J - src: url('fonts/OpenSans-Bold.ttf') format('truetype');/ c& n7 [6 y6 C u
- }6 Y3 w, V! r8 ^! G
- @font-face {2 b1 V6 q) I+ T/ W; W$ X
- font-family: ☺; e9 _4 c4 K B4 S
- font-style: italic;
# F( ?( n# S6 A7 {4 B' p/ C3 D - font-weight: 700;4 Q* U/ L A0 A* O/ A
- src: url('fonts/OpenSans-BoldItalic.ttf') format('truetype');: C. r& d( E$ u$ q! P
- }
/ c) i; N* c- D/ k
复制代码 |
|