TA的每日心情 | 慵懒 5 天前 |
---|
签到天数: 214 天 [LV.7]常住居民III
|
本帖最后由 deeke 于 2017-10-10 23:38 编辑 3 i$ P+ B! z6 n7 N2 m; J1 ~9 o
4 z3 g% I8 L& I170928:更换图例。
: |5 s D. {% r' x; O: R------------------------------------------5 ?: Z2 S. `( z7 B9 N& L8 L
- |- _! I K& m- ]2 [
------------------------------------------
' V" p% \3 q! h6 [感谢 ryuya 制作、分享的跳转词典,和 GD 自带的构词法各有用处。* C7 _( F* g* G7 I3 K
JumpToDicts 3.0 (英語構詞法詞典)! d0 |: G/ H2 n, }# I+ |
JumpToDicts (phrase version add-ons)" x6 {- X8 M4 k! b7 W* ?$ r, \( r
我的软件环境是:Win8.1 + GoldenDict_Qt5_x64_portable 。
; r4 s# c8 P# i2 }2 t$ @! T, a3 u( B+ _. m4 L2 K x: T
词典没有外置 css 文件,所以通过 article-style.css 来曲线修改。直接修改 mdx 文件更方便快捷,但是我们就要在平坦的道路上曲折前进。
# H8 U* K3 O/ V" K根据来源不同,外框有四种颜色,此信息体现在小箭头( u279C )上,并保持一致。1 M: s4 D3 ]+ l) R3 O) ?& C
3 x. J$ r+ H: Z' _. O1 n1. 在 GD 里找出词典编号。6 k: @/ A) Z5 P; a" M3 r. S
鼠标右键“审查元素”,或直接按 F12 。每台电脑的词典编号并不相同。
8 |5 a) V& v4 F- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 对应 JumpToDicts 3.0! G- \& o4 D5 b9 f: ]1 p9 j; E& I
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 对应 JumpToDicts (phrase version add-ons)
复制代码 : j4 P1 j3 P' N6 J( u H
7 S* ~' a: r0 y) u2. 修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ” 。' u+ l: |* S ~$ w, w! M
- /* JumpToDicts | Start */" U$ s0 x2 f1 W5 w( s& D* z
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div,
' C+ K" l% D% Y* A& x - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div {
) B* H1 `! _9 k& l* e - font-family: Lato, sans-serif !important;
5 z1 ^! n8 `) o& h. r* w - font-size: .625rem !important;
/ v: W( {# F: W0 d/ j; L - font-weight: normal !important;
% _2 ?, N9 S4 D& A+ \ - font-style: italic;
/ E1 v4 a5 O; P& t/ R, ~& A - width: auto !important;
4 }6 }0 y* v: X& V - padding: 0 !important;4 v' Q( p$ t+ q8 `$ T$ `
- color: gray !important;) {9 Q7 a6 T r4 [
- border: none !important;
3 I& R6 y2 j$ l8 K( v - border-radius: 0 !important;
. `/ q7 O$ ?. F. Z+ s, v - background-color: transparent !important;
3 S) ?) ?, B; Z$ j) @+ {5 p - box-shadow: none !important;
; K( ?& m3 O% j$ V - vertical-align: baseline !important;4 ]% R) ?5 R: h0 s+ ^
- }
, D& _+ f9 v8 p - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div::before,
% w! G7 ~6 f; [% s7 B5 b+ Y3 \ - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div::before {3 V" n4 Q% ?6 {5 x: G& w8 A- M
- font-family: "Segoe UI Symbol";
" K$ A4 K- h; O& O5 A7 n - font-size: .5rem;. E% t2 m- ~# I7 w% }/ J
- font-style: normal;7 h: ], f+ K: B: s, ?8 e( D" q; q
- line-height: 0;
! c+ l: S! k* ?) W9 Q( ^ r+ C/ k - position: relative;( h( t) U) x/ V0 y! Q4 b
- bottom: .0425rem;
2 W9 Z9 c* a" I* F/ ? - margin-right: .23rem;5 y$ f5 p% F; _: z7 E% k
- content: "\279C";
# z& ?( A) s" F8 T, C. S, O/ R - vertical-align: baseline;
1 p6 V4 C& [/ a - color: green;
+ \ O6 z4 U" B' U% E - }
( y5 P& L; q0 A. V - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.MW::before { color: orange; }. t8 p$ y( T( \2 w5 j6 {
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.O8::before { color: deeppink; }/ i X3 K! w; ?" f
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.spell::before { color: #444444; }
' {# U9 D$ u( U" W' { - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div.phrase::before { color: #1E8BB7; }- ]% t% Z' ^, A% `' I% k% {
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>br,3 b& @0 \. Q7 r% z
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>br { display: none; }" ~2 c; ] e/ a: f& j4 N0 ^1 W
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>hr,; k: O; n& k% F
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>hr { margin: .1rem !important; }6 h6 {; [2 y0 T9 T& ^, e: p4 G
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a,
, c! ^: {( ?- K- Z - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a {
! X, l$ |+ u2 K- k3 q4 j - font-size: .875rem !important;& F3 @4 p" R6 T- L& \8 R2 w8 _
- font-weight: bold !important;
3 K: Y6 m( B/ b: o: R4 {: p( N - font-style: normal !important;# n3 v6 {0 O8 k; Y2 I; U* B5 v
- margin: auto .23rem !important;
) B% V! U* m6 h, x8 R% H - text-decoration: none !important;/ [& U9 S; J7 i; {
- color: black !important;
) ^0 W/ T, G1 B- G - border-bottom: .08rem solid transparent !important;: ?+ m5 b% M0 Z d+ V: t3 c
- outline: none !important;6 [: h/ h: O- p- @! g
- }$ B A6 L6 t H/ @" R7 H b9 G5 g
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:link,
2 \2 P* ~3 n% x- _7 y7 s$ { - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:link,
0 ^ z5 y& d: ^+ s% D5 L! x# J5 s* X - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:visited,
' A, j& `6 W5 i8 e' H - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:visited { color: black !important; }
* C$ X% H8 |; m& k - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:hover,
V; _, p. P+ a* E J( ~ - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:hover,
1 t8 k9 P4 F+ X0 | - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:active,
6 e3 `5 g0 z! p - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:active {
) O: C$ O! P4 A9 E3 k' P3 C6 w - color: black !important;9 ^* R3 }; n% A0 ?" ?
- border-bottom-color: black !important;& y+ L1 l! a# U3 s
- background-color: yellow !important;
3 d& V0 H: ~8 P5 O4 O7 a - }( U( s6 d/ j7 Z6 s' l
- /* JumpToDicts | End */
复制代码 4 L$ S! t% e$ M g
------------------------------------------
# ]8 n) q. ?4 X修改 dsl 词典的展开按钮. I' }3 i1 b, v# i; m
/ L! c% |- _3 U: B7 j. N, Y4 U1. 在网上找两个图片表示展开、折叠,改名为 expand.png 、 collapse.png 。
$ ^! [( s. v2 D放入文件夹:“ c:\...\GoldenDict\portable\icons\ ”备用。
6 W: s( w* B% Z& h& Y
7 P4 T' J: d# I8 H' R2. 修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ”。& {( A2 M; X% s, N/ ^8 s; C( U7 x" m
调整各种 前后左右、高矮胖瘦。
l" G g' x* x- .dsl_headwords img[src$="expand_opt.png"] { content: url("file:///icons/expand.png"); }& Y [) h9 r" {0 L+ E
- .dsl_headwords img[src$="collapse_opt.png"] { content: url("file:///icons/collapse.png"); }, W" i- H! Y) C0 r! A& z2 ^: b
- .dsl_headwords img[src$="expand_opt.png"],
$ ~; y+ D/ P* v- M9 N: K# k) l - .dsl_headwords img[src$="collapse_opt.png"] {
" |2 \8 p6 ^& v( w - line-height: 0 !important;8 m5 @# \: O, t7 k6 ]
- position: relative;% t! ]2 r! ]& ~ }
- bottom: .125rem;
@$ x ?! Z0 _4 V/ F9 c8 u - left: .475rem; I B- i. h4 f5 g; R
- width: .75rem;4 `5 Q5 M- C! @: B
- height: .75rem;
$ C5 J" U1 }0 b9 ?" A - }
复制代码
; u0 ^9 G5 z: C------------------------------------------0 r% g/ |5 l/ [6 g$ ~/ G! M
2 A9 B) @: Q' }* ^# i' `7 l, {* n. Y搞定收工,试试看外链的图床效果如何。别忘了帮我评分呦~~~ |
评分
-
3
查看全部评分
-
|