CKEditor中的图像边距 [英] Image Margins in CKEditor

查看:290
本文介绍了CKEditor中的图像边距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

图片属性对话框具有 HSpace VSpace 设置。当我转到高级选项卡时,我可以看到它实际上是设置边缘风格。我想要能够单独设置每个边距。例如,右对齐的图像将具有左边缘和下边缘,但不是顶部或右边。

The Image properties dialog has HSpace and VSpace settings. When I go to the advanced tab, I can see that it's actually setting the margin styles. I want to be able to set each margin individually. For example, a right-aligned image would have a left and bottom margin, but not top or right. Is there a way to allow for setting each of the four margins individually?

推荐答案

在首选的内联样式中使用CSS。您可以创建自己的样式,并使用CK的样式表将它们应用到您的图像。请注意,CK有一个单独的样式表为编辑器本身以及一个为编辑器窗格的内容。

Using CSS in preferred over inline styles. You can create your own styles and apply them to your image using CK's stylesheets. Note that CK has a separate stylehsheet for the editor itself as well as one for the contents of the editor pane.

这篇关于CKEditor中的图像边距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆