TA的每日心情 | 慵懒 2025-1-28 16:22 |
|---|
签到天数: 216 天 [LV.7]常住居民III
|
本帖最后由 deeke 于 2017-10-10 23:38 编辑
. x/ c! @) j, X# Q0 [: ~( c4 \0 n: s" E
Z$ ~- R( {" r" B! U v170928:更换图例。/ |' \9 T5 w) y& y2 [) g
------------------------------------------
& @( m i% Y5 J. B: o4 q
3 x) N! w4 N4 |* [5 b------------------------------------------
) N, ] C& A1 a6 w感谢 ryuya 制作、分享的跳转词典,和 GD 自带的构词法各有用处。7 V: x& O# K7 d# O! x: C
JumpToDicts 3.0 (英語構詞法詞典)0 L' o+ n& A- t' A
JumpToDicts (phrase version add-ons)
- ]6 |9 x' k( R4 ?( m n& S8 d我的软件环境是:Win8.1 + GoldenDict_Qt5_x64_portable 。1 f$ q" f) w& w5 z5 E2 ~
j9 `. q+ ?( D4 {: ~, F
词典没有外置 css 文件,所以通过 article-style.css 来曲线修改。直接修改 mdx 文件更方便快捷,但是我们就要在平坦的道路上曲折前进。* e; G$ i: Y+ j( k. I' T, ]& ^0 N
根据来源不同,外框有四种颜色,此信息体现在小箭头( u279C )上,并保持一致。
3 P' z2 c" G; O- A' u0 J, B n& U8 O& B4 S6 c, }) p
1. 在 GD 里找出词典编号。4 v/ N; v1 y/ p. S
鼠标右键“审查元素”,或直接按 F12 。每台电脑的词典编号并不相同。
l3 c3 |2 U4 ?' d! t$ Y- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 对应 JumpToDicts 3.04 ~; l+ d: K" |' u" b# k
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 对应 JumpToDicts (phrase version add-ons)
复制代码
& J7 i c, S1 e2 K' i; a4 K% V" O2 x
2. 修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ” 。
( A( T* [7 _. _: x) ]8 a2 |7 U( j- /* JumpToDicts | Start */& L! k! c: r3 C) ?9 _1 }* e
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div,4 c% h9 k7 Y( P
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div { V! s2 s8 R4 o& N4 g3 K: n' N
- font-family: Lato, sans-serif !important;
+ Z5 f: f' b3 [1 h. k5 i7 ?; K - font-size: .625rem !important;7 t( a/ q( o/ z( i4 q
- font-weight: normal !important;9 f' W+ W8 {7 r
- font-style: italic;! z) w5 \. V8 T9 U. l8 J
- width: auto !important;+ o d7 M: W8 c8 K+ M& h
- padding: 0 !important;2 B( S- X6 M% v _0 @
- color: gray !important;
3 R7 [3 D: x9 z, e, W - border: none !important;
' v8 ~; ?: F0 n: p# l/ f( D - border-radius: 0 !important;
. t4 a$ d' M2 S( E6 r- a - background-color: transparent !important;
8 o. R% _" i- B" k% z0 H' S3 R9 m6 V - box-shadow: none !important;
l4 q" O6 P! l! s - vertical-align: baseline !important;+ f. U1 U" ^8 [# r6 ?# N
- }
2 h8 }. }9 d" n" }3 ], S( @, | - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div::before,. Y3 ]5 W' `6 O$ {( x
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div::before {/ O( y4 ^& X8 H8 @; G2 }
- font-family: "Segoe UI Symbol";
1 ]2 K( R( t5 h, U1 }1 R( f - font-size: .5rem;7 ]2 l* N+ K- _& v3 W9 a
- font-style: normal;
( Q/ O( u& ~6 ? q/ P) Z; d, L - line-height: 0;
/ _5 y& M. Y" k' u - position: relative;
3 r5 C! W3 Q6 e) r - bottom: .0425rem;$ f# k" _2 Q- p3 O' H7 Q) p6 B7 \
- margin-right: .23rem;
* n8 P0 K; E& o& k7 U - content: "\279C";
2 B4 o' X6 x1 Q! K, g3 p0 V' M% Y - vertical-align: baseline;' ]' y( {; H9 A' l% X
- color: green;5 Y/ I* l. [ B0 T
- }
h' i) a2 p: a3 Z - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.MW::before { color: orange; }' a& V/ u3 p$ a U: M
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.O8::before { color: deeppink; }
9 C, Z2 t, v: W2 N2 ` |) X - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.spell::before { color: #444444; }
# V: R# O3 Y" E6 P - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div.phrase::before { color: #1E8BB7; }% D0 o6 q- T; ?1 D* `0 y' o. k
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>br,- P2 ~! {) v. d
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>br { display: none; }; g! S; [ R2 h' _3 B9 u
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>hr,/ R) m4 q* ?! k; D
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>hr { margin: .1rem !important; }
+ \. e, L7 o4 K, J - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a,+ |$ O/ u4 `5 f% V
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a { {( J: }: v6 S7 \' J& s
- font-size: .875rem !important;
) B3 f' N1 ~9 R/ L- G - font-weight: bold !important;) z( \8 G l3 j8 j
- font-style: normal !important;" \$ h5 y ^3 R1 a1 l
- margin: auto .23rem !important;
+ Y$ L' E0 S: `5 S9 p - text-decoration: none !important;" v" @9 Y9 L; y( c, @3 l
- color: black !important;
5 p \1 Y7 y. [# ~+ Z6 ^3 q! | - border-bottom: .08rem solid transparent !important;) h& r x, N D. s' T0 P$ v
- outline: none !important;
$ ?/ ~& q- j! A9 r! |7 s) G4 ~/ l7 { - }
, C$ J' h% z t5 l. D% | - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:link,
. z4 F6 G- o4 m: d - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:link,( @2 e, O7 g( \9 Y
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:visited,
" [' m# X- e. I7 F* W( [8 g6 b7 v5 d4 J! m - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:visited { color: black !important; }! G2 r8 N. B- @" E) I; G
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:hover,
2 P' ?* a' n6 k& q% U8 I - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:hover,
9 Y9 o8 b! m! ] - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:active,+ i" ^1 X# G+ c K
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:active {9 M, c5 \/ r8 c! ?7 r& Y" D% @
- color: black !important;
9 M0 h: m6 }/ D - border-bottom-color: black !important;
' R& L5 F- z! e- ]6 V8 E+ ^5 n$ E - background-color: yellow !important;
1 S. ~0 Y) D- n1 e& ^, J' U - }. b4 y: k: x" I, W. d8 k5 ?
- /* JumpToDicts | End */
复制代码
w% o4 _; E! Q! Y& r------------------------------------------
/ p; G6 P- l4 a修改 dsl 词典的展开按钮+ R2 b/ n* V( b2 g- i& ~0 Y
" M# j" d6 d" w
1. 在网上找两个图片表示展开、折叠,改名为 expand.png 、 collapse.png 。
9 [& M1 H; _4 D/ M3 ~$ s/ h5 a放入文件夹:“ c:\...\GoldenDict\portable\icons\ ”备用。 t6 v) Y, M+ T; V# p
! q9 y# \+ F% T2 [6 j2. 修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ”。
7 X) E4 Z9 z; r: k/ }- m调整各种 前后左右、高矮胖瘦。
: A8 f* Z) M# \; {/ r m- .dsl_headwords img[src$="expand_opt.png"] { content: url("file:///icons/expand.png"); }& |# w' Q% r2 Z! W1 F( V+ c
- .dsl_headwords img[src$="collapse_opt.png"] { content: url("file:///icons/collapse.png"); }+ @$ \- G1 t5 G
- .dsl_headwords img[src$="expand_opt.png"],( S& G; l5 R% [2 D/ x
- .dsl_headwords img[src$="collapse_opt.png"] {7 n2 \& ^1 m+ ]! i3 X" N8 o
- line-height: 0 !important;+ W3 c- K$ g9 ]- n, ]
- position: relative;
4 B1 c0 C" M! W+ m: A - bottom: .125rem;
- b% d- y: f9 h* t, M. `3 v& r/ C - left: .475rem;6 S' U& X d# V) P
- width: .75rem;
8 r. E1 {8 ]$ l7 ]* E - height: .75rem;; C: S( u* K( M
- }
复制代码
4 [" n$ F: S3 x8 J7 U0 d------------------------------------------" ?# I" Y0 Z% F* @2 p" B/ g
+ m7 W: @* X1 m/ H, r9 a
搞定收工,试试看外链的图床效果如何。别忘了帮我评分呦~~~ |
评分
-
3
查看全部评分
-
|