CSS3 实现厉害的文字和输入框组合效果
最近在忙着弄网站,学到了不少效果,这又是一个厉害的
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <title>发送微博页面</title>
- <style>
- html{padding:0px;margin:0px;}
- body{padding:0px;margin:0px;text-align:center;}
- /** 弹出层背景 **/
- .pop-bg{filter:alpha(opacity=10); -moz-opacity:0.1; -khtml-opacity: 0.1; opacity: 0.1;border-radius: 15px;box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) inset, 1px 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(188, 188, 188, 0.5);}
- .pop-body{padding:10px;}
- .pop-body-title{float:left;border-radius: 10px;width:100%;border:1px solid #4096ee;}
- .title-text{float:left;color: black; font-size: 22px;padding-left:10px;}
- .title-close{float:right;cursor:pointer;padding-right:15px;padding-top:3px;}
- .title-close a{text-decoration: none;color:black;font-weight:bold;padding-left:5px;padding-right:5px;}
- .title-close a:hover{text-decoration: none;color:red;display: inline-block;background:#c0d3e7;border-radius: 5px;padding-left:5px;padding-right:5px;}
- /** 内容部份 **/
- .pop-body-context{
- border-radius: 10px;width:100%;border:1px solid #4096ee;
- float:left;
- margin-top:15px;
- }
- .pop-body-c-title{
- float:left;
- }
- .a-btn{
- -moz-border-bottom-colors: none;
- -moz-border-image: none;
- -moz-border-left-colors: none;
- -moz-border-right-colors: none;
- -moz-border-top-colors: none;
- -moz-transition: all 0.3s linear 0s;
- background: -moz-linear-gradient(center top , #FEDA71 0%, #FEBB4A 100%) repeat scroll 0 0 transparent;
- border-color: #F5B74E #E5A73E #D6982F;
- border-radius: 4px 4px 4px 4px;
- border-style: solid;
- border-width: 1px;
- box-shadow: 0 1px 1px #D3D3D3, 0 1px 0 #FEE395 inset;
- display: inline-block;
- float: left;
- height: 34px;
- margin: 10px;
- margin-right: 3px;
- margin-left: 4px;
- overflow: hidden;
- padding: 5px 130px 0 0px;
- position: relative;
- text-decoration: none;
- }
- .a-btn-text{
- padding-top:5px;
- display:block;
- font-size:14px;
- white-space:nowrap;
- color:#996633;
- text-shadow:0 1px 0 #fedd9b;
- -webkit-transition:all 0.3s linear;
- -moz-transition:all 0.3s linear;
- -o-transition:all 0.3s linear;
- transition:all 0.3s linear;
- font-weight:bold;
- }
- .a-btn-slide-text{
- position:absolute;
- top:35px;
- left:0px;
- width:auto;
- height:0px;
- background:#fff;
- color:#996633;
- font-size:13px;
- white-space:nowrap;
- font-family:Georgia, serif;
- font-style:italic;
- overflow:hidden;
- line-height:40px;
- -webkit-box-shadow:-1px 0px 1px rgba(255,255,255,0.4), 1px 1px 1px rgba(0,0,0,0.5) inset;
- -moz-box-shadow:-1px 0px 1px rgba(255,255,255,0.4), 1px 1px 1px rgba(0,0,0,0.5) inset;
- box-shadow:-1px 0px 1px rgba(255,255,255,0.4), 1px 1px 1px rgba(0,0,0,0.5) inset;
- -webkit-transition:height 0.3s linear;
- -moz-transition:height 0.3s linear;
- -o-transition:height 0.3s linear;
- transition:height 0.3s linear;
- }
- .a-btn-icon-right{
- position:absolute;
- right:0px;
- top:0px;
- height:41px;
- width:130px;
- border-left:1px solid #f5b74e;
- -webkit-box-shadow:1px 0px 1px rgba(255,255,255,0.4) inset;
- -moz-box-shadow:1px 0px 1px rgba(255,255,255,0.4) inset;
- box-shadow:1px 0px 1px rgba(255,255,255,0.4) inset;
- }
- .a-btn:hover{
- height:65px;
- -webkit-box-shadow:0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 5px rgba(0,0,0,0.4);
- -moz-box-shadow:0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 5px rgba(0,0,0,0.4);
- box-shadow:0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 5px rgba(0,0,0,0.4);
- }
- .a-btn:hover .a-btn-text{
- text-shadow:1px 1px 1px rgba(0,0,0,0.2);
- color:#fff;
- }
- .a-btn:hover .a-btn-slide-text{
- height:40px;
- }
- .a-btn-slide-text input{
- float:left;
- margin-top:4px;
- margin-left:2px;
- }
- .pop-body-c-text{
- padding-left:3px;
- }
- .pop-body-c-textarea{
- width:780px;
- height:100px;
- }
- .pop-body-row-u{
- padding-top:5px;
- padding-left:10px;
- }
- .a-t-i-r-t{
- font-size:14px;height:20px;overflow:hidden;padding-top:8px;text-align:center;
- }
- .pop-body-images-l{
- padding:10px;
- }
- .pop-body-ims-panel{
- padding:10px;
- }
- .pop-b-i-i-img{
- border-radius:8px;
- float:left;
- position:relative;
- left:-20px;
- }
- .pop-b-i-i-unit{
- float:left;
- }
- .pop-b-i-i-unit input{
- float:left;
- position:relative;
- z-index:99;
- }
- </style>
- </head>
- <body>
- <br />
- <div style="float:left;width:820px;height:200px;position:relative;left:100px;">
- <div class="pop-bg" style="float:left;position:relative;width:820px;height:200px;"></div>
- <div class="pop-body" style="float:left;text-align:left;position:relative;top:-200px;width:98%;">
- <!-- 头部 -->
- <div class="pop-body-title">
- <div class="title-text">标题</div>
- <div class="title-close"><a href="#">关闭</a></div>
- </div>
- <!-- 内容部分 -->
- <div class="pop-body-context">
- <div class="pop-body-c-title">
- <a class="a-btn" href="#">
- <span class="a-btn-text">栏目名称</span>
- <span class="a-btn-icon-right"><div class="a-t-i-r-t">请输入</div></span>
- <span class="a-btn-slide-text"><input size="24"/></span>
- </a>
- <a class="a-btn" href="#">
- <span class="a-btn-text">中文名称</span>
- <span class="a-btn-icon-right"><div class="a-t-i-r-t" >请输入</div></span>
- <span class="a-btn-slide-text"><input size="24"/></span>
- </a>
- <a class="a-btn" href="#">
- <span class="a-btn-text">英文名称</span>
- <span class="a-btn-icon-right"><div class="a-t-i-r-t" >请输入</div></span>
- <span class="a-btn-slide-text"><input size="24"/></span>
- </a>
- <a class="a-btn" href="#">
- <span class="a-btn-text">适配类型</span>
- <span class="a-btn-icon-right"><div class="a-t-i-r-t" >请输入</div></span>
- <span class="a-btn-slide-text"><input size="24"/></span>
- </a>
- </div>
- </div>
- </div>
- </body>
- </html>
CSS3 实现厉害的文字和输入框组合效果的更多相关文章
- html5配合css3实现带提示文字的输入框(摆脱js)
来源:互联网 作者:佚名 时间:03-08 11:41:53 [大 中 小] webkit特有的一个css,可以控制里面的文字样式,配合css3的动画效果和伪类,我们就可以很容易做出一个带动画的输入框 ...
- input 标签实现带提示文字的输入框
方法一:html5配合css3实现带提示文字的输入框(摆脱js): webkit特有的一个css,可以控制里面的文字样式,配合css3的动画效果和伪类,我们就可以很容易做出一个带动画的输入框,在系统登 ...
- css3购物网站商品文字提示实例
css3购物网站商品文字提示实例先来看效果图:<ignore_js_op> 当鼠标划过图片时,有着泰迪熊黑色长方形的背景就会出现.来看HTML5+CSS3代码: <!DOCTYPE ...
- CSS3下的渐变文字效果实现
如下,第一种方法已实践 一.方法一:借助mask-image属性 可以狠狠地点击这里:CSS3下的渐变文字效果方法一demo 如果您手头上的浏览器是Chrome或是Safari,则您可以在demo页面 ...
- 小tip:CSS3下的渐变文字效果实现——张鑫旭
by zhangxinxu from http://www.zhangxinxu.com本文地址:http://www.zhangxinxu.com/wordpress/?p=1601 一.方法一:借 ...
- CSS3实现水位充满文字特效
CSS3实现水位充满文字特效是一款既是Loading特效也是文字特效,Loading动画开始时,文字中的水位渐渐上升,为了模拟水位上升的真实效果,水面还会波浪浮动,当Loading动画结束时,文字中的 ...
- css3软键盘不盖住输入框的方法
css3软键盘不盖住输入框的方法 弹出软键盘的时候 最外面的容器高度就发生了变化 要减去软键盘高度了<pre>var bodyheight bodyheight = $('body').h ...
- Android自定义View 画弧形,文字,并增加动画效果
一个简单的Android自定义View的demo,画弧形,文字,开启一个多线程更新ui界面,在子线程更新ui是不允许的,但是View提供了方法,让我们来了解下吧. 1.封装一个抽象的View类 B ...
- JS 文本输入框放大镜效果
JS 文本输入框放大镜效果 今天下午研究了下 "文本输入框放大镜效果" 当然KISSY官网也有这种组件 请看kissy demo 其实这种效果 对于很多童鞋来说 应该并不陌生!我今 ...
随机推荐
- python分号使用
一:python分号使用 每一条语句最后个加个分号:这是c,oc,java,php等语言中不可缺少的部分,但是对于python,分号是可加,可不加的 如:不加分号代码 >>> cla ...
- Unity3D Android播放视频
http://blog.csdn.net/awnuxcvbn/article/details/17719789 using UnityEngine; using System.Collections; ...
- JDK中枚举的底层实现
前提 上一篇文章复习介绍了JDK中注解的底层实现,跟注解一样比较常用,但是底层实现比较神秘的还有枚举类型.趁着国庆假期的最后两天,把JDK中枚举的底层实现也进行一次探究. 通过例子查找本质 在探究JD ...
- 〖Android〗CM10.2编译错误解决
错误1: hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp: In function 'int android::hd ...
- HBase源代码分析之HRegionServer上MemStore的flush处理流程(一)
在<HBase源代码分析之HRegion上MemStore的flsuh流程(一)>.<HBase源代码分析之HRegion上MemStore的flsuh流程(二)>等文中.我们 ...
- CentOS连接网络注意事项
连接网络,系统中这两个服务需要启动 可以看到右上角网络连接成功了
- C#调取java接口
1. public class APIRequest { //public static string commonUrl = @"http://192.168.2.186 ...
- 设置linux中tcp默认的20秒connect超时时间(转)
无论你用任何语言或者是网络库,你都可以设置网络操作的超时时间,特别是connect.read.write的超时时间. 你可以在代码中把超时时间设置任意大小值,但是connect方法会有一点特殊. co ...
- 从P1到P7——我在淘宝这7年 - 子柳撰写
http://kb.cnblogs.com/page/132752/来自博客园的整理版本,作者是子柳,博客地址:http://blog.sina.com.cn/calvinzhaoc (一) 2011 ...
- 大比速:remoting、WCF(http)、WCF(tcp)、WCF(RESTful)、asp.net core(RESTful) .net core 控制台程序使用依赖注入(Autofac)
大比速:remoting.WCF(http).WCF(tcp).WCF(RESTful).asp.net core(RESTful) 近来在考虑一个服务选型,dotnet提供了众多的远程服务形式.在只 ...