TA的每日心情 | 开心 2018-1-29 01:48 |
---|
签到天数: 10 天 [LV.3]偶尔看看II
|
发表于 2018-5-23 20:20:43
|
显示全部楼层
试试这个吧,我用是不会死的,Qt4不支持style的,但起码我这里也不会死
1 n. q% g, _+ J8 N/ qfont-name 是这个 ☺ , 我忘了是什么原因最好要用这种,好象和兼容性有关,你改成2个,3个笑脸吧
( P% k( G1 w* f* I6 {; Q- @font-face {
P( Y; z8 T+ l& I2 M - font-family: ☺;! i5 u! ^8 [0 U; F3 ~ s
- font-style: normal;
# [# G- [) D( z0 v. B* d* T% o, B/ d - font-weight: 300;9 K, E" N8 Q" z }, I
- src: url('fonts/OpenSans-Light.ttf') format('truetype');& m+ e0 l* _; J9 q) k. p
- }7 f0 {2 p- z ^) X: s
- @font-face {. j U. a1 ?9 A2 S3 N7 \
- font-family: ☺;
a- n) p- f3 Y& q" q, w - font-style: italic;
' P! Y4 Q% G2 A1 p - font-weight: 300;5 e3 D( j% ^0 L3 U3 T! \7 L
- src: url('fonts/OpenSans-LightItalic.ttf') format('truetype');
" A% D5 e" b1 M% [ - }. r4 |; l# S7 f: O4 y
- @font-face {
. _' O% ~+ w$ r1 o( w6 b8 E - font-family: ☺;
% @5 M6 S5 t3 v! l - font-style: normal;1 \ B$ R1 y D4 \* j; S1 k: x
- font-weight: 400;
9 A4 w- {# @2 m. u- S1 A* q - src: url('fonts/OpenSans-Regular.ttf') format('truetype');
: `- F' z, c. P: @* {1 V - }
3 M3 F) t! E2 M: q7 [+ k T( K0 l - @font-face {
0 p1 S9 {( y2 I+ p1 z3 H6 o& u - font-family: ☺;
; P6 `5 N, ]( U4 Z* R' b - font-style: italic;
( x9 \) T7 p7 I0 |: P- Q - font-weight: 400;
3 [' m$ m- H" i8 k - src: url('fonts/OpenSans-Italic.ttf') format('truetype');
3 r/ [% h( R7 G/ V: ] - }
% Q" v# P; A' h - @font-face {
( W( R7 b$ @" z- t" ?0 O9 y8 t - font-family: ☺;
% c' }# s1 N5 I% u' \) } - font-style: normal;
# h7 D" n* o5 V6 u* v! N2 m - font-weight: 600;
+ o4 B/ x( e* p# B" H& q/ ^) k - src: url('fonts/OpenSans-SemiBold.ttf') format('truetype');) z3 s( F& v( Z5 N+ V
- }9 L4 C* e& c4 t v+ Y* v" u8 u
- @font-face {
r! A2 K( }' n3 g - font-family: ☺;. w3 C G* {: i O0 A* o# ]6 ` ?
- font-style: italic;
, s8 I5 L& R' _3 F- t3 f - font-weight: 600;. C/ g5 u) t+ o* i9 p
- src: url('fonts/OpenSans-SemiboldItalic.ttf') format('truetype');9 w+ s; @; L% o: \" ]% e _
- }8 I' n7 j+ e+ `+ i5 }7 B" B7 Z r0 V
- @font-face {5 \' S' n+ n5 D
- font-family: ☺;+ D( _- s* A& x2 m# m, d3 s9 `4 L& }
- font-style: normal;
. v7 y- {6 S; r) x7 x1 Q% a8 q! f - font-weight: 700; d/ q$ v: i' G- R( u- f
- src: url('fonts/OpenSans-Bold.ttf') format('truetype');2 o8 x! O6 K; ?8 q, f- X
- }0 f; f9 o, G+ W: q' M8 j
- @font-face {
% n" r2 m1 y) L3 |0 r% n4 ]6 c# D* l - font-family: ☺;
~6 v5 ~) ^0 { - font-style: italic;
# Y7 g& h8 l |# C; b K# \ - font-weight: 700;& b; @, f+ n7 {3 l
- src: url('fonts/OpenSans-BoldItalic.ttf') format('truetype');
" \3 B9 a, l" L2 R0 Z% ]% e" y5 u% x7 ]# [ - }! B3 }; {- U& U+ c& ]. E
复制代码 |
|