简体   繁体   English

如何在仪表板上预览我的网页?

[英]How do I preview my web page on my dashboard?

I am creating a dashboard with the AdminLTE template, and I have a list section in which I can change the colors of the different sections of my web page.我正在使用 AdminLTE 模板创建一个仪表板,我有一个列表部分,我可以在其中更改网页不同部分的颜色。

What I would like to know is if there is a way to generate a preview of my web so that the administrator user of the dashboard can see the changes there.我想知道的是,是否有一种方法可以生成我的 Web 预览,以便仪表板的管理员用户可以看到那里的更改。

I think it should not be easy, but I would like to know if there are different ways to achieve that, or if there is a plugin that is helpful.我认为这并不容易,但我想知道是否有不同的方法来实现这一目标,或者是否有一个有用的插件。

Currently my project is done in HTML, Javascript and PHP目前我的项目是用 HTML、Javascript 和 PHP 完成的

You can use an iframe to show the preview of your website in the admin dashboard.您可以使用iframe在管理仪表板中显示您网站的预览。 Just add an iframe tag inside the dashboard panel like this,只需像这样在仪表板面板中添加一个iframe标签,

<iframe src="https://www.your_website.com"></iframe>

Tip : To deal with browsers that do not support , add a text between the opening tag and the closing tag.提示:要处理不支持 的浏览器,请在开始标记和结束标记之间添加文本。

Tip : Use CSS to style the (even to include scrollbars).提示:使用 CSS 设置样式(甚至包括滚动条)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM