TA的每日心情 | 开心 2018-1-29 01:48 |
---|
签到天数: 10 天 [LV.3]偶尔看看II
|
发表于 2018-5-23 20:20:43
|
显示全部楼层
试试这个吧,我用是不会死的,Qt4不支持style的,但起码我这里也不会死
: G' d5 r( |& F9 v% \9 ?, nfont-name 是这个 ☺ , 我忘了是什么原因最好要用这种,好象和兼容性有关,你改成2个,3个笑脸吧# @3 |! x8 _" Q f! e w5 t( ~
- @font-face {' j: D: g! o0 W c: G* t8 A
- font-family: ☺;
( V" y3 C" C0 f8 q! ^4 _8 ] - font-style: normal;8 _. T+ z( K3 l4 r$ l* M$ v
- font-weight: 300;
, N% x+ f5 y/ k% d- ? - src: url('fonts/OpenSans-Light.ttf') format('truetype');
$ `8 r. \: V7 o: {" r5 J - }3 W% W5 f# K$ h
- @font-face {5 d: L' }2 K9 ?. d, u4 M
- font-family: ☺;) l* p3 v8 j+ v3 m# {
- font-style: italic; p. |6 j; e' j% G: X- P
- font-weight: 300;3 [ T7 G4 R! m5 \' _" y8 o
- src: url('fonts/OpenSans-LightItalic.ttf') format('truetype');. m q( F: b2 G! w# W
- }% `5 e" q' Z3 g% c) ^1 }
- @font-face {
" j, ]0 y' G! t( e7 G - font-family: ☺;1 j, f, R" [: d6 i# I8 l4 c! z' s
- font-style: normal;
. ]4 E/ ]# Z6 S: D - font-weight: 400;. a% r3 `, z% L @ }) y8 @* E9 A
- src: url('fonts/OpenSans-Regular.ttf') format('truetype');
3 F" X) E/ ~( O, D+ }( |% I - }+ G5 e4 E! O6 a: L
- @font-face {. O7 i4 w% B8 O+ B* `6 t+ f
- font-family: ☺;: y& m1 t4 Y6 v; R6 g, o
- font-style: italic;
D1 U2 [! V6 s - font-weight: 400;& a1 R( I1 ^- s
- src: url('fonts/OpenSans-Italic.ttf') format('truetype');
6 O( p9 O6 u' O2 T+ M8 T - }
, |+ }. e3 m0 Q i/ C - @font-face {( C9 H; r4 @$ u0 |
- font-family: ☺;
( S8 y% j4 C- h$ z3 F+ X; |: v - font-style: normal;
. b- E K# V0 S9 E& j - font-weight: 600;
) ?! p f: o# w5 o% H: u - src: url('fonts/OpenSans-SemiBold.ttf') format('truetype');
0 ^. d* u9 k4 g. u - }
6 w, x3 L* s. G l - @font-face {8 C7 t* ]$ @% |) e; e, H& P
- font-family: ☺;
% K( ~) k$ |9 Z - font-style: italic;' T" e7 N( c' k" O5 `- J" c4 y: E
- font-weight: 600;
" ?# t: O- ~- R( |6 D3 o& T - src: url('fonts/OpenSans-SemiboldItalic.ttf') format('truetype');) F) e7 M. P: R/ {9 ~) J9 e
- }$ m! J2 k1 {6 a; K
- @font-face {7 } P7 ~* l& e& q
- font-family: ☺;
. h; E6 I N+ A7 {' F' f - font-style: normal;7 t4 n% J# B) w0 r) }4 X3 m7 Z
- font-weight: 700;
5 C& P4 t: ] X i/ S - src: url('fonts/OpenSans-Bold.ttf') format('truetype');
" ?6 a5 ~8 \8 Q0 M3 g( ?6 ] - }) j! \% J% O+ z/ N8 N
- @font-face {$ t, W F C) i( _- L7 V0 N
- font-family: ☺;+ A: e; D8 W. `, O6 {9 f
- font-style: italic;9 o L6 X- n, L% I0 k5 \* _0 R/ q
- font-weight: 700;6 P) k% L/ _' o% B
- src: url('fonts/OpenSans-BoldItalic.ttf') format('truetype');1 r( C9 a/ n3 m% S8 k
- }
! `$ z# }8 Y& E! p
复制代码 |
|