CSS功能还蛮强大的,用来修饰页面布局、控件外观等,非常有效果!
请看下文:
代码开始!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>文本框变成一条线的CSS代码</title><style type="text/css"><!--.TextLine1 { border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: none; border-right-style: none; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: #000000; border-bottom-color: #000000; border-left-color: #000000;}--></style></head><body>
<input name="MyTextfield" type="text" class="TextLine1">
</body></html>
!代码结束
将以上代码保存成为HTML文件,双击即可查看效果,经过测试,没啥问题!
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18