相关疑难解决方法(0)

锚链接内的按钮在Firefox中有效但在Internet Explorer中无效吗?

除了我的链接外,我网站上的其他所有内容似乎都与所有浏览器兼容.它们出现在页面上,但它们不起作用.我的链接代码如下 -

<td bgcolor="#ffffff" height="370" valign="top" width="165">
    <p>
        <a href="sc3.html">
            <button style="width:120;height:25">Super Chem #3</button>
        </a> 
        <a href="91hollywood.html">
            <button style="width:120;height:25">91 Hollywood</button>
        </a> 
        <a href="sbubba.html">
            <button style="width:120;height:25">Super Bubba</button>
        </a> 
        <a href="afgoohash.html">
            <button style="width:120;height:25">Afgoo Hash</button>
        </a> 
        <a href="superjack.html">
            <button style="width:120;height:25">Super Jack</button>
        </a> 
        <a href="sog.html">
            <button style="width:120;height:25">Sugar OG</button>
        </a> 
        <a href="91pk91.html">
            <button style="width:120;height:25">91 x PK</button>
        </a> 
        <a href="jedi1.html">
            <button style="width:120;height:25">Jedi</button>
        </a>
    </p>
    <p>&nbsp;</p>
    <a href="http://indynile99.blogspot.com">
        <button style="width:120;height:25">Blog</button>
    </a>
    <p>&nbsp;</p>
</td>
Run Code Online (Sandbox Code Playgroud)

html firefox internet-explorer cross-browser button

72
推荐指数
8
解决办法
10万
查看次数

两个按钮并排

我试图让两个超链接按钮并排.我看到了这个问题,但无法使答案奏效.以下是我尝试将按钮并排的两次尝试.第一次尝试有效,但超链接到错误的位置.第二个超链接正确但不是并排.基于这个问题的第三个没有链接任何地方,但我认为这与使用链接而不是Javascript:submitRequests().

<!DOCTYPE html>
<html>
    <body>

    <head>
        <style>
            .container {
                overflow: hidden;
            }

            button {
               float: left;
            }

            button:first-child {
                margin-right: 5px;
            }
        </style>
    </head>

    <form action="http://trinker.github.io/qdap_dev/paste2.html" target="_blank">
        <input type="submit" value="paste2">
    </form>
    <form action="http://trinker.github.io/qdap_dev/colSplit.html" target="_blank">
        <input type="submit" value="colSplit">
    </form>

    Attempt 1
    <form action="http://trinker.github.io/qdap_dev/paste2.html" target="_blank">
        <input type="submit" value="paste2">
            <form action="http://trinker.github.io/qdap_dev/colSplit.html" target="_blank">
                <input type="submit" value="colSplit">
            </form>
    </form>

    Attempt 2   
    <form action="http://trinker.github.io/qdap_dev/paste2.html" target="_blank">
        <input type="submit" value="paste2">
    </form><form action="http://trinker.github.io/qdap_dev/colSplit.html" target="_blank">
        <input type="submit" value="colSplit">
    </form>

    Attempt 3
    <div class="container">
        <button …
Run Code Online (Sandbox Code Playgroud)

css html5

7
推荐指数
1
解决办法
5万
查看次数

像按钮一样的href链接

是否有任何清洁的方法可以建立常规链接:

<a href="[8]">Click here to read more...</a>
Run Code Online (Sandbox Code Playgroud)

就像按钮一样

<button id="[8]">Click here to read more...</button>
Run Code Online (Sandbox Code Playgroud)

谢谢 !

html href button hyperlink

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

MVC按钮单击在新窗口中打开

嗨,我需要在新的窗口中单击此按钮打开我的视图,但是它将在同一窗口中打开。这是我使用的语法。

<button  id="btnPrintReport" onclick="location.href='@Url.Action("LoadReports", "DashBoard", new { target="_blank" })'" >Print</button>
Run Code Online (Sandbox Code Playgroud)

我错过了什么吗?谢谢。

asp.net-mvc razor

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