TA的每日心情 | 慵懒 2025-1-28 16:22 |
|---|
签到天数: 216 天 [LV.7]常住居民III
|
本帖最后由 deeke 于 2017-10-10 23:38 编辑 - q9 b' @3 o+ z5 r5 s8 L3 S
. @" c9 i3 V* F; W, `170928:更换图例。
( g- J3 l6 t1 H------------------------------------------
1 u1 S- r; P) B
4 n- h- I; I7 E2 _% T------------------------------------------
: I F* r* n1 s9 H感谢 ryuya 制作、分享的跳转词典,和 GD 自带的构词法各有用处。
( {6 C1 [5 u6 t5 G9 zJumpToDicts 3.0 (英語構詞法詞典)& T2 Q1 _/ P4 N: o. j* C4 M
JumpToDicts (phrase version add-ons)
; r! |5 @, t+ Z j$ K我的软件环境是:Win8.1 + GoldenDict_Qt5_x64_portable 。* J& M% {* m) B* ]" f
8 m. l& X+ u) v( h; v* g
词典没有外置 css 文件,所以通过 article-style.css 来曲线修改。直接修改 mdx 文件更方便快捷,但是我们就要在平坦的道路上曲折前进。' q: s7 M9 V" V. ], n8 J
根据来源不同,外框有四种颜色,此信息体现在小箭头( u279C )上,并保持一致。
- V2 `8 c7 V& I1 S4 e* h% t+ Q, T, Q
1. 在 GD 里找出词典编号。
- @0 W! d5 o$ d1 Y, D9 D% ?* L$ C鼠标右键“审查元素”,或直接按 F12 。每台电脑的词典编号并不相同。
. g/ t. Z" L9 y7 H2 m. r1 s- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 对应 JumpToDicts 3.0
! ~+ ~/ n4 [1 [4 I1 E - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 对应 JumpToDicts (phrase version add-ons)
复制代码
9 q# T6 o+ B- x" w$ b* P7 A# n8 I# O: O
2. 修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ” 。! @: f( |# B) r. `6 B3 H
- /* JumpToDicts | Start */. H4 P' y& n3 z0 `6 p3 y: E
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div,7 \. ~& i/ K2 S$ N& M# T# |4 R/ `
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div {" J2 `' R# I' u6 A, M" n- ~0 A
- font-family: Lato, sans-serif !important;
6 j' g' \4 P& P) e A% { - font-size: .625rem !important;( L" z8 P3 E+ W
- font-weight: normal !important;
% A* q% M6 O3 t! \% a - font-style: italic;
9 t4 v3 z1 F* w+ ]- p$ B - width: auto !important;
: S \3 [5 O) f" W$ d4 Y, r- H - padding: 0 !important;
x, x6 D0 J4 N - color: gray !important;
) u& k8 R1 q$ ? L1 U b& _+ ? - border: none !important;! ]( B. y j* B5 Y& p: j
- border-radius: 0 !important;
2 R4 e! Z$ e9 n; ?# i( b& l - background-color: transparent !important;
4 C' z: F( \- i7 z; m: w+ i* H - box-shadow: none !important;
, I5 F+ v7 s$ }8 K6 f! m - vertical-align: baseline !important;4 G' n; ?2 M; G* K' X
- }
. k5 [# z- e1 I! } - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div::before,1 W& r) W% c/ }& G
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div::before {6 k3 y6 k: e/ M
- font-family: "Segoe UI Symbol";1 V8 i) @( i; w2 d7 F( v7 D! P
- font-size: .5rem;5 c3 x6 Z# p$ N& A) M3 W
- font-style: normal;
1 u+ J# w7 q5 Q - line-height: 0;
: R% Z/ Z) c. a4 p - position: relative;
! | k" {' v. v# ?, P - bottom: .0425rem;4 a C! U7 b& D/ E4 M p, D
- margin-right: .23rem;
) L0 L: y* N# N9 P1 Z2 T0 w' \' b - content: "\279C";
8 q5 U k, d7 m" ^6 F) X - vertical-align: baseline;+ b. T/ p* W6 g/ b6 D- h
- color: green;* ^; i8 v4 m* V) E# N
- }2 x9 k" W% ]: y" S
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.MW::before { color: orange; }
8 m5 ]. z& Y# T0 ` - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.O8::before { color: deeppink; }( R, t$ n% E7 L/ T- D% Y
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.spell::before { color: #444444; }' b& C+ d5 x% P0 _4 b7 b
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div.phrase::before { color: #1E8BB7; }0 x. [/ q, E: h/ s& {( p) a& P" f$ V4 J
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>br,' Q% R, e- a# Z: l$ B$ t" C
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>br { display: none; }6 c1 o) s T* X6 i, a" i+ x$ P
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>hr,
8 J4 F1 b2 u; E% K! v - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>hr { margin: .1rem !important; }! N# q/ G/ ]; K" [
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a,
. F# n3 c& ^3 m7 X4 x0 A6 u - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a {- |" f+ U& M6 E" w
- font-size: .875rem !important;/ W: J: y2 [% @" ?
- font-weight: bold !important;
+ o2 Z9 [ Y; [9 i$ w - font-style: normal !important;
1 U' u( o1 f2 W( a - margin: auto .23rem !important;
! E7 E( F; q* ]4 Z. W - text-decoration: none !important;
/ m, l$ _1 R/ S - color: black !important;
2 J. u$ |- ?. b! | - border-bottom: .08rem solid transparent !important;
1 y* _) c4 u# U( C8 ^2 T1 {" ~6 H; z - outline: none !important;5 B. I6 s% e* w1 g: e( g) x, [
- }
( ~) n1 b7 u0 _% y - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:link,* A" u: w, r" l: k# P. D+ s8 ?8 S1 H
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:link,
% r2 @9 s3 Q+ v0 u0 ^3 [ - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:visited,% Q) O- d \2 C- a
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:visited { color: black !important; }
" P; `, v" z3 j! W - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:hover,
6 [2 Q, B5 a; r - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:hover,
/ D7 p0 e. J" V1 z- J5 |! o - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:active,# a! i- H& _% r' n- k
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:active {
4 P7 F. C' O2 R: ^2 U0 E( l( t: @ - color: black !important;
1 {& r7 M m! Q; ^) J4 C - border-bottom-color: black !important;: W" M: m' `7 ~6 V* e
- background-color: yellow !important;
: Y8 I; w) T4 {4 v+ f' i; t - }$ k Q1 \/ b6 I) q( m- Y( a, S" Z; w
- /* JumpToDicts | End */
复制代码
. r$ ]; g4 y2 A% M' k- ^3 K e+ W------------------------------------------; \& y0 C9 ?! d) x. W" ]# I4 ]/ ]
修改 dsl 词典的展开按钮3 v+ l7 g0 H, ]/ }" C4 P# B' h
2 B7 F4 p5 {4 ~( I- ]1. 在网上找两个图片表示展开、折叠,改名为 expand.png 、 collapse.png 。1 j* D; J* ^- ^( P& }! f, M
放入文件夹:“ c:\...\GoldenDict\portable\icons\ ”备用。
7 u' \* g3 Z/ X# [9 X. U6 V& |! G) t& O( B& s) K0 N
2. 修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ”。
9 g8 `/ R4 y1 q8 j调整各种 前后左右、高矮胖瘦。: p/ i; N$ x6 A; X3 N" ^
- .dsl_headwords img[src$="expand_opt.png"] { content: url("file:///icons/expand.png"); }+ c' l" G0 G$ ^) c" l; z) N
- .dsl_headwords img[src$="collapse_opt.png"] { content: url("file:///icons/collapse.png"); }
$ G% T1 D0 p! d/ A - .dsl_headwords img[src$="expand_opt.png"],7 r6 }- f) f4 J% A
- .dsl_headwords img[src$="collapse_opt.png"] {7 ~& \/ ^ q5 Z3 F0 a$ K6 o
- line-height: 0 !important;; i$ ]" F2 s$ h. n" O' l
- position: relative;% l/ w/ T' Y# E. l; _" n( m
- bottom: .125rem;1 j$ w: Q" N3 y4 E. E
- left: .475rem;: g1 ]5 A+ V7 f" y& q
- width: .75rem;
2 e* l/ j9 Z( m2 B$ `0 h- x" | - height: .75rem;
& B* U5 k5 C, _. A - }
复制代码
% x- d" A7 `8 G------------------------------------------
) m$ W6 H5 k6 j9 x. ~1 x. w
3 v. D1 S+ E& X0 s搞定收工,试试看外链的图床效果如何。别忘了帮我评分呦~~~ |
评分
-
3
查看全部评分
-
|