TA的每日心情 | 开心 2018-1-29 01:48 |
---|
签到天数: 10 天 [LV.3]偶尔看看II
|
发表于 2018-5-23 20:20:43
|
显示全部楼层
试试这个吧,我用是不会死的,Qt4不支持style的,但起码我这里也不会死
6 m0 `3 Y7 g2 k6 C% Jfont-name 是这个 ☺ , 我忘了是什么原因最好要用这种,好象和兼容性有关,你改成2个,3个笑脸吧
; ?* y" a" f2 [2 h8 i7 A- @font-face {& v, t W) a( v, G" T# ]9 ?! R
- font-family: ☺;
& E" C2 T1 \+ @ - font-style: normal;
( G! O7 {1 Y6 _" A8 ?* y+ H - font-weight: 300;5 P) O v# Q b, w. }
- src: url('fonts/OpenSans-Light.ttf') format('truetype');. H8 d [0 a1 p# d
- }
! G0 u" K9 @8 ?$ \ - @font-face {
' ~! v/ C/ y* S: x - font-family: ☺;" R: U9 [. d- ^* B
- font-style: italic;- N7 A! h9 S2 E
- font-weight: 300;
) O' |0 T3 e) {: L6 x! { - src: url('fonts/OpenSans-LightItalic.ttf') format('truetype');/ m; s6 d8 @% s; s- W% P
- }5 u) L, F7 A" V, Z6 o' Z! ^
- @font-face {
7 } i7 e# X3 t* H7 Y - font-family: ☺; t. z# n/ i- a( y' W+ W, t; W
- font-style: normal;
% A# [) Z& x- X' _ - font-weight: 400;
7 l' H% r) O4 A" m# D, Q - src: url('fonts/OpenSans-Regular.ttf') format('truetype');
- }# c8 e Z' E - }/ g+ l5 P! i) D( Q9 \$ D
- @font-face {
" ^8 y. A+ i- h$ `0 Z - font-family: ☺;/ h/ ]7 _0 U& r* P, B
- font-style: italic;- R5 M, n" S4 Z/ p8 K3 J6 W: E
- font-weight: 400;% X: r( G0 v |- e& @
- src: url('fonts/OpenSans-Italic.ttf') format('truetype'); ^1 K7 W8 K6 X# ~! @( g- H! T
- }( i) o" ?* p' y+ q( h2 `
- @font-face {
- h( J# l4 C# q& e( D% Z h - font-family: ☺;8 _6 J. p7 F# Z' j4 K/ r
- font-style: normal;. a" e( a9 {2 ~
- font-weight: 600;
9 x- {0 q& Q a9 L& h: K - src: url('fonts/OpenSans-SemiBold.ttf') format('truetype');
9 ]8 x8 K+ M& W - }
, w5 Q. K* |$ Y) r0 t* b/ ^9 U - @font-face {
9 T" z8 Z1 `+ D; @2 d% ~. G+ Z - font-family: ☺;
" T) q4 j1 O1 ?4 [ - font-style: italic;
8 n$ C; u) |1 @) P# m - font-weight: 600;
4 a2 Z0 z4 d4 _% ] - src: url('fonts/OpenSans-SemiboldItalic.ttf') format('truetype');
( }. H3 T$ Y( l+ S8 s* M4 X/ D: s - }
6 K+ J! Z% P4 e - @font-face {' }! l1 p% z% v: @
- font-family: ☺;) P- w; B2 N% n
- font-style: normal;
8 ^/ J: y5 q0 ` - font-weight: 700;
2 r$ j7 a; p2 e3 w4 d# i, [* w - src: url('fonts/OpenSans-Bold.ttf') format('truetype');; ?. d' @) ~& _2 g' Z \0 x D
- }* |+ w8 Y) o" V
- @font-face {9 N# J6 p2 T1 E
- font-family: ☺;
) `' P+ I5 j( L1 L7 q - font-style: italic;
: |4 ]# _" p) ~6 P" S - font-weight: 700;, u* i, _, Z1 c
- src: url('fonts/OpenSans-BoldItalic.ttf') format('truetype');' g/ n. c1 o o
- }2 @% M* t# r9 W5 ? }- Q9 Y- b- D
复制代码 |
|