<div class="htmlarea"> <textarea id="runcode43418"> <title>只显示下划线的文本框,像文字一样的按钮</title> <style type="text/css"><!-- body{ background-color:#daeeff; /* 页面背景色 */ } form{ margin:0px; padding:0px; font:14px; } input{ font:14px Arial; } .txt{ color:#005aa7; border-bottom:1px solid #005aa7; /* 下划线效果 */ border-top:0px; border-left:0px; border-right:0px; background-color:transparent; /* 背景色透明 */ } .btn{ background-color:transparent; /* 背景色透明 */ border:0px; /*border:0px solid #005aa7;边框取消 */ cursor:pointer; } --></style> <style type="text/css" bogus="1"> body{ background-color:#daeeff; /* 页面背景色 */ } form{ margin:0px; padding:0px; font:14px; } input{ font:14px Arial; } .txt{ color:#005aa7; border-bottom:1px solid #005aa7; /* 下划线效果 */ border-top:0px; border-left:0px; border-right:0px; background-color:transparent; /* 背景色透明 */ } .btn{ background-color:transparent; /* 背景色透明 */ border:0px; /*border:0px solid #005aa7;边框取消 */ cursor:pointer; }</style> <div> 用户名: <input type="text" name="name" id="name" class="txt"> 密 码: <input type="password" name="pwd" id="pwd" class="txt"> <input type="submit" name="btnSubmit" id="btnCancel" value="重置" class="btn"> <input type="submit" name="btnSubmit" id="btnSubmit" value="提交" class="btn"> </div> </textarea><br><input onclick="runEx('runcode43418')" type="button" value="运行代码"> <input onclick="doCopy('runcode43418')" type="button" value="复制代码"> <input onclick="doSave(runcode43418)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>