Dzwebs.Net

撰写电脑技术杂文十余年

非常简单的让网页输入框、文本框变成一条线的CSS代码

Admin | 2008-9-30 17:44:02 | 被阅次数 | 12395

温馨提示!

如果未能解决您的问题,请点击搜索;登陆可复制文章,点击登陆

  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文件,双击即可查看效果,经过测试,没啥问题!


该杂文来自: 网页制作杂文

上一篇:大众都在使用的通用的网页文字超级链接颜色示例

下一篇:让网页随机播放多首背景音乐的方法

网站备案号:

网站备案号:滇ICP备11001339号-7

版权属性:

Copyright 2007-2021-forever Inc. all Rights Reserved.

联系方式:

Email:dzwebs@126.com QQ:83539231 访问统计