# Preview - 修改MDX CSS的神器，支持CSSJS实时预览

**URL:** <https://forum.freemdict.com/t/topic/1251>\
**Category:** 技术交流与词典编修\
**Created:** [2020 年3 月 28 日 14:28 UTC](https://forum.freemdict.com/t/topic/1251 "2020-03-28T14:28:21Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

作者： ![Arlin](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@Arlin](https://forum.freemdict.com/u/Arlin)\
发布日期： [2020 年10 月 8 日 12:16 UTC](https://forum.freemdict.com/t/topic/1251/89 "2020-10-08T12:16:14Z")

</div>

哎，多半我电脑问题。

期待新神器。

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2020 年10 月 8 日 15:08 UTC](https://forum.freemdict.com/t/topic/1251/90 "2020-10-08T15:08:15Z")

</div>

是程序的错误提示没做好。

---

<div class="post-metadata">

作者： ![hua](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/hua/32/11090_2.png) [@hua](https://forum.freemdict.com/u/hua)\
发布日期： [2020 年10 月 9 日 02:12 UTC](https://forum.freemdict.com/t/topic/1251/92 "2020-10-09T02:12:10Z")

</div>

你们技术栈都不一样。。

---

<div class="post-metadata">

作者： ![hua](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/hua/32/11090_2.png) [@hua](https://forum.freemdict.com/u/hua)\
发布日期： [2020 年10 月 9 日 02:53 UTC](https://forum.freemdict.com/t/topic/1251/94 "2020-10-09T02:53:42Z")

</div>

preview 是 Rust

---

<div class="post-metadata">

作者： ![yangxiups](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/yangxiups/32/5_2.png) [@yangxiups](https://forum.freemdict.com/u/yangxiups)\
发布日期： [2020 年11 月 8 日 12:28 UTC](https://forum.freemdict.com/t/topic/1251/99 "2020-11-08T12:28:42Z")

</div>

同为Windows 10 家庭版，Lenovo台式机 Preview正常使用，Huawei Matebook 2020 无法加载，也没有任何提示。

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2020 年11 月 8 日 14:00 UTC](https://forum.freemdict.com/t/topic/1251/100 "2020-11-08T14:00:49Z")

</div>

检查下3030端口是否被占用或者试试把代理关了。

---

<div class="post-metadata">

作者： ![yangxiups](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/yangxiups/32/5_2.png) [@yangxiups](https://forum.freemdict.com/u/yangxiups)\
发布日期： [2020 年11 月 9 日 10:56 UTC](https://forum.freemdict.com/t/topic/1251/101 "2020-11-09T10:56:56Z")

</div>

同开代理，一台能用一台不能用，关闭代理后OK。

---

<div class="post-metadata">

作者： ![winter](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/winter/32/18070_2.png) [@winter](https://forum.freemdict.com/u/winter)\
发布日期： [2020 年11 月 10 日 02:09 UTC](https://forum.freemdict.com/t/topic/1251/102 "2020-11-10T02:09:35Z")

</div>

老大，小弟无比佩服你的工具，确实是修改利器，可是说明中的"…支持加载MDD资源文件"，这个该怎么加载呢？ 😃  
难道老大神隐了？多日不曾现踪迹。在chrome中更改后如何直接保存css呢？这一点似乎不如提取单词页面来的方便。 🥰

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2020 年11 月 17 日 16:25 UTC](https://forum.freemdict.com/t/topic/1251/103 "2020-11-17T16:25:35Z")

</div>

直接改 css文件，chrome 会实时更新页面效果。打开 mdx 会默认加载同名的 mdd 文件。

---

<div class="post-metadata">

作者： ![winter](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/winter/32/18070_2.png) [@winter](https://forum.freemdict.com/u/winter)\
发布日期： [2020 年11 月 17 日 23:05 UTC](https://forum.freemdict.com/t/topic/1251/104 "2020-11-17T23:05:17Z")

</div>

> [@last\_idol](#):
>
> 直接改 css文件，chrome 会实时更新页面效果。打开 mdx 会默认加载同名的 mdd 文件。

老大，您终于现身啦，太高兴啦，也考虑到mdd文件会自动加载，但是词典中的图片总是不能正确显示，所以才有此一问，以为自己用的不对。经过多次是实验，似乎对图片格式有要求，png格式不行？

---

<div class="post-metadata">

作者： ![G8tVRaREgbTrUy9xLnhX](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/g8tvraregbtruy9xlnhx/32/9891_2.png) [@G8tVRaREgbTrUy9xLnhX](https://forum.freemdict.com/u/G8tVRaREgbTrUy9xLnhX)\
发布日期： [2021 年3 月 2 日 18:22 UTC](https://forum.freemdict.com/t/topic/1251/105 "2021-03-02T18:22:59Z")

</div>

感谢楼主提供的工具，不过我这里还是要提一个新的需求，希望能考虑一下。楼主这个工具目前仅仅是在只修改CSS的时候有用，但是我经常是要一边改进词典源文件TXT的结构，一边修改CSS。改进词典源文件TXT的结构是因为很多时候词典的源文件结构有错误，或者之前的写法不便于排版，所有我才改进它。这个场景下要使用楼主的工具那就要每次修改txt后编译成mdx，这就非常非常不方便了。所以我提的建议就是，希望楼主增加对mdx源文件的支持。因为它本身就是txt文件，而且结构性非常强，又没有加密，所以支持它比支持mdx容易很多。但是一旦支持txt源文件，那么对我们修改词典机构的同时进行排版来说就太有帮助了！希望楼主考虑一下，谢谢啦！

---

<div class="post-metadata">

作者： ![aliceccc](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/e19b73/32.png) [@aliceccc](https://forum.freemdict.com/u/aliceccc)\
发布日期： [2021 年3 月 8 日 09:38 UTC](https://forum.freemdict.com/t/topic/1251/106 "2021-03-08T09:38:09Z")

</div>

膜拜楼主大大

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2021 年3 月 8 日 10:38 UTC](https://forum.freemdict.com/t/topic/1251/107 "2021-03-08T10:38:13Z")

</div>

会考虑加上，只是文本文件改动任意部份，都需要重新扫描一遍，可能会慢一些。

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2021 年3 月 8 日 10:38 UTC](https://forum.freemdict.com/t/topic/1251/108 "2021-03-08T10:38:40Z")

</div>

不记得这个版本有没有加上对 png 文件的支持了。

---

<div class="post-metadata">

作者： ![fruition](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/fruition/32/51082_2.png) [@fruition](https://forum.freemdict.com/u/fruition)\
发布日期： [2021 年3 月 8 日 11:13 UTC](https://forum.freemdict.com/t/topic/1251/109 "2021-03-08T11:13:36Z")

</div>

png 可以顯示無誤，不能顯示多是轉檔軟件的問題，mdict 和goldendict 也會出問題的，用老馬轉的沒出現過問題

---

<div class="post-metadata">

作者： ![bush0101](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@bush0101](https://forum.freemdict.com/u/bush0101)\
发布日期： [2021 年6 月 1 日 08:56 UTC](https://forum.freemdict.com/t/topic/1251/110 "2021-06-01T08:56:30Z")

</div>

你好，能否重新提供下载链接，原链接失效了，谢谢

---

<div class="post-metadata">

作者： ![free](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/f/c5a1d2/32.png) [@free](https://forum.freemdict.com/u/free)\
发布日期： [2021 年6 月 1 日 09:33 UTC](https://forum.freemdict.com/t/topic/1251/111 "2021-06-01T09:33:15Z")

</div>

把网址lanzous中的s改为x，即lanzoux，就可以正常下载了：[https://www.lanzoux.com/ib5fjsd](https://www.lanzoux.com/ib5fjsd)  
(之前很多蓝奏云lanzous中的s都需要改为x，不然的话，都打不开)

---

<div class="post-metadata">

作者： ![青稚Quentin](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/%E9%9D%92%E7%A8%9Aquentin/32/14413_2.png) [@青稚Quentin](https://forum.freemdict.com/u/%E9%9D%92%E7%A8%9AQuentin)\
发布日期： [2021 年8 月 27 日 00:40 UTC](https://forum.freemdict.com/t/topic/1251/112 "2021-08-27T00:40:36Z")

</div>

我这里连网页都无法访问？ 请问楼主有提供mac版本吗

---

<div class="post-metadata">

作者： ![dictsun](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/d/90db22/32.png) [@dictsun](https://forum.freemdict.com/u/dictsun)\
发布日期： [2021 年8 月 27 日 05:26 UTC](https://forum.freemdict.com/t/topic/1251/113 "2021-08-27T05:26:56Z")

</div>

楼主的两个文档  
[Preview-0.1.8-x86\_64-pc-windows-msvc.zip](https://forum.freemdict.com/uploads/short-url/o22xQ4IGN4zCApfhK6gL9CFO6Bj.zip) (2.7 MB)  
[Preview-0.1.8-x86\_64-apple-darwin.zip](https://forum.freemdict.com/uploads/short-url/9aQ1DK2sOifLKF8ly1BEutz1dfK.zip) (5.4 MB)

---

<div class="post-metadata">

作者： ![青稚Quentin](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/%E9%9D%92%E7%A8%9Aquentin/32/14413_2.png) [@青稚Quentin](https://forum.freemdict.com/u/%E9%9D%92%E7%A8%9AQuentin)\
发布日期： [2021 年8 月 27 日 06:16 UTC](https://forum.freemdict.com/t/topic/1251/114 "2021-08-27T06:16:24Z")

</div>

非常感谢！！

[上一页](https://forum.freemdict.com/t/topic/1251.md?page=4)

[下一页](https://forum.freemdict.com/t/topic/1251.md?page=6)
