标签: href

HREF IP 地址

美好的一天,我有一台计算机服务器A(10.31.5.206)和另一台服务器B(10.31.5.187)。服务器 A 包含在我的工作场所通过 Intranet 共享的文件,而服务器 B 有一个登录页面。通过使用 Firefox,我可以通过在 Firefox 上的 URL 中输入“10.31.5.206/data”来访问这些文件。但是,如果我在服务器 B 上的登录页面中键入相同的链接,则浏览器将以“10.31.5.187/10.31.5.206/data”访问它。这使得它无法访问 10.31.5.206/data 中的文件。我的编码有错误吗?我的 href 编码如下:

    <td width="325"><center><a href="10.31.5.206/data"><input type="image" name="TM's folder" id="TM's folder" src="image/2.png" /></a> 
Run Code Online (Sandbox Code Playgroud)

html php href

2
推荐指数
1
解决办法
9410
查看次数

如何超链接图像

我想为图像添加超链接,但如何href向图像添加标签?

<div class="laptop">
    <img class='report' src="http://testtest/Report1.png"/>
Run Code Online (Sandbox Code Playgroud)

当报告显示时,您可以单击它并转到该站点。

<div class="laptop">
    <img class='report' src="http://testtest/Report1.png"/>
Run Code Online (Sandbox Code Playgroud)
h1{
    font-family: Arial Rounded MT Bold;
    font-size: 33px;
    color: #0F4194;
    float: left;
    margin: 50px 0px 15px 700px;
    
}

.laptop{
  width:1024px;
  height:661px;
  float: center;
  margin-right: -150px;
  background: url('http://mlamannadev.com/Images/Laptop2.png');
  background-repeat: no-repeat;
  background-position: top left;
  background-size: contain;
  width: 1024px;
  z-index:4;
}

.report{
  position:absolute;
  animation:round 16s infinite;
  opacity:0;
  z-index:-1;
  margin-left: auto;
  margin-right: auto;
  display: block;
  
}
@keyframes round{   
  25%{opacity:1;}
  40%{opacity:0;}
} 

img:nth-child(4){animation-delay:0s;}
img:nth-child(3){animation-delay:4s;}
img:nth-child(2){animation-delay:8s;}
img:nth-child(1){animation-delay:12s;}
Run Code Online (Sandbox Code Playgroud)

html image class href

2
推荐指数
1
解决办法
3万
查看次数

Laravel 5.7 带有多个参数的自定义 URL

我遇到这个问题,如果我手动输入它,我需要获取这种 url,localhost:8000/purchaseOrder/3/purchase/1 它可以工作,但是当我让 laravel 自动创建 url 时,它会出错并最终得到localhost:8000/purchaseOrder/$data-%3Eid/payable/$p-%3Eid

这是我的路线

Route::get('/purchaseOrder/{id}/payable/{he}', 'AjaxController@purchaseOrder');
Run Code Online (Sandbox Code Playgroud)

这是我的控制器(到目前为止我想要的只是响应我给出的网址)

function purchaseOrder($id,$he)
{
  echo $id." | ".$he;
}
Run Code Online (Sandbox Code Playgroud)

这是我的观点

<a href="{{ url('purchaseOrder/$data->id/payable/$p->id') }}"><button type="button" class="btn btn-success btn-sm my-1" name="button">Create Purchase Order</button></a><br>
Run Code Online (Sandbox Code Playgroud)

routes href laravel laravel-5.7

2
推荐指数
1
解决办法
358
查看次数

如何在 Html Agility 包中获取重定向 URL

我想从设置的 URL 中解析所有 URL。我找到了以下方法:

 public static List<string> ParseLinks(string urlToCrawl)
    {
        WebClient webClient = new WebClient();

        byte[] data = webClient.DownloadData(urlToCrawl);
        string download = Encoding.ASCII.GetString(data);

        HashSet<string> list = new HashSet<string>();

        var doc = new HtmlDocument();
        doc.LoadHtml(download);
        HtmlNodeCollection nodes = doc.DocumentNode.SelectNodes("//a[@href]");

        foreach (var n in nodes)
        {
            string href = n.Attributes["href"].Value;
            list.Add(GetAbsoluteUrlString(urlToCrawl, href));
        }
        return list.ToList();
    }

    static string GetAbsoluteUrlString(string baseUrl, string url)
    {
        var uri = new Uri(url, UriKind.RelativeOrAbsolute);
        if (!uri.IsAbsoluteUri)
            uri = new Uri(new Uri(baseUrl), uri);
        return uri.ToString();
    }
Run Code Online (Sandbox Code Playgroud)

一切都很好,但在某些网站中,链接通过他们的网站(他们正在重定向)。我有一个链接:https://www.houzz.com/trk/aHR0cHM6Ly9nb2xkbWFuYXJjaGl0ZWN0LmNvbS8/d76eaa05cc284c9f987d1d30948a6295/ue/MjgxNzk3OTg/84045ba5f6a5f8aa2c25d89b4e18 …

c# redirect parsing href html-agility-pack

2
推荐指数
1
解决办法
997
查看次数

如何在 Angular 8 中禁用到 &lt;a href="#" &gt; 的路由?

我正在使用这样的本地参考

<a class="btn-floating btn-large blue" href="#">button</a>
Run Code Online (Sandbox Code Playgroud)

但 Angular 将我重定向到另一个链接 localhost:4200/#

routes href materialize angular

2
推荐指数
1
解决办法
4243
查看次数

如何防止在chrome上向上滚动href ="#"

所以基本上我有

 <a href="#" onClick="return false">Link</a> 
Run Code Online (Sandbox Code Playgroud)

返回false就是这样,当你点击它时它不会向上滚动.这适用于IE和Firefox,但在Chrome中它仍然向上滚动...

你如何防止这种情况发生在Chrome中?

提前致谢

没有勺子

-矩阵

html javascript google-chrome href hyperlink

1
推荐指数
1
解决办法
2030
查看次数

Watin:在List item Tag下引用anchor标签的href属性

我是Watin Testing Tool的新手.我正在尝试自动化我的应用程序.
但是我无法找到输入元素,即具有href属性的锚标签.Anchor标签位于div标签下的List项目下.

请帮忙

anchor watin href

1
推荐指数
1
解决办法
3538
查看次数

在属性href中查找具有特定字符串的所有"A"标记?

            driver.FindElement(By.Name("zipcode")).Clear();
            driver.FindElement(By.Name("zipcode")).SendKeys(zipcode);
            driver.FindElement(By.Name("Go")).Click();

            driver.FindElements(By.TagName("A").  //<---- ?????????
Run Code Online (Sandbox Code Playgroud)

我开始使用一些Selenium API代码.我的目标是在属性href中使用字符串"alertsepy"和sting"sevendwarves"获​​取所有"A"标记,并将所有这些元素返回到数组中,以便我可以进行进一步处理.我启动了代码,但我真的不太确定如何在那里完成所有方法.有谁知道如何使用Selenium进行此类查询.

亲切的问候!

selenium href

1
推荐指数
1
解决办法
6438
查看次数

链接不应在URL中显示#并在其href ="#"时向上滚动

如何点击链接href ="#"在URL中不显示#并且不向上滚动页面?

我在http://www.offroadstudios.com/creative-agency看过它 但是无法了解他们是如何做到的.左侧菜单包含一个href ="#",但它的行为与我要求的方式相同.

html tags href hyperlink

1
推荐指数
1
解决办法
4733
查看次数

Javascript:如何将setAttribute“ href”用于引用另一个域的URL

在我的html代码中,我使用的<a>标签为空,<href>因为一开始不知道url。

假设现在有一个新目标被称为“ www.amazon.de”。现在,我尝试使用javascript更改href:

document.getElementById('linkname').setAttribute("href", "www.amazon.de");
Run Code Online (Sandbox Code Playgroud)

但是我的浏览器仅创建到我域的相对链接,如下所示:

https://www.mydomain.de/www.amazon.de>
Run Code Online (Sandbox Code Playgroud)

(如果我将鼠标悬停在链接上,则会显示此内容)

javascript href setattribute absolute-path

1
推荐指数
1
解决办法
57
查看次数