vue改变iframe内部样式
时间: 2023-08-25 21:14:00 浏览: 201
要改变Vue中的iframe内部样式,可以通过以下步骤实现:
1. 首先,获取iframe元素并监听其加载完毕的事件。可以使用Vue的mounted钩子函数来实现这一步骤。在mounted函数中,通过querySelector方法选择iframe元素,并使用attachEvent或者onload方法来监听iframe的加载完毕事件。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *2* [iframe+vue修改滚动条样式](https://blog.csdn.net/weixin_44364001/article/details/121224980)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *3* [如何修改iframe里面元素样式](https://blog.csdn.net/qq_42877655/article/details/107101561)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文