问题
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