TA的每日心情 | 开心 2018-1-29 01:48 |
---|
签到天数: 10 天 [LV.3]偶尔看看II
|
发表于 2018-5-23 20:20:43
|
显示全部楼层
试试这个吧,我用是不会死的,Qt4不支持style的,但起码我这里也不会死
* x! ?9 L; q# B- ]# O* }font-name 是这个 ☺ , 我忘了是什么原因最好要用这种,好象和兼容性有关,你改成2个,3个笑脸吧
9 a$ |! x: B1 u- s- @font-face {
. [9 h8 y. s% u9 ` - font-family: ☺;" R# d5 v# r: Q5 _
- font-style: normal;/ {1 q+ D7 P7 l$ f
- font-weight: 300;
* l' {+ i( p/ `# X4 p) d! h - src: url('fonts/OpenSans-Light.ttf') format('truetype');! \4 m" {1 P7 G$ |8 S, i! E1 H
- }
9 W+ G1 i/ N: V* Q+ s - @font-face {$ `4 | m0 R& w& D+ v& v( \
- font-family: ☺;" }+ ~* n& h6 G4 f6 R
- font-style: italic;
) |) L [& z7 O3 l8 N$ L, g# @ - font-weight: 300;+ l1 {$ B. t2 w0 N- k( w; h
- src: url('fonts/OpenSans-LightItalic.ttf') format('truetype');7 t7 \- V, q& O* J7 p
- }7 `5 P2 D! h! v5 a3 E E
- @font-face {
8 \2 ?5 i0 `# T - font-family: ☺;
& I# m( [3 q& p0 u0 M - font-style: normal;* N) e# y6 r6 n, q: ?( c
- font-weight: 400;! t% ?3 {- e; ?2 P$ t* U
- src: url('fonts/OpenSans-Regular.ttf') format('truetype');0 e$ K. j' m3 n8 A, R
- }
( u E Q' ^. U - @font-face {
E& X8 p" {" H$ `9 H/ A; i- c - font-family: ☺;
# X# a3 M4 ~9 h - font-style: italic;7 \; M6 F. w: J0 z# {
- font-weight: 400;) n {( I8 j# ^$ f2 N9 ?' a& o
- src: url('fonts/OpenSans-Italic.ttf') format('truetype');
; B* v' y( s2 U, `' t$ A: i - }. d8 c$ M5 M8 e m1 Y- D) d R& I
- @font-face {, f8 t1 f) P% i( R- n
- font-family: ☺;3 ?/ _/ i( s; v
- font-style: normal;4 e; c7 r+ [9 p1 i
- font-weight: 600;. J3 ^0 K) I2 T$ M& H
- src: url('fonts/OpenSans-SemiBold.ttf') format('truetype');
% C! D' F9 ]( q$ R( M/ S+ F* ^ - }5 X8 ?5 l/ {$ ^& R2 a, N& U! S
- @font-face {
/ W/ y3 x6 P9 z, d - font-family: ☺;: ]6 P Y" U6 ^2 F9 t2 O
- font-style: italic;7 b$ B+ \! c) L# f
- font-weight: 600;0 d; C3 u8 j. q2 d, b
- src: url('fonts/OpenSans-SemiboldItalic.ttf') format('truetype');
: F0 b7 I+ D8 Y; ~$ F8 g" S - }4 x) I a: V% Y) s/ L
- @font-face {. [0 W" T; Y2 Y( @; q! o; E
- font-family: ☺;
3 F* g2 A+ K3 g' F \! _: x - font-style: normal;. k8 n ? L- Z% F/ X% H$ y
- font-weight: 700;4 V# z: d( p/ x' E) C
- src: url('fonts/OpenSans-Bold.ttf') format('truetype');# @. ]& L9 k# \6 p2 F' O
- }
& y# |6 {' A% C; x) h9 h* u/ y - @font-face {
! G. ^. {; E5 q7 y- E1 E- L6 D - font-family: ☺;
0 e: n3 q, [, m: b/ J - font-style: italic;! k# m/ }" F9 D* t$ B
- font-weight: 700;" g1 l! N0 w( K
- src: url('fonts/OpenSans-BoldItalic.ttf') format('truetype');9 J1 Y1 P+ N5 Y Z5 O" J
- }! A* Y7 `# T. g, [- O. t
复制代码 |
|