Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 链接按钮不存在';我不能在ie7/ie8中工作_Html - Fatal编程技术网

Html 链接按钮不存在';我不能在ie7/ie8中工作

Html 链接按钮不存在';我不能在ie7/ie8中工作,html,Html,我有一个按钮,可以将用户带到另一个页面。我可以只使用一个链接,但我希望它看起来像一个按钮。除了IE7和IE8之外,它在所有方面都可以正常工作,但我不知道为什么 <div id="print_version"> <a href="report_print.php?audit=<? echo $audit_id; ?>" target="_blank"> <input type="button"value="Print

我有一个按钮,可以将用户带到另一个页面。我可以只使用一个链接,但我希望它看起来像一个按钮。除了IE7和IE8之外,它在所有方面都可以正常工作,但我不知道为什么

<div id="print_version">
          <a href="report_print.php?audit=<? echo $audit_id; ?>" target="_blank">
          <input type="button"value="Print Report"></a>
</div>


摆脱输入,使用样式化的

你忘了空格吗
input type=“button”value=“Print Report”>
很好地识别了链接,但是空格没有改变。同样,这样做是个坏主意,您可以尝试
,但忘记了关闭输入
将链接设置为按钮样式,忘记输入。
<div id="print_version">
     <a class="btn" href="report_print.php?audit=<?php echo $audit_id; ?>" target="_blank">Print Report</a>
</div>
.btn {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background-color: #F5F5F5;
    background-image: -moz-linear-gradient(center top , #FFFFFF, #E6E6E6);
    background-repeat: repeat-x;
    border-color: #E6E6E6 #E6E6E6 #A2A2A2;
    border-image: none;
    border-radius: 4px 4px 4px 4px;
    border-style: solid;
    border-width: 1px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #333333;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 0;
    padding: 4px 14px;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    vertical-align: middle;
}