TA的每日心情 | 开心 2018-1-29 01:48 |
---|
签到天数: 10 天 [LV.3]偶尔看看II
|
发表于 2018-5-23 20:20:43
|
显示全部楼层
试试这个吧,我用是不会死的,Qt4不支持style的,但起码我这里也不会死
: g+ x3 F/ I' P6 Q3 C2 F( wfont-name 是这个 ☺ , 我忘了是什么原因最好要用这种,好象和兼容性有关,你改成2个,3个笑脸吧3 F# u0 }+ |+ ?( B4 m# r( m
- @font-face {' d8 Z/ Z( i( ?6 C% y* `, A' R
- font-family: ☺;1 Z$ G. I* S# m" W
- font-style: normal;8 a' x5 ^! E" {! B2 S+ K
- font-weight: 300;( L0 ?2 h- K3 N
- src: url('fonts/OpenSans-Light.ttf') format('truetype');3 ?. a! Y6 C4 A4 I6 Y" P8 H
- }9 u0 l0 Y0 N" G. B" K$ I! ~
- @font-face {$ j/ T# i+ H8 V4 z: B |% ~ {
- font-family: ☺;6 J* [6 o; r' ^1 Y: }4 s! ]- J& l- T: t
- font-style: italic;$ f# ~+ [0 [& M$ L5 \- [
- font-weight: 300;
$ P% w& ?' Y. a$ k0 q7 t - src: url('fonts/OpenSans-LightItalic.ttf') format('truetype');$ V; {/ B# n. f
- }
( _ C1 F6 P1 I4 n - @font-face {
4 T( a; K0 H8 K. T `( R6 N% I& } - font-family: ☺;3 W3 M* T/ ^; Q% f; S3 e1 W
- font-style: normal;
( K5 Z/ E" e b& K+ o5 ? - font-weight: 400;
" ~* f* B; u3 }& A1 S- H! V9 F - src: url('fonts/OpenSans-Regular.ttf') format('truetype');7 C& o, }" \- O' H
- }
4 l3 }1 ^6 H% T* x6 L - @font-face {* L& _7 m/ Q3 F$ A
- font-family: ☺;# L$ o; I6 ]" P+ K$ b
- font-style: italic;3 w6 J! z. u0 c/ U5 m. A( g
- font-weight: 400;
2 t0 W( V; E% {7 {! v - src: url('fonts/OpenSans-Italic.ttf') format('truetype');
3 Z) C2 h: Y( i - }# P: I% f1 d! `1 \- [
- @font-face {
; N4 R+ j: a" `: F$ q' U5 h+ s - font-family: ☺;
" [, u% ?7 l* C0 B' z6 U - font-style: normal;3 q! k" V$ H% ^* s$ Z
- font-weight: 600;9 E0 F+ T) K1 G1 M
- src: url('fonts/OpenSans-SemiBold.ttf') format('truetype');
$ X9 f1 ~ ?# K4 D" D - }
" j0 q& K5 a+ q+ ~* w - @font-face {
# \) R$ n4 v0 B8 U" |/ ] - font-family: ☺;6 W" T% {8 v8 [* t! H0 G6 @6 `
- font-style: italic;
$ }% T5 b `" Z# j0 }7 f( S - font-weight: 600;
2 r: |0 a( O; \/ y- l( R: R$ J - src: url('fonts/OpenSans-SemiboldItalic.ttf') format('truetype');
4 h/ R' E' B3 ?$ Y( k5 Q3 J - }& y6 W3 X$ P. ^" G2 D
- @font-face {
+ ]4 h4 p/ D# L5 @ - font-family: ☺;) a9 Y* @ k8 c# G' }* A+ z9 Q0 ?
- font-style: normal;) y+ R j ^4 _. U
- font-weight: 700;
% ^) Q4 K- k1 Q6 a - src: url('fonts/OpenSans-Bold.ttf') format('truetype');6 N2 p O3 _3 c' `
- }
* O" e8 B- l- f3 J, ?, Q4 W - @font-face {
' q- Y- I1 M$ R! ` - font-family: ☺;1 S6 p) n- w5 L
- font-style: italic;
& F& i1 y9 l* c/ ]4 q0 S - font-weight: 700;/ R9 @+ s9 {( j6 M2 J
- src: url('fonts/OpenSans-BoldItalic.ttf') format('truetype');+ D [* F: {# h' J5 H2 n
- }+ c- }1 I0 d" G& @4 S
复制代码 |
|