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.
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