|
本帖最后由 LYX1692 于 2016-1-3 01:42 编辑 * X, Z4 G) f3 I6 v
8 L% Y/ S, U5 f2 W小弟试着将自己的英文学习笔记转成MDX,碰上一点问题。
" ]6 u: U# q* [, W& j2 q/ D下面是一段正文的代码:
) g M7 c: A. c' a3 `( N- i6 _/ L. g(为了方便试验效果,我将CSS暂时弄成内嵌style。)
! o3 R, @: [' t) }8 N
3 j f2 q0 C* I+ e: e- <quo_box style="background-color: #f3f8fc;margin:5px 5px;padding:10px 10px 10px 10px;display:block;border-radius: 10px;border-color:darkblue;border-style:ridge;clear:both;"><p>我首次接触这个单词于《福尔摩斯冒险史》之《波希米亚丑闻》<span class="BookName"> A Scandal in Bohemia </span> 第3段。当时华生已经结婚,搬离了Baker Street,后来偶然路过:</p><quo style="margin:0.5em 0em 0.5em 1.5em;border-left: 1px solid #03b0b6; border-bottom: 1px solid #03b0b6;padding:0 0 1em 1em;display:block;"><p style="color:#fc4b01;font-family:'Sitka Text', serif;display:inline;font-size:1em;">As I passed the well-remembered door, which must always be associated in my mind with my <span class="Q_KeyL1">wooing</span> , and with the dark incidents of the Study in Scarlet, I was seized with a keen desire to see Holmes again, and to know how he was employing his extraordinary powers.</p><p style="color:#10253f;font-family:'微软雅黑', 'Microsoft YaHei';font-size:0.9em;display:inline;padding-left:0.5em;">我永远都无法忘记那座旧日的寓所,那里有我的求爱历程,也有《暗红习作》当中记述的种种可怕事件。这样一来,从那道无比熟悉的大门旁边经过的时候,我突然产生了一股强烈的冲动,想去看一看福尔摩斯,去听一听他正在以怎样的方式运用他那些非凡的本领。<span style="font-size:0.8em;padding-left:0.5em;">~『福尔摩斯探案集·波希米亚丑闻』(李家真 译)</span></p></quo></quo_box>
l0 U N: g. Q- _5 }* ~0 E3 B
复制代码
3 J! P8 I8 p/ L/ m1 }; ^! J/ X# I, i; W- I: l2 ~8 H- H5 x, Z8 ?, ?& t, r
原本的大标签是<div class="quo_box"></div>
; L, `' Y, V% b; m" d; n$ L1 q" I
后来,我为了便于以后查找,想弄个自定义标签,也就是<quo_box></quo_box>
- D1 N Z) S- T! o" z) _7 l$ H
. F6 j0 z4 Q' P/ @* _转成MDX之后,Mdict的显示效果却是这样的:
9 \& F! D4 V% I& ~/ P
# S M. v. o! ]% n/ ]3 j. B9 g% n M# P: w
然而,Goldendict的显示效果却很正常:9 S, l. X* d; _ o( [2 M [4 {/ S/ i6 H
: w: d; i# H) ]1 r4 e: A
2 W8 m) I2 Y+ g- P; N% Z
" E J. u; O- D9 ]于此同时,我又试着删除自定义的标签,即回到<div></div>。2 @5 e8 [& W; B/ n9 [, ]
这样的话,Mdict也相对正常了。(但圆角文本框失效,变成了直角。)* A8 x" n/ u, V- i6 E7 t
$ j) x! y7 T* `5 J3 d2 @
; @, ]0 [& z. o; m. T) r& ?9 c9 |3 j' [! f e$ F
出现以上情况,不知道是因为Mdict内核不支持,还是因为我的电脑IE内核问题(新版win10),抑或是我这代码样式书写有问题。
i, X u/ U: O1 Y |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
x
|