buy-button-js
buy-button-js copied to clipboard
How to apply CSS class on an iframe?
I have two questions.
- I was looking through the docs and also searching through the github issues for some directions / guidance on adding styles to the
iframe
. I am familiar with pattern:
options: {
product: {
templates: {
....
},
classes:{
....
},
styles: {
....
},
}
}
This is how I have been applying styles within my iframe. But how do I apply styles on the actual iframe?
- Also I am noticing that there's a
style
attribute on the iframestyle="width: 100%; overflow: hidden; border: none; height: 730px;"
-- is there a way that I can control those styles?
I am trying to do the same thing in 2023. Seems like the only way is manually.