+ -
当前位置:首页 → 问答吧 → 文本框打印问题

文本框打印问题

时间:2011-10-07

来源:互联网

有没有人做过打印的,怎么消除文本框的边框啊??
我现在打印是用的js代码,IE的控件!

作者: jienqiuqiu   发布时间: 2011-10-07

帮顶。

作者: huangchenliang   发布时间: 2011-10-07

无法实现,只能变通解决。
1:本文框换成<span></span>或<label></label>,但是这样就不能输入东西了
2:在生成页面时就把文本框边框去掉
HTML code

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">
    .txt{
        border:0px
    }
    </style>
</head>

<body>
    <center>
    <form action="">
        在我后面输入东西:<input type="text" size="25" value="" class="txt" /><br /><br />
    </form>
    </center>
</body>
</html>



缺点是找不到文本框的位置了
3:文本框只显示最下面的框边
HTML code

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">
    .txt{
        border:0px;
        border-bottom:1px black solid
    }
    </style>
</head>

<body>
    <center>
    <form action="">
        在我后面输入东西:<input type="text" size="25" value="" class="txt" /><br /><br />
    </form>
    </center>
</body>
</html>


作者: niuniu20008   发布时间: 2011-10-07