TA的每日心情 | 开心 2018-1-29 01:48 |
---|
签到天数: 10 天 [LV.3]偶尔看看II
|
发表于 2018-5-23 20:20:43
|
显示全部楼层
试试这个吧,我用是不会死的,Qt4不支持style的,但起码我这里也不会死, X" B) G7 B0 J/ R5 M
font-name 是这个 ☺ , 我忘了是什么原因最好要用这种,好象和兼容性有关,你改成2个,3个笑脸吧
: s5 u/ N; f: ?. J) I/ `# e$ I% e- @font-face {
4 Q* |) J) W' { - font-family: ☺;
9 w8 ]0 I$ M; _& [$ ~ - font-style: normal;
& \$ U* \2 c" p4 }* I# k$ X7 O: K - font-weight: 300;
! ]' X9 m5 c8 d* f0 E! B - src: url('fonts/OpenSans-Light.ttf') format('truetype');
: ~" g9 T& D' y& P - }! ^; G4 R: y, l
- @font-face {
/ E9 y A j6 Z* [, } - font-family: ☺;+ h9 j, t# N/ U( N' k l
- font-style: italic;
; u& H" `% [9 z2 b* z* A! x8 D - font-weight: 300;6 r) s# h( ^8 ^. _
- src: url('fonts/OpenSans-LightItalic.ttf') format('truetype');. x; ?" W3 g) Q5 H1 v8 B
- }6 K/ G( u7 Y4 Y6 \; ~
- @font-face {$ |1 ]: Y& w5 s2 M
- font-family: ☺;( a$ ~) I" F+ V- d& u
- font-style: normal;6 @* ], L9 J# Z$ h# w# `
- font-weight: 400;6 \, B: q5 d0 f- T7 t6 T3 j
- src: url('fonts/OpenSans-Regular.ttf') format('truetype');" B3 g6 q4 c7 R6 m }0 n7 @" j
- }' B. i! B( z4 l7 Z
- @font-face {3 }7 R1 s2 V! t! h* y
- font-family: ☺;( k4 }$ e5 d/ G) [5 d7 k/ z. ~
- font-style: italic;( r. d3 @1 }4 d2 Q. l0 e& `4 J' m. |! l
- font-weight: 400;' G! J5 |5 J1 p
- src: url('fonts/OpenSans-Italic.ttf') format('truetype');, t7 }0 G1 J! \/ M' u- E
- }7 \# T& p$ N6 p" e: M( G. k
- @font-face {1 Q4 V+ L& _ }9 j) ~
- font-family: ☺;
/ f$ l2 @( k1 q, l; \ - font-style: normal;
8 Q% k" Q: T* s' F - font-weight: 600;: P, _3 f9 H) I! M6 z( t
- src: url('fonts/OpenSans-SemiBold.ttf') format('truetype');
$ N& U2 K. Z( p( w- @ - }
8 v# b. Y2 q9 }: n/ F - @font-face {
% x9 l; K0 F# i$ j - font-family: ☺;! _0 t" D' {6 `! X, w/ T6 r/ {
- font-style: italic;! a4 E9 z- w$ m6 r4 e
- font-weight: 600; k. Z- l8 {) k8 _( M) c& Z
- src: url('fonts/OpenSans-SemiboldItalic.ttf') format('truetype');
2 j" V/ b& j7 h5 M6 i - }
0 K& M9 @! a( y u8 L - @font-face {: v. q! m; E: S& Z+ x
- font-family: ☺;# d X) D! {: E8 z
- font-style: normal;
& n* A) i; x; M+ s! l - font-weight: 700;
% B8 q" @2 C9 D1 s- P - src: url('fonts/OpenSans-Bold.ttf') format('truetype');
8 ~4 I' T7 G! X - }' A8 n. \* J& Z& z t2 _
- @font-face {2 l; u# m4 T% G9 U1 D
- font-family: ☺;
; p1 X/ w9 t+ {: k$ |$ Q; \ - font-style: italic;
- G$ I( a4 p4 k- `: M! | - font-weight: 700;
2 j* r: O& e- \2 x& @ - src: url('fonts/OpenSans-BoldItalic.ttf') format('truetype');- I7 L1 z) g- j( i
- }
$ C- p/ k, ]" V
复制代码 |
|