在哪里可以设置WMD菜单图标图像的路径?
我已将 WMD 用于
或者我应该将菜单图标图像放置在哪里?我通常将其放置在 /公共/图像
。
I've used WMD for <textarea>
, but it seems I don't get the path of where I've to set the path of the image icon. And how could I edit its CSS code? Though I tried it with Firebug, I didn't get it . =(
Or where do I've to place the menu icon image? I normally placed it under /public/images
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
图像的路径必须在 wmd.css 文件中设置,位于 .wmd-按钮描述符。该路径必须相对于 css 文件的位置。
例如,如果您的网站层次结构如下所示,并且您已将“wmd.css”文件存储在“css”文件夹中,并将“wmd-buttons.png”文件存储在“images”文件夹中。
您必须将路径更改为以下之一:
The path to images has to be set in the wmd.css file, in the .wmd-button descriptor. The path has to be relative to the location of the css file.
For instance, if your web site hierarchy looks like this, and provided you've stored the "wmd.css" file in the "css" folder and the "wmd-buttons.png" file in the "images" folder.
You'd have to change the path to one of the following:
图标位于 wmd-buttons.png 文件中。
您可以在 derobins 版本的 wmd 的 images 文件夹中找到它。
The icons are in wmd-buttons.png file.
You can find it in images folder of derobins version of wmd.