Filepicker.io Web - Disable Inline Styles

橙三吉。 提交于 2019-12-22 13:45:13

问题


I am having some trouble styling filepicker.io widgets for web, specifically filepicker-dragdrop.

Is there any way to disable the inline styling and replace them with classes? Something like data-fp-disable-styles or perhaps when using data-fp-dropzone-class="..." the inline styling is automatically disabled.

Although you can add classes to the button with the attribute data-fp-button-class, I cannot get rid of the inline styling on the on the dropzone and container div.


回答1:


You can set the data-fp-drag-class and data-fp-class options to set the styling of the dropzone and container div and use the !important flag for any styles that you want to use to override the inline styles.

If you're looking for a more fully customizable solution, we'd recommend using the raw javascript api's to create your own drag pane (https://developers.filepicker.io/docs/web/#widgets-droppane) and/or pick button



来源:https://stackoverflow.com/questions/12913124/filepicker-io-web-disable-inline-styles

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