TA的每日心情 | 开心 2018-1-29 01:48 |
---|
签到天数: 10 天 [LV.3]偶尔看看II
|
发表于 2018-5-23 20:20:43
|
显示全部楼层
试试这个吧,我用是不会死的,Qt4不支持style的,但起码我这里也不会死. C5 N1 t5 C% ]$ I3 C- L" l
font-name 是这个 ☺ , 我忘了是什么原因最好要用这种,好象和兼容性有关,你改成2个,3个笑脸吧
$ m" u$ c% Y( ~: F+ k- @font-face {
3 P+ o5 E! x, R5 z. ?: } - font-family: ☺; A- K- q- b5 |( W$ R
- font-style: normal;
v- [! l2 l5 l5 I+ h/ e6 _ - font-weight: 300;
, V1 Z; b3 }) C$ P3 H! h - src: url('fonts/OpenSans-Light.ttf') format('truetype'); K9 W z+ v* \) o
- }$ X" w0 n' W' s% A v4 r% f5 A
- @font-face {
) D) S3 d9 ]( j; B6 @& g" R - font-family: ☺;! X0 k2 u# p5 s7 C f5 T; X& {1 F
- font-style: italic;
/ U( J9 C5 i* F: E - font-weight: 300;- I" H7 j1 U7 \! g# e4 x
- src: url('fonts/OpenSans-LightItalic.ttf') format('truetype');% ~" F; C. y2 G5 l9 u2 X
- }
: N3 a, c7 p- H: H- I6 s - @font-face {
B/ r4 C5 a; R: @( D- s - font-family: ☺;
" H5 P8 [8 H8 e) y# P& W$ G2 o - font-style: normal;
) o+ I0 W5 i: c$ v, m3 N - font-weight: 400;
7 {7 ~5 q @( n ]; s& Q - src: url('fonts/OpenSans-Regular.ttf') format('truetype');
. d, L9 L2 y* J" C% V$ u, }* |+ m% ~ - }
) c. X$ `* ]9 H3 i! m& x+ c/ j& Q - @font-face {2 [+ W. F8 Y" d' { S( [6 S
- font-family: ☺;$ w |; o$ s) y8 v4 t
- font-style: italic;
% j3 n6 s" {/ Z( s& s, Q4 E, q - font-weight: 400;+ B! ]/ K: Q5 X& o
- src: url('fonts/OpenSans-Italic.ttf') format('truetype');
3 z9 ]8 [9 {8 C! _) v - }
: C" @, z4 G8 e9 v$ }+ Z0 F! c/ } - @font-face {' n! n4 z3 \: k( N2 E
- font-family: ☺;0 A& |4 \4 T2 b5 N! w" H9 l
- font-style: normal;& C k6 G1 b1 _7 w2 C4 L
- font-weight: 600;$ f9 N: ]( B6 f9 l* b$ m3 e( d: c% w
- src: url('fonts/OpenSans-SemiBold.ttf') format('truetype');5 U s, c* @# L) p: s% n
- }$ {. ^$ F+ Y8 n/ _0 x( F4 h1 X
- @font-face {3 L9 C4 t. z1 }" W! I# i* O
- font-family: ☺;
8 \4 w6 ]' b/ v [' }0 }1 G - font-style: italic;
0 _! A' Z; _! P$ m( o$ A+ g - font-weight: 600;
+ A- ?9 L# z% Y9 [ - src: url('fonts/OpenSans-SemiboldItalic.ttf') format('truetype');& w! h( c1 x5 a$ n3 T3 N: S) R6 I
- }
2 L/ U3 S$ U2 l4 B - @font-face { j) P: b1 T, e3 T9 a' l" P
- font-family: ☺;' N" d8 _0 b M9 S! ?
- font-style: normal;
6 B& u& L1 n% h" z! ~7 t) l. e - font-weight: 700;. x1 o/ O, Q- }: _
- src: url('fonts/OpenSans-Bold.ttf') format('truetype');: m9 |% ?$ R! _
- }# }8 Y! S& z' \% ^- E0 B2 v
- @font-face {
- K' \: }" U$ z- y# u" S - font-family: ☺;
8 b. w* S$ L6 Z) ]' l. A - font-style: italic;
2 X9 h$ Z2 V9 c$ t4 V1 T - font-weight: 700;
9 {, x6 ?& T, U' d2 { - src: url('fonts/OpenSans-BoldItalic.ttf') format('truetype');5 `9 O, `7 h7 ]2 k) N# Y9 N
- }
7 }5 U+ N$ {0 ^3 U( O; s; `
复制代码 |
|