TA的每日心情 | 慵懒 2025-1-28 16:22 |
|---|
签到天数: 216 天 [LV.7]常住居民III
|
本帖最后由 deeke 于 2017-10-10 23:38 编辑 # k( \/ O+ C5 c9 }
6 T) l6 V" ^6 A2 b+ v8 _6 \" ^
170928:更换图例。1 {4 y: F* {+ i( g$ E/ e
------------------------------------------
' o% F8 l2 L3 L, J) `
" r+ d2 m7 j$ `/ R------------------------------------------" y7 |- Y) D/ C9 L0 q
感谢 ryuya 制作、分享的跳转词典,和 GD 自带的构词法各有用处。
$ t# d. b; j1 A: |JumpToDicts 3.0 (英語構詞法詞典)+ C+ S6 p1 B! D% f, |: x9 E E2 K
JumpToDicts (phrase version add-ons)
W) N- E2 {: v! N% I7 o8 }我的软件环境是:Win8.1 + GoldenDict_Qt5_x64_portable 。
1 B9 k- f4 Y; s4 u
: t0 j' R1 x; F& H: F4 [: v" O词典没有外置 css 文件,所以通过 article-style.css 来曲线修改。直接修改 mdx 文件更方便快捷,但是我们就要在平坦的道路上曲折前进。
8 C% L& I. I" V5 A3 {7 v根据来源不同,外框有四种颜色,此信息体现在小箭头( u279C )上,并保持一致。
9 p( I8 v2 V& V5 H V/ Q6 R. I+ G
1. 在 GD 里找出词典编号。
3 }* G7 ?5 ?0 L3 o: ~# ~鼠标右键“审查元素”,或直接按 F12 。每台电脑的词典编号并不相同。
) [# _: f, B$ ?8 x$ g- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 对应 JumpToDicts 3.0, v& i: Y' b5 d9 M, A
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 对应 JumpToDicts (phrase version add-ons)
复制代码 + }5 M6 n* d) M' C) A& C2 z0 t
; a9 }7 g9 ^3 \: X
2. 修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ” 。
5 p. I# S/ I4 d' j# I4 L+ R- /* JumpToDicts | Start */9 }+ C2 P3 `( `2 r
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div,% K$ \# n9 E" i7 l9 w P* Q: Z
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div {. Z( y0 ~. T8 G3 E! Y
- font-family: Lato, sans-serif !important;2 A5 m$ D; \- B: v9 W
- font-size: .625rem !important;( r/ M3 j- w% j) B1 K6 b! R7 X
- font-weight: normal !important;
0 p( O$ \1 h& R& V - font-style: italic;
9 w! m( A" E2 }& t - width: auto !important;
/ o2 q3 f+ P) I - padding: 0 !important;/ K; e5 a8 i3 x s/ [' f
- color: gray !important;
1 D/ }+ w) h; D+ L( |% J- Q - border: none !important;
2 s9 X/ _5 r3 @% g; V& n0 y M+ r - border-radius: 0 !important;. M" H3 Q$ g& z4 v$ N% W
- background-color: transparent !important;
* L: c* w0 ?5 A Y& t# {( ~ - box-shadow: none !important;, S3 B* s4 l& p g& M+ N
- vertical-align: baseline !important;
2 o9 D9 L$ _4 H- N8 ]3 H - } K% L+ m0 b; e2 ^& i' q3 N( x
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div::before,
2 n9 r9 l% }' f" I7 P+ k+ f - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div::before {8 N7 n* r* _5 U7 E2 Y$ h. m' ~% q
- font-family: "Segoe UI Symbol";- ]" j$ o- r- a8 O
- font-size: .5rem;# g- R i }- a v2 U+ [
- font-style: normal;
2 Y/ H1 Q* e: z0 K - line-height: 0;
1 J; q) F$ z% r6 J - position: relative;) f- y% x# B6 B5 Z6 _( a$ Z# a
- bottom: .0425rem;
) @ o% G3 N9 l' l' S# r - margin-right: .23rem;
. B0 w5 O0 @) ^% R/ m, s - content: "\279C";
3 l; z6 ]0 C+ h) p" o9 i - vertical-align: baseline;% z5 H. P) r5 S, ]5 o
- color: green;6 w) q2 G6 {$ q! h+ R
- }
: f8 N5 D9 w' k( ?, l: ^ - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.MW::before { color: orange; }1 o( J8 [& B) b9 [3 ]2 l( }
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.O8::before { color: deeppink; }
6 U( D/ L8 U9 x" t - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>div.spell::before { color: #444444; }# y# w' O8 M0 D0 l5 W
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>div.phrase::before { color: #1E8BB7; }
, e5 X9 i9 [! l9 c( q - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>br,. z) e5 M) f# [3 D4 {
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>br { display: none; }9 K! m4 r% A5 @) |9 q
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 .mdict>hr,
* _" D) x& a! J1 \9 i# O. E/ T, f - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 .mdict>hr { margin: .1rem !important; }
* j4 i9 x# x; g) @5 X - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a,
) N' q' w7 Z. ]5 J+ @9 k - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a {5 I/ a0 ]2 R: _* R/ [! L
- font-size: .875rem !important;
9 N. W9 d% X' R. V. j - font-weight: bold !important;- p+ T% l( c1 a2 c& d
- font-style: normal !important;5 Z9 V1 p' _* ? f: U C
- margin: auto .23rem !important;
8 n6 ]5 \% Y: i$ q0 t. b - text-decoration: none !important;/ F3 ?: g0 z- i* l2 m
- color: black !important;+ |: `( X E" K, o2 D6 [0 u3 N
- border-bottom: .08rem solid transparent !important;
$ E8 Y+ l7 H" C& U; d4 U ] - outline: none !important;
' ]3 G3 O- a" M! V0 k - }4 _ M( j+ ]+ n6 ~+ l
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:link,# k- d/ }' o8 G0 X
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:link,
; j1 I& \$ N. H! h) U* _ - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:visited,
2 g4 z, F8 ]& p: _* v - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:visited { color: black !important; }' f5 N' B- J5 |$ a* b! B
- #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:hover,) m9 v: }8 ]& w3 D# _3 e
- #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:hover,
' [6 d0 F: h& |* N - #gdarticlefrom-af6352032a97251d70ce9ba74e88edb8 a:active,
# E; o- Y) w( v" y+ N3 x& z- s9 w- v - #gdarticlefrom-3a6c930edbc61ab69e6c93450b279539 a:active {" c* e* F$ x" P- x1 R L% {
- color: black !important;
/ S, \3 c' F* ?; M( Y! C - border-bottom-color: black !important;/ R, R" R% ^ k% D- [0 f3 |' ^
- background-color: yellow !important;
- H# j+ e" d7 y6 f7 p1 D& p3 | - }" N! N: P* D" p3 v" [" W6 J9 l
- /* JumpToDicts | End */
复制代码
4 |- Q+ w7 q+ ~& k2 \------------------------------------------: e* C0 Q6 C/ V6 P
修改 dsl 词典的展开按钮 |* z& t3 ]8 w) }" _9 T. Q0 S) i
9 h5 R ?! d& a9 a
1. 在网上找两个图片表示展开、折叠,改名为 expand.png 、 collapse.png 。
1 C0 A) l& e# A. U8 Y8 t: A+ R/ n放入文件夹:“ c:\...\GoldenDict\portable\icons\ ”备用。% L) z/ t5 z; M5 b( `9 C
- c0 I/ W0 j/ S A2. 修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ”。
$ r8 c' |( n7 e4 d4 w调整各种 前后左右、高矮胖瘦。
4 l0 U6 i' o. N6 H2 W- .dsl_headwords img[src$="expand_opt.png"] { content: url("file:///icons/expand.png"); }
1 g% q. h5 j: a9 Y' { - .dsl_headwords img[src$="collapse_opt.png"] { content: url("file:///icons/collapse.png"); }
4 s2 m8 ]* A: v( Y. r - .dsl_headwords img[src$="expand_opt.png"],
" G9 k" G. m8 b$ g - .dsl_headwords img[src$="collapse_opt.png"] {
/ {9 l# ]' e) R4 R# y' L& Q! [ - line-height: 0 !important;9 U& k6 m. y+ _( U; s& Z6 ~
- position: relative;
2 I% T0 @' V: q8 F - bottom: .125rem;; E/ D$ w) T& j
- left: .475rem;
( V m$ L" u9 E# z, S - width: .75rem;7 \" u2 H. h- p5 [1 W t& N2 ~
- height: .75rem;2 O3 N& w3 d: Q
- }
复制代码
0 }5 ^ P- r; G% [9 U- @, g------------------------------------------5 k/ h3 m* Q% E1 Y
: r8 Y. L# P, u1 p& P! f3 e! _搞定收工,试试看外链的图床效果如何。别忘了帮我评分呦~~~ |
评分
-
3
查看全部评分
-
|