选框标签不工作在窗体webBrowser控件

本文关键字:窗体 webBrowser 控件 工作 标签 | 更新日期: 2023-09-27 18:05:57

我有一个url。我想在我的窗体webBrowser控件显示。在我的html页面(url)多个选框标签。但选框年龄是不工作的网页浏览器控制。它是在正常的浏览器

工作
  private void Form1_Load(object sender, EventArgs e)
        {
           // webBrowser1.ScriptErrorsSuppressed = true;
            webBrowser1.Url =new Uri( @"http://67.205.96.105:8080/cis/");
        }

这是我的url http://67.205.96.105:8080/cis

选框标签不工作在窗体webBrowser控件

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            webBrowser1.Url = new Uri(@"file:///C:/Users/MyUser/Desktop/test.html");
        }
           
    }
}

<!--test.html-->
<!DOCTYPE html>
<html>
<head>
<title>HTML marquee Tag</title>
</head>
<body>
<marquee>This is basic example of marquee</marquee>
<marquee direction="up">The direction of text will be from bottom to top.</marquee>
</body>
</html>

请使用代码并尝试。这个代码工作得很好,我认为问题是与你的html代码。

在IE8中尝试,发现你的页面不支持它,这就是为什么你想编辑你的html代码以兼容IE8。

谢谢,关于