TA的每日心情 | 慵懒 昨天 00:20 |
---|
签到天数: 211 天 [LV.7]常住居民III
|
本帖最后由 deeke 于 2017-10-10 23:38 编辑
( I) T, c# F3 X$ _1 h3 S
" v) K0 J. \+ c9 b# }4 T$ t! e170928:更换图例。
% i9 o: N) ]; `, a6 I2 n------------------------------------------
Q6 z/ W, v/ w" I( z
6 {. [7 i: |3 s- {+ q------------------------------------------; Q8 @0 |8 ]( d3 D/ F
感谢 ryuya 制作、分享的跳转词典,和 GD 自带的构词法各有用处。2 }7 O7 L1 x9 P7 S" [: s8 v6 ]! d' [
JumpToDicts 3.0 (英語構詞法詞典)
+ Y+ r$ P0 b2 m, z6 a# p% IJumpToDicts (phrase version add-ons)
/ Y1 k% B' k9 Y1 ]5 |3 ^我的软件环境是:Win8.1 + GoldenDict_Qt5_x64_portable 。2 X$ }, C3 J9 ]
* V' J. m# y9 c+ |词典没有外置 css 文件,所以通过 article-style.css 来曲线修改。直接修改 mdx 文件更方便快捷,但是我们就要在平坦的道路上曲折前进。
3 [& {, `) @% u( Z# F( y, G0 D7 a9 V8 B根据来源不同,外框有四种颜色,此信息体现在小箭头( u279C )上,并保持一致。3 S V2 e' q3 u* p- W: Q' V; t
9 o+ P' ^# G2 g: y# a
1. 在 GD 里找出词典编号。
' K* x/ F8 Y# i: F鼠标右键“审查元素”,或直接按 F12 。每台电脑的词典编号并不相同。- ?; y4 [" Z5 G$ Z) S2 ], g
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 对应 JumpToDicts 3.0
( J. F( }+ h3 e/ Y' h - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 对应 JumpToDicts (phrase version add-ons)
复制代码 3 U; h" K5 s0 Y4 y. a
4 C# G$ }- P6 e3 @2. 修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ” 。
" T0 O* e8 g% e7 S3 G! l0 a* C- /* JumpToDicts | Start */& V4 z* E7 {- I, V
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div,
6 G7 L. _3 Y9 N. b - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div {5 g8 \) ~' ^2 Z# C& |' C% R
- font-family: Lato, sans-serif !important;8 R: `0 j7 r4 w. g/ Y# Q' a
- font-size: .625rem !important;$ i; r+ c( p( ?5 P
- font-weight: normal !important;, i$ M% X! d$ _
- font-style: italic;
5 I% }' O: m2 v1 z9 N& C8 B Y8 l - width: auto !important;
* l5 j8 L4 G! ^* v L! n - padding: 0 !important;3 ?, b6 e" V0 [) B- S
- color: gray !important;
; Q5 b' m, E; E2 y1 B- c. a0 R - border: none !important;$ y; t2 M+ r5 V
- border-radius: 0 !important;
0 t+ k. j) K4 ^4 } - background-color: transparent !important;* h. K( C. m D# i t" q
- box-shadow: none !important;7 s0 v& b+ r6 W4 b) S$ D7 `$ m
- vertical-align: baseline !important;
' r9 c) B5 ]# j* l. T! F) k - }+ a) b' [; T. C2 t% B) I
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div::before,
5 d5 p2 [- G; j' A! D% v - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div::before {9 } K0 o! }4 z' f$ e9 C
- font-family: "Segoe UI Symbol";) J) _3 ~- q7 c! |
- font-size: .5rem;
4 j8 o+ L( Y. [8 a0 {) g - font-style: normal;
( x/ [9 E: o/ _8 \+ k - line-height: 0;
1 [' M# }# X3 _# X( i - position: relative;
& [" L& t* _% W+ G3 E - bottom: .0425rem;
1 j* o3 [% ~% N9 J8 ` - margin-right: .23rem;
' |& t& M/ O$ T' k& A' P# H - content: "\279C";
% b9 w" b0 ]5 S$ r% y$ J- T# \ - vertical-align: baseline;- Q* f! r( ?/ T8 `8 f$ b
- color: green;
/ E# d4 }( W d$ O - }$ _/ Y4 L: C( F' u. s
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.MW::before { color: orange; }' n1 Q' C4 Y" V1 Z$ U
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.O8::before { color: deeppink; }, a3 @. ~1 T' q8 N
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.spell::before { color: #444444; }5 O6 p2 j" `+ U
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div.phrase::before { color: #1E8BB7; }. q6 L) A9 |2 v e$ n3 X
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>br,4 P6 t# T& h; F6 c
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>br { display: none; }
& {8 o J) o m( o6 `+ k - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>hr,
& g& f" X# R# T: B C0 o0 N - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>hr { margin: .1rem !important; }
B6 |9 C: S7 @1 g - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a,
]9 h) b6 m8 Q ?7 J3 F - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a {
8 G/ E4 S3 T- l# H. X0 w t; v - font-size: .875rem !important;
; I& q9 Y( b# t5 q- ]; R" I' B - font-weight: bold !important;
" q& V% x3 z3 N) x - font-style: normal !important;
" d& [, l- }5 M s3 ~- K - margin: auto .23rem !important;
8 k, E1 Q I& {2 ?0 t9 D4 m - text-decoration: none !important;5 N6 |# `! `" a0 O7 G. |! T
- color: black !important;2 E' H7 \# V/ |2 R) Z; ~$ c' I
- border-bottom: .08rem solid transparent !important;
2 M. Y3 f! E3 K R: t* w - outline: none !important;
3 t' O8 v- d& _6 _; V- { [0 L% e - }2 g. S( B6 o0 O9 E7 s1 h0 ]9 F
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:link,
" N6 `8 ]# H+ s! V* }6 L' O, c0 k - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:link,
9 F7 u. Y& B) D9 O) S: i; E: a2 o - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:visited,/ h5 [, _4 C C& K+ c9 k& O
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:visited { color: black !important; }/ e$ i4 v) m3 Y$ M
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:hover,5 W/ w( k b& E, D* F) X }
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:hover,
4 Q' i/ a" B$ R. x7 q, A - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:active,! I$ @3 R: w- T- `" y1 l
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:active {0 v$ ]; y* V( T5 Z0 J
- color: black !important;
! z! ] l! d) D" t - border-bottom-color: black !important;
0 y0 ^$ Z4 X" {* O- w7 Z - background-color: yellow !important;
. A/ g+ b3 x8 O7 p, s - }
5 h: D! v3 s# N; f+ p - /* JumpToDicts | End */
复制代码
4 l6 G. c1 I/ n S- a------------------------------------------7 e3 N; ]& R! l" I5 s2 i! C
修改 dsl 词典的展开按钮
# S! }! C( P' S ^* O% f9 V# K: D+ j! d
1. 在网上找两个图片表示展开、折叠,改名为 expand.png 、 collapse.png 。
& a7 Y b) R" n放入文件夹:“ c:\...\GoldenDict\portable\icons\ ”备用。
; R9 Q' F7 K4 j, X7 y* v. [ s" E% P9 G6 r- p& {
2. 修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ”。
6 K8 n4 ~; R2 \+ E1 e0 H调整各种 前后左右、高矮胖瘦。# l7 _2 z* s9 Z0 t0 E
- .dsl_headwords img[src$="expand_opt.png"] { content: url("file:///icons/expand.png"); }8 K6 ]9 Y# W- n$ ?% B" o
- .dsl_headwords img[src$="collapse_opt.png"] { content: url("file:///icons/collapse.png"); }
t9 G2 e. R# X7 w1 s- t - .dsl_headwords img[src$="expand_opt.png"],/ J2 U% x7 c( s, ?
- .dsl_headwords img[src$="collapse_opt.png"] {5 i! b( T1 @) P. e. t1 d: g2 ~
- line-height: 0 !important;# n/ b: _1 x/ n
- position: relative;; F* o' T( A5 s6 n% z
- bottom: .125rem;6 @: C6 H2 h6 f: n# [
- left: .475rem;8 M( p, X# j- V! k! x
- width: .75rem;/ G0 e/ \# V) J4 v8 ?6 d/ J
- height: .75rem;. ]; J3 X( K2 v6 S U9 u P, l2 J
- }
复制代码
/ d H( w# C7 R# b9 ^------------------------------------------* K9 q" z3 A L8 e
) ?/ k' F+ j7 U }# l) q7 r! V搞定收工,试试看外链的图床效果如何。别忘了帮我评分呦~~~ |
评分
-
3
查看全部评分
-
|