简体   繁体   English

VB.NET:Webbrowser控件无法正确显示本地网页

[英]VB.NET: Webbrowser control unable to show local webpage properly

I'm building an application in which the data from the database will be shown through a webbrowser control, built in html table. 我正在构建一个应用程序,其中来自数据库的数据将通过内置在html表中的webbrowser控件显示。 The purpose of using this is to allow multiple lines in the datarow and html-based formatting as well. 使用此功能的目的是允许数据行和基于html的格式中的多行。

The webpage I have built to use in webbrowser control is working fine on a normal browser (IE, Chrome, FireFox). 我构建用于webbrowser控件的网页在普通浏览器(IE,Chrome,FireFox)上运行良好。 But it does not work when used inside webbrowser control. 但是当在Webbrowser控件中使用时,它不起作用。 My webpage is using jquery, css and some script work to highlight selected rows, freeze top row, etc. This file is auto-generated by my code and is kept inside the exe directory. 我的网页正在使用jquery,css和一些脚本来突出显示所选行,冻结顶部行等。此文件由我的代码自动生成,并保存在exe目录中。

Can someone guide me how to enable this webpage to be used inside webbrowser control. 有人可以指导我如何使该网页在webbrowser控件中使用。

The link to html files is: source files html文件的链接是: 源文件

Thanks in advance. 提前致谢。 Faraz. 法拉兹。

Solved the problem. 解决了问题。 There was an incompatibility with the reset.css file in my code. 我的代码中的reset.css文件不兼容。

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

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