首页 > 网站 > WEB开发 > 正文

CSS3 实现厉害的文字和输入框组合效果

2024-04-27 14:33:15
字体:
来源:转载
供稿:网友
CSS3 实现厉害的文字和输入框组合效果

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

Html代码收藏代码
  1. <html>
  2. <head>
  3. <metahttp-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:01px1pxrgba(255,255,255,0.8)inset,1px1px3pxrgba(0,0,0,0.2),0004pxrgba(188,188,188,0.5);}
  10. .pop-body{padding:10px;}
  11. .pop-body-title{float:left;border-radius:10px;width:100%;border:1pxsolid#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-closea{text-decoration:none;color:black;font-weight:bold;padding-left:5px;padding-right:5px;}
  15. .title-closea: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:1pxsolid#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:all0.3slinear0s;
  32. background:-moz-linear-gradient(centertop,#FEDA710%,#FEBB4A100%)repeatscroll00transparent;
  33. border-color:#F5B74E#E5A73E#D6982F;
  34. border-radius:4px4px4px4px;
  35. border-style:solid;
  36. border-width:1px;
  37. box-shadow:01px1px#D3D3D3,01px0#FEE395inset;
  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:5px130px00px;
  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:01px0#fedd9b;
  56. -webkit-transition:all0.3slinear;
  57. -moz-transition:all0.3slinear;
  58. -o-transition:all0.3slinear;
  59. transition:all0.3slinear;
  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:-1px0px1pxrgba(255,255,255,0.4),1px1px1pxrgba(0,0,0,0.5)inset;
  77. -moz-box-shadow:-1px0px1pxrgba(255,255,255,0.4),1px1px1pxrgba(0,0,0,0.5)inset;
  78. box-shadow:-1px0px1pxrgba(255,255,255,0.4),1px1px1pxrgba(0,0,0,0.5)inset;
  79. -webkit-transition:height0.3slinear;
  80. -moz-transition:height0.3slinear;
  81. -o-transition:height0.3slinear;
  82. transition:height0.3slinear;
  83. }
  84. .a-btn-icon-right{
  85. position:absolute;
  86. right:0px;
  87. top:0px;
  88. height:41px;
  89. width:130px;
  90. border-left:1pxsolid#f5b74e;
  91. -webkit-box-shadow:1px0px1pxrgba(255,255,255,0.4)inset;
  92. -moz-box-shadow:1px0px1pxrgba(255,255,255,0.4)inset;
  93. box-shadow:1px0px1pxrgba(255,255,255,0.4)inset;
  94. }
  95. .a-btn:hover{
  96. height:65px;
  97. -webkit-box-shadow:0px1px1pxrgba(255,255,255,0.8)inset,1px1px5pxrgba(0,0,0,0.4);
  98. -moz-box-shadow:0px1px1pxrgba(255,255,255,0.8)inset,1px1px5pxrgba(0,0,0,0.4);
  99. box-shadow:0px1px1pxrgba(255,255,255,0.8)inset,1px1px5pxrgba(0,0,0,0.4);
  100. }
  101. .a-btn:hover.a-btn-text{
  102. text-shadow:1px1px1pxrgba(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-textinput{
  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-unitinput{
  143. float:left;
  144. position:relative;
  145. z-index:99;
  146. }
  147. </style>
  148. </head>
  149. <body>
  150. <br/>
  151. <divstyle="float:left;width:820px;height:200px;position:relative;left:100px;">
  152. <divclass="pop-bg"style="float:left;position:relative;width:820px;height:200px;"></div>
  153. <divclass="pop-body"style="float:left;text-align:left;position:relative;top:-200px;width:98%;">
  154. <!--头部-->
  155. <divclass="pop-body-title">
  156. <divclass="title-text">标题</div>
  157. <divclass="title-close"><ahref="#">关闭</a></div>
  158. </div>
  159. <!--内容部分-->
  160. <divclass="pop-body-context">
  161. <divclass="pop-body-c-title">
  162. <aclass="a-btn"href="#">
  163. <spanclass="a-btn-text">栏目名称</span>
  164. <spanclass="a-btn-icon-right"><divclass="a-t-i-r-t">请输入</div></span>
  165. <spanclass="a-btn-slide-text"><inputsize="24"/></span>
  166. </a>
  167. <aclass="a-btn"href="#">
  168. <spanclass="a-btn-text">中文名称</span>
  169. <spanclass="a-btn-icon-right"><divclass="a-t-i-r-t">请输入</div></span>
  170. <spanclass="a-btn-slide-text"><inputsize="24"/></span>
  171. </a>
  172. <aclass="a-btn"href="#">
  173. <spanclass="a-btn-text">英文名称</span>
  174. <spanclass="a-btn-icon-right"><divclass="a-t-i-r-t">请输入</div></span>
  175. <spanclass="a-btn-slide-text"><inputsize="24"/></span>
  176. </a>
  177. <aclass="a-btn"href="#">
  178. <spanclass="a-btn-text">适配类型</span>
  179. <spanclass="a-btn-icon-right"><divclass="a-t-i-r-t">请输入</div></span>
  180. <spanclass="a-btn-slide-text"><inputsize="24"/></span>
  181. </a>
  182. </div>
  183. </div>
  184. </div>
  185. </body>
  186. </html>


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表