Image Margins in CKEditor

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 18:29:09

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/14710084/image-margins-in-ckeditor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!