最近在忙着弄网站,学到了不少效果,这又是一个厉害的

 

  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  4. <title>发送微博页面</title>
  5. <style>
  6. html{padding:0px;margin:0px;}
  7. body{padding:0px;margin:0px;text-align:center;}
  8. /** 弹出层背景 **/
  9. .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);}
  10. .pop-body{padding:10px;}
  11. .pop-body-title{float:left;border-radius: 10px;width:100%;border:1px solid #4096ee;}
  12. .title-text{float:left;color: black; font-size: 22px;padding-left:10px;}
  13. .title-close{float:right;cursor:pointer;padding-right:15px;padding-top:3px;}
  14. .title-close a{text-decoration: none;color:black;font-weight:bold;padding-left:5px;padding-right:5px;}
  15. .title-close a:hover{text-decoration: none;color:red;display: inline-block;background:#c0d3e7;border-radius: 5px;padding-left:5px;padding-right:5px;}
  16. /** 内容部份 **/
  17. .pop-body-context{
  18. border-radius: 10px;width:100%;border:1px solid #4096ee;
  19. float:left;
  20. margin-top:15px;
  21. }
  22. .pop-body-c-title{
  23. float:left;
  24. }
  25. .a-btn{
  26. -moz-border-bottom-colors: none;
  27. -moz-border-image: none;
  28. -moz-border-left-colors: none;
  29. -moz-border-right-colors: none;
  30. -moz-border-top-colors: none;
  31. -moz-transition: all 0.3s linear 0s;
  32. background: -moz-linear-gradient(center top , #FEDA71 0%, #FEBB4A 100%) repeat scroll 0 0 transparent;
  33. border-color: #F5B74E #E5A73E #D6982F;
  34. border-radius: 4px 4px 4px 4px;
  35. border-style: solid;
  36. border-width: 1px;
  37. box-shadow: 0 1px 1px #D3D3D3, 0 1px 0 #FEE395 inset;
  38. display: inline-block;
  39. float: left;
  40. height: 34px;
  41. margin: 10px;
  42. margin-right: 3px;
  43. margin-left: 4px;
  44. overflow: hidden;
  45. padding: 5px 130px 0 0px;
  46. position: relative;
  47. text-decoration: none;
  48. }
  49. .a-btn-text{
  50. padding-top:5px;
  51. display:block;
  52. font-size:14px;
  53. white-space:nowrap;
  54. color:#996633;
  55. text-shadow:0 1px 0 #fedd9b;
  56. -webkit-transition:all 0.3s linear;
  57. -moz-transition:all 0.3s linear;
  58. -o-transition:all 0.3s linear;
  59. transition:all 0.3s linear;
  60. font-weight:bold;
  61. }
  62. .a-btn-slide-text{
  63. position:absolute;
  64. top:35px;
  65. left:0px;
  66. width:auto;
  67. height:0px;
  68. background:#fff;
  69. color:#996633;
  70. font-size:13px;
  71. white-space:nowrap;
  72. font-family:Georgia, serif;
  73. font-style:italic;
  74. overflow:hidden;
  75. line-height:40px;
  76. -webkit-box-shadow:-1px 0px 1px rgba(255,255,255,0.4), 1px 1px 1px rgba(0,0,0,0.5) inset;
  77. -moz-box-shadow:-1px 0px 1px rgba(255,255,255,0.4), 1px 1px 1px rgba(0,0,0,0.5) inset;
  78. box-shadow:-1px 0px 1px rgba(255,255,255,0.4), 1px 1px 1px rgba(0,0,0,0.5) inset;
  79. -webkit-transition:height 0.3s linear;
  80. -moz-transition:height 0.3s linear;
  81. -o-transition:height 0.3s linear;
  82. transition:height 0.3s linear;
  83. }
  84. .a-btn-icon-right{
  85. position:absolute;
  86. right:0px;
  87. top:0px;
  88. height:41px;
  89. width:130px;
  90. border-left:1px solid #f5b74e;
  91. -webkit-box-shadow:1px 0px 1px rgba(255,255,255,0.4) inset;
  92. -moz-box-shadow:1px 0px 1px rgba(255,255,255,0.4) inset;
  93. box-shadow:1px 0px 1px rgba(255,255,255,0.4) inset;
  94. }
  95. .a-btn:hover{
  96. height:65px;
  97. -webkit-box-shadow:0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 5px rgba(0,0,0,0.4);
  98. -moz-box-shadow:0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 5px rgba(0,0,0,0.4);
  99. box-shadow:0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 5px rgba(0,0,0,0.4);
  100. }
  101. .a-btn:hover .a-btn-text{
  102. text-shadow:1px 1px 1px rgba(0,0,0,0.2);
  103. color:#fff;
  104. }
  105. .a-btn:hover .a-btn-slide-text{
  106. height:40px;
  107. }
  108. .a-btn-slide-text input{
  109. float:left;
  110. margin-top:4px;
  111. margin-left:2px;
  112. }
  113. .pop-body-c-text{
  114. padding-left:3px;
  115. }
  116. .pop-body-c-textarea{
  117. width:780px;
  118. height:100px;
  119. }
  120. .pop-body-row-u{
  121. padding-top:5px;
  122. padding-left:10px;
  123. }
  124. .a-t-i-r-t{
  125. font-size:14px;height:20px;overflow:hidden;padding-top:8px;text-align:center;
  126. }
  127. .pop-body-images-l{
  128. padding:10px;
  129. }
  130. .pop-body-ims-panel{
  131. padding:10px;
  132. }
  133. .pop-b-i-i-img{
  134. border-radius:8px;
  135. float:left;
  136. position:relative;
  137. left:-20px;
  138. }
  139. .pop-b-i-i-unit{
  140. float:left;
  141. }
  142. .pop-b-i-i-unit input{
  143. float:left;
  144. position:relative;
  145. z-index:99;
  146. }
  147. </style>
  148. </head>
  149. <body>
  150. <br />
  151. <div style="float:left;width:820px;height:200px;position:relative;left:100px;">
  152. <div class="pop-bg" style="float:left;position:relative;width:820px;height:200px;"></div>
  153. <div class="pop-body" style="float:left;text-align:left;position:relative;top:-200px;width:98%;">
  154. <!-- 头部 -->
  155. <div class="pop-body-title">
  156. <div class="title-text">标题</div>
  157. <div class="title-close"><a href="#">关闭</a></div>
  158. </div>
  159. <!-- 内容部分 -->
  160. <div class="pop-body-context">
  161. <div class="pop-body-c-title">
  162. <a class="a-btn" href="#">
  163. <span class="a-btn-text">栏目名称</span>
  164. <span class="a-btn-icon-right"><div class="a-t-i-r-t">请输入</div></span>
  165. <span class="a-btn-slide-text"><input size="24"/></span>
  166. </a>
  167. <a class="a-btn" href="#">
  168. <span class="a-btn-text">中文名称</span>
  169. <span class="a-btn-icon-right"><div class="a-t-i-r-t" >请输入</div></span>
  170. <span class="a-btn-slide-text"><input size="24"/></span>
  171. </a>
  172. <a class="a-btn" href="#">
  173. <span class="a-btn-text">英文名称</span>
  174. <span class="a-btn-icon-right"><div class="a-t-i-r-t" >请输入</div></span>
  175. <span class="a-btn-slide-text"><input size="24"/></span>
  176. </a>
  177. <a class="a-btn" href="#">
  178. <span class="a-btn-text">适配类型</span>
  179. <span class="a-btn-icon-right"><div class="a-t-i-r-t" >请输入</div></span>
  180. <span class="a-btn-slide-text"><input size="24"/></span>
  181. </a>
  182. </div>
  183. </div>
  184. </div>
  185. </body>
  186. </html>

CSS3 实现厉害的文字和输入框组合效果的更多相关文章

  1. html5配合css3实现带提示文字的输入框(摆脱js)

    来源:互联网 作者:佚名 时间:03-08 11:41:53 [大 中 小] webkit特有的一个css,可以控制里面的文字样式,配合css3的动画效果和伪类,我们就可以很容易做出一个带动画的输入框 ...

  2. input 标签实现带提示文字的输入框

    方法一:html5配合css3实现带提示文字的输入框(摆脱js): webkit特有的一个css,可以控制里面的文字样式,配合css3的动画效果和伪类,我们就可以很容易做出一个带动画的输入框,在系统登 ...

  3. css3购物网站商品文字提示实例

    css3购物网站商品文字提示实例先来看效果图:<ignore_js_op> 当鼠标划过图片时,有着泰迪熊黑色长方形的背景就会出现.来看HTML5+CSS3代码: <!DOCTYPE ...

  4. CSS3下的渐变文字效果实现

    如下,第一种方法已实践 一.方法一:借助mask-image属性 可以狠狠地点击这里:CSS3下的渐变文字效果方法一demo 如果您手头上的浏览器是Chrome或是Safari,则您可以在demo页面 ...

  5. 小tip:CSS3下的渐变文字效果实现——张鑫旭

    by zhangxinxu from http://www.zhangxinxu.com本文地址:http://www.zhangxinxu.com/wordpress/?p=1601 一.方法一:借 ...

  6. CSS3实现水位充满文字特效

    CSS3实现水位充满文字特效是一款既是Loading特效也是文字特效,Loading动画开始时,文字中的水位渐渐上升,为了模拟水位上升的真实效果,水面还会波浪浮动,当Loading动画结束时,文字中的 ...

  7. css3软键盘不盖住输入框的方法

    css3软键盘不盖住输入框的方法 弹出软键盘的时候 最外面的容器高度就发生了变化 要减去软键盘高度了<pre>var bodyheight bodyheight = $('body').h ...

  8. Android自定义View 画弧形,文字,并增加动画效果

    一个简单的Android自定义View的demo,画弧形,文字,开启一个多线程更新ui界面,在子线程更新ui是不允许的,但是View提供了方法,让我们来了解下吧. 1.封装一个抽象的View类   B ...

  9. JS 文本输入框放大镜效果

    JS 文本输入框放大镜效果 今天下午研究了下 "文本输入框放大镜效果" 当然KISSY官网也有这种组件 请看kissy demo 其实这种效果 对于很多童鞋来说 应该并不陌生!我今 ...

随机推荐

  1. 关于listview,scrollview显示模糊边缘的设置

    朋友们有时可能在开发中遇到这样的莫名其妙的问题,listview或scrollview滑动时上边和下边会出现两条模糊的边缘,有时会影响到我们app的视觉效果,我们怎么去掉这两条模糊的边缘呢?很简单,一 ...

  2. PHP出现Notice警告怎么办

    如下所示,出现Notice警告 程序并没有大错,只是一些变量没有定义,你在代码的第一行加入这一句就可以了:error_reporting(E_ALL ^ E_NOTICE); 恢复正常了.

  3. 定义查询构建器IFeatureLayerDefinition

    在宗地出图,需要实现,只显示某一户人的地块.在ArcMap里,有个定义查询,可只显示过滤后的要素. 在代码中,也比较好实现,使用IFeatureLayerDefinition接口即可. IFeatur ...

  4. 符号三角形_hdu_2510(深搜).java

    http://acm.hdu.edu.cn/showproblem.php?pid=2510 Time Limit: 2000/1000 MS (Java/Others)    Memory Limi ...

  5. Negative seek offset的解决方法

    ZIP文件解压的时候出现错误:‍Negative seek offset 原因是把rar文件直接改为ZIP. 必须要 重新压缩为ZIP文件 不能直接修改文件名.

  6. wap、app移动端页面常用html标签汇总

    1.section 将内容组织到精确的语义块,表示页面的一部分. 2.article article表示网页的一个文章.故事. 3.header (1)用在整页的页头 (2)section或者arti ...

  7. 〖Linux〗Debian 7.1.0 Wheezy使用ltib报错的解决办法

    报错内容: scue@Link:/home/work/ltib$ ./ltib Processing platform: Phytec board with the NXP LPC32XX SoC = ...

  8. 19-spring学习-springMVC环境配置

    新建一共环境,添加spring支持,就可以开发springMVC了. 既然是springMVC,就必须为其定义相关配置. 1,springMVC所有配置都需要在applicationContext.x ...

  9. Java反射机制及Method.invoke详解

    JAVA反射机制 JAVA反射机制是在运行状态中,对于任意一个类,都能够知道这个类的所有属性和方法:对于任意一个对象,都能够调用它的任意一个方法:这种动态获取的信息以及动态调用对象的方法的功能称为ja ...

  10. 数据库选型之MySQL(固态硬盘)

    刘勇    Email: lyssym@sina.com 本博客记录作者在工作与研究中所经历的点滴,一方面给自己的工作与生活留下印记,另一方面若是能对大家有所帮助,则幸甚至哉矣! 简介 鉴于高频中心库 ...