input的背景会随着文字移动,在ie6下面的解决办法
来源:互联网 发布:bluehost 单独域名续费 编辑:程序博客网 时间:2024/05/16 02:26
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表单元素的一些问题</title>
<style>
input{margin:0;padding:0;} /*input的背景会随着文字移动,在ie6下面*/
.text{width:300px; height:40px; border:1px solid blue; background:url(sun.jpg) 0 center no-repeat #FFC;}
.box{width:300px; margin-top:50px; height:30px;line-height:30px; border:1px solid blue; background:url(sun.jpg) 0 center no-repeat #FFC;}
.box input{width:300px; height:30px;border:none; background:none;} /*input本身有个白色的背景*/
</style>
</head>
<body>
<input type="text" name="" class="text"/>
<div class="box">
<input type="text" name=""/>
</div>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表单元素的一些问题</title>
<style>
input{margin:0;padding:0;} /*input的背景会随着文字移动,在ie6下面*/
.text{width:300px; height:40px; border:1px solid blue; background:url(sun.jpg) 0 center no-repeat #FFC;}
.box{width:300px; margin-top:50px; height:30px;line-height:30px; border:1px solid blue; background:url(sun.jpg) 0 center no-repeat #FFC;}
.box input{width:300px; height:30px;border:none; background:none;} /*input本身有个白色的背景*/
</style>
</head>
<body>
<input type="text" name="" class="text"/>
<div class="box">
<input type="text" name=""/>
</div>
</body>
</html>
0 0
- input的背景会随着文字移动,在ie6下面的解决办法
- IE6注释会造成文字溢出的解决办法
- 阴影背景随着文字的宽度自适应
- 让背景在文字的后面移动
- 在IE6,7下输入类型的表单控件输入文字的时候,背景图片会跟着一块移动
- 在IE6、ie7下input选择框与文字对齐 和ie更高版本无法一致的解决办法
- cocos2d-x在IOS7下面文字显示异常的解决办法
- cocos2d-x在IOS7下面文字显示异常的解决办法
- cocos2d-x在IOS7下面文字显示异常的解决办法
- cocos2d-x在IOS7下面文字显示异常的解决办法
- cocos2d-x在IOS7下面文字显示异常的解决办法
- 兼容ie6的背景透明文字不透明
- 会移动的文字(Marquee)
- 制作会移动的文字
- 会移动的文字(Marquee)
- 会移动的文字(Marquee)
- 会移动的文字(Marquee)
- 会移动的文字(Marquee)
- Qt图形视图框架(一)
- CentOS 6.4 安装mysql 5.5 rpm 的libaio问题的解决
- 维基oi 线段覆盖 3027 序列dp
- Restlet - 使用Restlet自身组件Application/Component的开发实例
- Windows Phone 主题资源
- input的背景会随着文字移动,在ie6下面的解决办法
- linux 下 进程和线程的区别
- 一站式SCI投稿大全(感谢pennhmp116版主的整理)
- 再谈分数求和:求最大公约数——老吴憨算法和辗转相除法
- 项目进度【20140330】
- HTML5-认识篇
- 基础加强- 注解(Annotation)
- IOS 基于APNS消息推送原理与实现(JAVA后台)
- 关于Tomcat搭建服务器需要80端口问题的解决方案以及80端口被NT KERNEL & SYSTEM ,pid4占用解决方法