TA的每日心情 | 开心 2018-1-29 01:48 |
---|
签到天数: 10 天 [LV.3]偶尔看看II
|
发表于 2018-5-23 20:20:43
|
显示全部楼层
试试这个吧,我用是不会死的,Qt4不支持style的,但起码我这里也不会死
7 }5 p. |- z' C1 i! i3 Z5 ~font-name 是这个 ☺ , 我忘了是什么原因最好要用这种,好象和兼容性有关,你改成2个,3个笑脸吧9 m! w8 {, d3 D6 N
- @font-face {: k+ T/ e1 H9 {7 [
- font-family: ☺;
7 \- V2 O. Z% o3 d. @& f' a8 ] - font-style: normal;
4 w/ d1 P7 E" [, A( }- ]# k% [/ e) } - font-weight: 300;) f, ~' G( o Q! H' |
- src: url('fonts/OpenSans-Light.ttf') format('truetype');
- ~# Z6 e& j3 _# v& T - }" I( W* Z- C9 r' m
- @font-face {. A0 i1 H0 g. t6 T: ? c
- font-family: ☺;
5 d' C# R! {' P' A {3 x - font-style: italic;
# T- K, w" J; b% p; Q - font-weight: 300;8 R6 v% {2 {& d* g/ d1 }: J; ~
- src: url('fonts/OpenSans-LightItalic.ttf') format('truetype');& L8 _1 K5 O9 r) W" k/ N& b: n, c
- }0 L \+ I0 C% ^3 x& c. g/ R
- @font-face {3 o" W) J. j0 d/ f' a% `. ?
- font-family: ☺;
! H8 f# A! a3 A$ b - font-style: normal;
, m; c8 j2 y, P' g3 N6 M' I) J - font-weight: 400;
8 j& @4 q: K' o! g+ c9 q" V& v - src: url('fonts/OpenSans-Regular.ttf') format('truetype');3 h3 d$ u) L' [
- }; H4 T% H" X( K* ~
- @font-face {
' S1 s4 J2 i$ T) R/ _8 F2 F - font-family: ☺;0 w% `# z7 v5 K. q4 r% ^7 E
- font-style: italic;$ e: n, ^ P* ]2 U
- font-weight: 400;
$ F. }: Q1 j( X( s - src: url('fonts/OpenSans-Italic.ttf') format('truetype');
2 p K) c* I" \0 x$ M$ R- c, S - }
9 b5 \% Y) |1 o& S0 T# H* d - @font-face {4 A3 ~: y1 d; {! }2 H I8 [
- font-family: ☺;
0 F% M$ c3 r+ |3 j) A - font-style: normal;9 t( J! t0 K/ @2 C7 u; c3 ?
- font-weight: 600;
% U+ _$ n) A0 V; n% H* c - src: url('fonts/OpenSans-SemiBold.ttf') format('truetype');
1 p5 o- V9 a+ w; E: ^. q) k - }4 q* E3 X: V& b& @
- @font-face {4 y0 e: F0 x8 l
- font-family: ☺;$ \! i# `4 l( c( P
- font-style: italic;! n) N) m) j3 B" d2 E4 H& ?$ D
- font-weight: 600;
, ?4 u2 m% e- U - src: url('fonts/OpenSans-SemiboldItalic.ttf') format('truetype');
5 y- H* J6 l# O7 U1 y1 _ - }
0 c: H( C2 Q0 | - @font-face {; ?5 y# m$ Y2 l5 I2 r4 D8 c0 R
- font-family: ☺;
% q# o; C* X; c$ r; P - font-style: normal;# P/ r* n, u- M
- font-weight: 700;- \9 Y" h3 u; y3 R5 L/ b: H7 i) [4 T
- src: url('fonts/OpenSans-Bold.ttf') format('truetype');
7 z& Q; L3 H; x4 {6 y- [ - }
! u# K3 D# u& _1 j4 u# m* \1 M( e. q - @font-face {
4 h! v% ~& T. k - font-family: ☺;
; Y9 E" G5 F; b5 C7 c2 Q& V6 O - font-style: italic;
8 B2 C% L* `. \ - font-weight: 700;/ d3 X p5 g6 u; r
- src: url('fonts/OpenSans-BoldItalic.ttf') format('truetype');
8 s$ |& I5 E4 n Q& x9 y - }
8 S" s# w7 m4 s9 O3 j, U
复制代码 |
|