css照片有如层叠效果的实现方法

所属分类: 网页制作 / CSS 阅读数: 1580
收藏 0 赞 0 分享

如下所示:

显示上面照片效果css

CSS Code复制内容到剪贴板
  1. <!DOCTYPE html>    
  2. <!--headTrap<body></body><head></head><html></html>-->   
  3. <html>    
  4.     <head>    
  5.         <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">    
  7. <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />    
  8. <meta name="apple-mobile-web-app-capable" content="yes">    
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black">    
  10. <meta name="format-detection" content="telephone=no">    
  11.   <title>《放羊和砍柴的》全集</title>    
  12.              
  13. <style>html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.6}body{-webkit-touch-callout:none;font-family:-apple-system-font,"Helvetica Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;background-color:#f3f3f3;line-height:inherit}body.rich_media_empty_extra{background-color:#fff}body.rich_media_empty_extra .rich_media_area_primary:before{display:none}h1,h2,h3,h4,h5,h6{font-weight:400;font-size:16px}*{margin:0;padding:0}a{color:#607fa6;text-decoration:none}.rich_media_inner{font-size:16px;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.rich_media_area_primary{position:relative;padding:20px 15px 15px;background-color:#fff}.rich_media_area_primary:before{content:" ";position:absolute;left:0;top:0;width:100%;height:1px;border-top:1px solid #e5e5e5;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(0.5);transform:scaleY(0.5);top:auto;bottombottom:-2px}.rich_media_area_primary .original_img_wrp{display:inline-block;font-size:0}.rich_media_area_primary .original_img_wrp .tips_global{display:block;margin-top:.5em;font-size:14px;text-align:rightright;width:auto;overflow:hidden;text-overflow:ellipsis;whitewhite-space:nowrap;word-wrap:normal}.rich_media_area_extra{padding:0 15px 0}.rich_media_title{margin-bottom:10px;line-height:1.4;font-weight:400;font-size:24px}.rich_media_meta_list{margin-bottom:18px;line-height:20px;font-size:0}.rich_media_meta_list em{font-style:normal}.rich_media_meta{display:inline-block;vertical-align:middle;margin-right:8px;margin-bottom:10px;font-size:16px}.meta_original_tag{display:inline-block;vertical-align:middle;padding:1px .5em;border:1px solid #9e9e9e;color:#8c8c8c;border-top-left-radius:20% 50%;-moz-border-radius-topleft:20% 50%;-webkit-border-top-left-radius:20% 50%;border-top-rightright-radius:20% 50%;-moz-border-radius-topright:20% 50%;-webkit-border-top-rightright-radius:20% 50%;border-bottom-left-radius:20% 50%;-moz-border-radius-bottomleft:20% 50%;-webkit-border-bottom-left-radius:20% 50%;border-bottom-rightright-radius:20% 50%;-moz-border-radius-bottomright:20% 50%;-webkit-border-bottom-rightright-radius:20% 50%;font-size:15px;line-height:1.1}.meta_enterprise_tag img{width:30px;height:30px!important;display:block;position:relative;margin-top:-3px;border:0}.rich_media_meta_text{color:#8c8c8c}span.rich_media_meta_nickname{display:none}.rich_media_thumb_wrp{margin-bottom:6px}.rich_media_thumb_wrp .original_img_wrp{display:block}.rich_media_thumb{display:block;width:100%}.rich_media_content{overflow:hidden;color:#3e3e3e}.rich_media_content *{max-width:100%!important;box-sizing:border-box!important;-webkit-box-sizing:border-box!important;word-wrap:break-word!important}.rich_media_content p{clear:both;min-height:1em;whitewhite-space:pre-wrap}.rich_media_content em{font-style:italic}.rich_media_content fieldset{min-width:0}.rich_media_content .list-paddingleft-2{padding-left:30px}.rich_media_content blockquote{margin:0;padding-left:10px;border-left:3px solid #dbdbdb}img{height:auto!important}@media(min-device-width:375px) and (max-device-width:667px) and (-webkit-min-device-pixel-ratio:2){.mm_appmsg .rich_media_inner,.mm_appmsg .rich_media_meta,.mm_appmsg .discuss_list,.mm_appmsg .rich_media_extra,.mm_appmsg .title_tips .tips{font-size:17px}.mm_appmsg .meta_original_tag{font-size:15px}}@media(min-device-width:414px) and (max-device-width:736px) and (-webkit-min-device-pixel-ratio:3){.mm_appmsg .rich_media_title{font-size:25px}}@media screen and (min-width:1024px){.rich_media{width:740px;margin-left:auto;margin-right:auto}.rich_media_inner{padding:20px}body{background-color:#fff}}@media screen and (min-width:1025px){body{font-family:"Helvetica Neue",Helvetica,"Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif}.rich_media{position:relative}.rich_media_inner{background-color:#fff;padding-bottom:100px}}.radius_avatar{display:inline-block;background-color:#fff;padding:3px;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;overflow:hidden;vertical-align:middle}.radius_avatar img{display:block;width:100%;height:100%;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;background-color:#eee}.cell{padding:.8em 0;display:block;position:relative}.cell_hd,.cell_bd,.cell_ft{display:table-cell;vertical-align:middle;word-wrap:break-word;word-break:break-all;whitewhite-space:nowrap}.cell_primary{width:2000px;whitewhite-space:normal}.flex_cell{padding:10px 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.flex_cell_primary{width:100%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;box-flex:1;flex:1}.original_tool_area{display:block;padding:.75em 1em 0;-webkit-tap-highlight-color:rgba(0,0,0,0);color:#3e3e3e;border:1px solid #eaeaea;margin:20px 0}.original_tool_area .tips_global{position:relative;padding-bottom:.5em;font-size:15px}.original_tool_area .tips_global:after{content:" ";position:absolute;left:0;bottombottom:0;rightright:0;height:1px;border-bottom:1px solid #dbdbdb;-webkit-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:scaleY(0.5);transform:scaleY(0.5)}.original_tool_area .radius_avatar{width:27px;height:27px;padding:0;margin-right:.5em}.original_tool_area .radius_avatar img{height:100%!important}.original_tool_area .flex_cell_bd{width:auto;overflow:hidden;text-overflow:ellipsis;whitewhite-space:nowrap;word-wrap:normal}.original_tool_area .flex_cell_ft{font-size:14px;color:#8c8c8c;padding-left:1em;whitewhite-space:nowrap}.original_tool_area .icon_access:after{content:" ";display:inline-block;height:8px;width:8px;border-width:1px 1px 0 0;border-color:#cbcad0;border-style:solid;transform:matrix(0.71,0.71,-0.71,0.71,0,0);-ms-transform:matrix(0.71,0.71,-0.71,0.71,0,0);-webkit-transform:matrix(0.71,0.71,-0.71,0.71,0,0);position:relative;top:-2px;top:-1px}.weui_loading{width:20px;height:20px;display:inline-block;vertical-align:middle;-webkit-animation:weuiLoading 1s steps(12,end) infinite;animation:weuiLoading 1s steps(12,end) infinite;background:transparent url(data:image/svg+xml;no-repeat;-webkit-background-size:100%;background-size:100%}@-webkit-keyframes weuiLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg)}}@keyframes weuiLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg)}}.gif_img_wrp{display:inline-block;font-size:0;position:relative;font-weight:400;font-style:normal;text-indent:0;text-shadow:none 1px 1px rgba(0,0,0,0.5)}.gif_img_wrp img{min-height:120px;min-width:120px;vertical-align:top}.gif_img_tips{background:rgba(0,0,0,0.6)!important;filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000',endcolorstr = '#99000000');border-top-left-radius:1.2em 50%;-moz-border-radius-topleft:1.2em 50%;-webkit-border-top-left-radius:1.2em 50%;border-top-rightright-radius:1.2em 50%;-moz-border-radius-topright:1.2em 50%;-webkit-border-top-rightright-radius:1.2em 50%;border-bottom-left-radius:1.2em 50%;-moz-border-radius-bottomleft:1.2em 50%;-webkit-border-bottom-left-radius:1.2em 50%;border-bottom-rightright-radius:1.2em 50%;-moz-border-radius-bottomright:1.2em 50%;-webkit-border-bottom-rightright-radius:1.2em 50%;line-height:2.3;padding:0 1em;font-size:11px;color:#fff;text-align:center;position:absolute;bottombottom:10px;left:10px}.gif_img_tips i{vertical-align:middle;margin:-0.2em .73em 0 -2px}.gif_img_play_arrow{display:inline-block;width:0;height:0;border-width:8px;border-style:dashed;border-color:transparent;border-right-width:0;border-left-color:#fff;border-left-style:solid;border-width:5px 0 5px 8px}.gif_img_loading{width:14px;height:14px}i.gif_img_loading{margin-left:-4px}.rich_media_global_msg{position:fixed;top:0;left:0;rightright:0;padding:1em 35px 1em 15px;z-index:1;background-color:#c6e0f8;color:#8c8c8c;font-size:13px}.rich_media_global_msg .icon_closed{position:absolute;rightright:15px;top:50%;margin-top:-5px;line-height:300px;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);background:transparent url(/mmbizwap/zh_CN/htmledition/images/icon/appmsg/icon_appmsg_msg_closed_sprite.2x.png) no-repeat 0 0;width:11px;height:11px;vertical-align:middle;display:inline-block;-webkit-background-size:100% auto;background-size:100% auto}.rich_media_global_msg .icon_closed:active{background-position:0 -17px}.preview_appmsg .rich_media_title{margin-top:1.9em}@media screen and (min-width:1024px){.rich_media_global_msg{position:relative;margin:0 20px}.preview_appmsg .rich_media_title{margin-top:0}}</style>    
  14.      
  15.      
  16.           
  17.      
  18.  </head>    
  19.     <body id="activity-detail" class="zh_CN mm_appmsg" ontouchstart="">    
  20.      
  21.      
  22.  <div id="js_article" class="rich_media">    
  23.      
  24. <div class="rich_media_inner">    
  25.                         <div id="page-content">    
  26.                 <div id="img-content" class="rich_media_area_primary">    
  27.      
  28.      
  29.      
  30.                     <div class="rich_media_content " id="js_content">    
  31.                              
  32.      
  33.                              
  34.                         <p><br  /></p><p><br  /></p><section label="Powered by 135editor.com" style="max-width: 100%; font-family: 微软雅黑; box-sizing: border-box !important; word-wrap: break-word !important;"><section class="" style="max-width: 100%; box-sizing: border-box; word-wrap: break-word !important;"><section class="" data-tools="135geovindu编辑器" data-id="87847" style="max-width: 100%; box-sizing: border-box; word-wrap: break-word !important;"><section style="margin: 10px auto; max-width: 100%; box-sizing: border-box; text-align: center; word-wrap: break-word !important;"><section style="padding: 3px; max-width: 100%; box-sizing: border-box; border-width: 1px; border-style: solid; border-color: rgb(78, 130, 247); display: inline-block; word-wrap: break-word !important;"><section style="max-width: 100%; box-sizing: border-box; border-width: 1px; border-style: dashed; border-color: rgb(78, 130, 247); word-wrap: break-word !important;"><p class="" data-original-title="" title="" style="padding: 0.1em 0.4em; max-width: 100%; min-height: 1em; white-space: normal; box-sizing: border-box !important; word-wrap: break-word !important;">1</p></section></section></section></section><section class="" style="max-width: 100%; box-sizing: border-box; word-wrap: break-word !important;"><section class="" data-tools="135geovindu编辑器" data-id="2363" style="max-width: 100%; box-sizing: border-box; word-wrap: break-word !important;"><section data-width="95%" style="margin-top: 3em; margin-bottom: 3em; margin-left: 20px; max-width: 100%; box-sizing: border-box; border-width: initial; border-style: none; border-color: rgb(162, 161, 160); width: 636.5px; text-align: center; color: inherit; word-wrap: break-word !important;"><section data-width="90%" style="margin-right: auto; margin-left: auto; max-width: 100%; box-sizing: border-box; width: 572.844px; height: 304px; color: inherit; word-wrap: break-word !important;"><section data-width="90%" style="max-width: 100%; box-sizing: border-box; width: 515.547px; height: 20em; border-width: 1px; border-style: solid; border-color: rgb(162, 161, 160); transform: rotate3d(0, 0, 1, 2deg); box-shadow: rgb(204, 204, 200) 1px 1px 1px; color: inherit; word-wrap: break-word !important;"></section><section data-width="90%" style="margin-top: -21em; margin-left: -1em; max-width: 100%; box-sizing: border-box; width: 515.547px; height: 20em; border-width: 1px; border-style: solid; border-color: rgb(162, 161, 160); box-shadow: rgb(204, 204, 200) 1px 1px 1px; transform: rotate3d(0, 0, 1, -3deg); color: inherit; background-color: rgb(254, 254, 254); word-wrap: break-word !important;"><section class="" data-width="90%" style="margin: 15px; max-width: 100%; box-sizing: border-box; width: 462.188px; height: 270.297px; color: inherit; background-image: url("http://mmbiz.qpic.cn/mmbiz_jpg/cfxQzmUp8b1XwcyzR3WLk2AbHVH9D8GxibnzaMicqDgib2M9Zgnb020U18DaNrQLgI3T16VPDV9SOTEUznfOJlvkQ/0?wx_fmt=jpeg"); background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; word-wrap: break-word !important;"></section><p style="max-width: 100%; min-height: 1em; white-space: normal; box-sizing: border-box !important; word-wrap: break-word !important;"><br style="max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;"  /></p></section></section></section></section><p style="max-width: 100%; min-height: 1em; white-space: normal; text-align: center; box-sizing: border-box !important; word-wrap: break-word !important;"><br style="max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;"  /></p></section><p style="max-width: 100%; min-height: 1em; white-space: normal; text-align: justify; text-indent: 2em; box-sizing: border-box !important; word-wrap: break-word !important;"><span style="max-width: 100%; color: rgb(89, 89, 89); font-size: 17px; text-indent: 2em; line-height: inherit; box-sizing: border-box !important; word-wrap: break-word !important;">你是砍柴的,他是放羊的,你和他聊了一天,他的羊吃饱了,你的柴呢?砍柴的陪不起放羊的…</span><br style="max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;"  /></p><p style="max-width: 100%; min-height: 1em; white-space: normal; text-align: right; text-indent: 2em; box-sizing: border-box !important; word-wrap: break-word !important;"><span style="max-width: 100%; font-size: 17px; color: rgb(192, 0, 0); box-sizing: border-box !important; word-wrap: break-word !important;">——请放弃你的无效社交!</span></p><p style="max-width: 100%; min-height: 1em; white-space: normal; text-align: right; text-indent: 2em; box-sizing: border-box !important; word-wrap: break-word !important;"><br style="max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;"  /></p><section class="" data-tools="135geovindu编辑器" data-id="87847" style="max-width: 100%; box-sizing: border-box; word-wrap: break-word !important;"><section style="margin: 10px auto; max-width: 100%; box-sizing: border-box; text-align: center; word-wrap: break-word !important;"><section style="padding: 3px; max-width: 100%; box-sizing: border-box; border-width: 1px; border-style: solid; border-color: rgb(78, 130, 247); display: inline-block; word-wrap: break-word !important;"><section style="max-width: 100%; box-sizing: border-box; border-width: 1px; border-style: dashed; border-color: rgb(78, 130, 247); word-wrap: break-word !important;"><p class="" data-original-title="" title="" style="padding: 0.1em 0.4em; max-width: 100%; min-height: 1em; white-space: normal; box-sizing: border-box !important; word-wrap: break-word !important;">2</p></section></section></section></section><section class="" style="max-width: 100%; box-sizing: border-box; word-wrap: break-word !important;"><section class="" data-tools="135geovindu编辑器" data-id="2363" style="max-width: 100%; box-sizing: border-box; word-wrap: break-word !important;"><section data-width="95%" style="margin-top: 3em; margin-bottom: 3em; margin-left: 20px; max-width: 100%; box-sizing: border-box; border-width: initial; border-style: none; border-color: rgb(162, 161, 160); width: 636.5px; text-align: center; color: inherit; word-wrap: break-word !important;"><section data-width="90%" style="margin-right: auto; margin-left: auto; max-width: 100%; box-sizing: border-box; width: 572.844px; height: 304px; color: inherit; word-wrap: break-word !important;"><section data-width="90%" style="max-width: 100%; box-sizing: border-box; width: 515.547px; height: 20em; border-width: 1px; border-style: solid; border-color: rgb(162, 161, 160); transform: rotate3d(0, 0, 1, 2deg); box-shadow: rgb(204, 204, 200) 1px 1px 1px; color: inherit; word-wrap: break-word !important;"></section><section data-width="90%" style="margin-top: -21em; margin-left: -1em; max-width: 100%; box-sizing: border-box; width: 515.547px; height: 20em; border-width: 1px; border-style: solid; border-color: rgb(162, 161, 160); box-shadow: rgb(204, 204, 200) 1px 1px 1px; transform: rotate3d(0, 0, 1, -3deg); color: inherit; background-color: rgb(254, 254, 254); word-wrap: break-word !important;"><section class="" data-width="90%" style="margin: 15px; max-width: 100%; box-sizing: border-box; width: 462.188px; height: 270.297px; color: inherit; background-image: url("http://mmbiz.qpic.cn/mmbiz_png/cfxQzmUp8b1XwcyzR3WLk2AbHVH9D8Gxp5EvziaOib8J2pnwoc48lIjV7WZicOSQxA3L2Wr7XU1obyIiceicyDh1KrQ/0?wx_fmt=png"); background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; word-wrap: break-word !important;"></section><p style="max-width: 100%; min-height: 1em; white-space: normal; box-sizing: border-box !important; word-wrap: break-word !important;"><br style="max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;"  /></p></section></section></section></section><p style="max-width: 100%; min-height: 1em; white-space: normal; text-align: center; box-sizing: border-box !important; word-wrap: break-word !important;"><br style="max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;"  /></p></section><p style="max-width: 100%; min-height: 1em; white-space: normal; text-align: justify; text-indent: 2em; box-sizing: border-box !important; word-wrap: break-word !important;"><span style="max-width: 100%; color: rgb(89, 89, 89); font-size: 17px; text-indent: 2em; line-height: inherit; box-sizing: border-box !important; word-wrap: break-word !important;">你是砍柴的,他是放羊的,你和他聊了一天,如是你学会了放羊技巧,原来羊是这么放的,他学会了砍柴技能,原来柴要这样砍</span><span style="max-width: 100%; color: rgb(89, 89, 89); font-size: 17px; text-indent: 2em; line-height: inherit; box-sizing: border-box !important; word-wrap: break-word !important;">。</span><br style="max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;"  /></p><p style="max-width: 100%; min-height: 1em; white-space: normal; text-align: right; text-indent: 2em; box-sizing: border-box !important; word-wrap: break-word !important;"><span style="max-width: 100%; font-size: 17px; color: rgb(192, 0, 0); box-sizing: border-box !important; word-wrap: break-word !important;">——三人行必有我师,永远保持空杯的状态。</span></p><p style="max-width: 100%; min-height: 1em; white-space: normal; text-align: right; text-indent: 2em; box-sizing: border-box !important; word-wrap: break-word !important;"><br style="max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;"  /></p><section class="" data-tools="135geovindu编辑器" data-id="87847" style="max-width: 100%; box-sizing: border-box; word-wrap: break-word !important;"><section style="margin: 10px auto; max-width: 100%; box-sizing: border-box; text-align: center; word-wrap: break-word !important;"><section style="padding: 3px; max-width: 100%; box-sizing: border-box; border-width: 1px; border-style: solid; border-color: rgb(78, 130, 247); display: inline-block; word-wrap: break-word !important;"><section style="max-width: 100%; box-sizing: border-box; border-width: 1px; border-style: dashed; border-color: rgb(78, 130, 247); word-wrap: break-word !important;"><p class="" data-original-title="" title="" style="padding: 0.1em 0.4em; max-width: 100%; min-height: 1em; white-space: normal; box-sizing: border-box !important; word-wrap: break-word !important;">3</p></section></section></section></section><section class="" style="max-width: 100%; box-sizing: border-box; word-wrap: break-word !important;"><section class="" data-tools="135geovindu编辑器" data-id="2363" style="max-width: 100%; box-sizing: border-box; word-wrap: break-word !important;"><section data-width="95%" style="margin-top: 3em; margin-bottom: 3em; margin-left: 20px; max-width: 100%; box-sizing: border-box; border-width: initial; border-style: none; border-color: rgb(162, 161, 160); width: 636.5px; text-align: center; color: inherit; word-wrap: break-word !important;"><section data-width="90%" style="margin-right: auto; margin-left: auto; max-width: 100%; box-sizing: border-box; width: 572.844px; height: 304px; color: inherit; word-wrap: break-word !important;"><section data-width="90%" style="max-width: 100%; box-sizing: border-box; width: 515.547px; height: 20em; border-width: 1px; border-style: solid; border-color: rgb(162, 161, 160); transform: rotate3d(0, 0, 1, 2deg); box-shadow: rgb(204, 204, 200) 1px 1px 1px; color: inherit; word-wrap: break-word !important;"></section><section data-width="90%" style="margin-top: -21em; margin-left: -1em; max-width: 100%; box-sizing: border-box; width: 515.547px; height: 20em; border-width: 1px; border-style: solid; border-color: rgb(162, 161, 160); box-shadow: rgb(204, 204, 200) 1px 1px 1px; transform: rotate3d(0, 0, 1, -3deg); color: inherit; background-color: rgb(254, 254, 254); word-wrap: break-word !important;"><section class="" data-width="90%" style="margin: 15px; max-width: 100%; box-sizing: border-box; width: 462.188px; height: 270.297px; color: inherit; background-image: url("http://mmbiz.qpic.cn/mmbiz_jpg/cfxQzmUp8b1XwcyzR3WLk2AbHVH9D8GxIib772biaUYiadwY2S7bl3mnDR3FRcw2xuVltPNoaTEelsXQfpyictYgiaA/0?wx_fmt=jpeg"); background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; word-wrap: break-word !important;"></section><p style="max-width: 100%; min-height: 1em; white-space: normal; box-sizing: border-box !important; word-wrap: break-word !important;"><br style="max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;"  /></p></section></section></section></section><p style="max-width: 100%; min-height: 1em; white-space: normal; text-align: center; box-sizing: border-box !important; word-wrap: break-word !important;"><br style="max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;"  /></p></section><p style="max-width: 100%; min-height: 1em; white-space: normal; text-align: justify; text-indent: 2em; box-sizing: border-box !important; word-wrap: break-word !important;"><span style="max-width: 100%; color: rgb(89, 89, 89); font-size: 17px; text-indent: 2em; line-height: inherit; box-sizing: border-box !important; word-wrap: break-word !important;">你是砍柴的,他是放羊的,你和他聊了一天,他决定把他的羊跟你的柴交换,于是你有了羊,他也有了柴</span><span style="max-width: 100%; color: rgb(89, 89, 89); font-size: 17px; text-indent: 2em; line-height: inherit; box-sizing: border-box !important; word-wrap: break-word !important;">。</span><br style="max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;"  /></p><p style="max-width: 100%; min-height: 1em; white-space: normal; text-align: right; text-indent: 2em; box-sizing: border-box !important; word-wrap: break-word !important;"><span style="max-width: 100%; font-size: 17px; color: rgb(192, 0, 0); box-sizing
更多精彩内容其他人还在看

CSS入门教程:计算CSS盒模型宽和高

 出处:当我们布局一个网页的时候,经常会遇到这样的一种情况,那就是最终网页成型的宽度或是高度会超出我们预先的计算,其实就就是所谓的CSS的盒模型造成的。 #test{margin:10px;padding:10px;width:100px;height:100px;}
收藏 0 赞 0 分享

在IE流览器中正确显示PNG透明图片

  png图片有很好的品质。阴影效果也不会有杂边,很流畅。如果插入网页的话可以给网站内容增色不少!更重要的是在不增加图片容量大小的情况下提高了页面的图片的质量。对于有复杂背景,如:在有颜色过度背景上插入不规则边框的图片带来极大很便利!   但目前IE中对于插入
收藏 0 赞 0 分享

CSS教程:DIV底部放置文字

  css对文字的布局上没有靠容器底部对齐的参数,目前使用的一个不错的方法也比较好.就是用position属性来解决,看下面的代码,用position的相对和绝对定位功能也轻松的实现了,文字靠近div低部对齐,并且靠近的距离还可以精确到像素,自己可以调节,是不是很不错呢?
收藏 0 赞 0 分享

如何用CSS让文字居于div的底部

  这个问题是别人提出的,因为css对文字的布局上没有靠容器底部对齐的参数,(或许有但是我没有发现)不过目前我使用的一个不错的方法也比较好.就是用position属性来解决,看下面的代码,我用position的相对和绝对定位功能也轻松的实现了,文字靠近div低部对齐,并且靠近
收藏 0 赞 0 分享

从A页面连接到B页面后并直接把B页面的隐藏层显示

  这个效果实现的是,在B页面里有两个层,一个显示层,我们暂定名c层,一个是隐藏层,我们暂定名d层,单独进B页面的时候,c层显示,d层隐藏,然而从A页面连接到B页面的时候,则是让d层显示,c层隐藏,我觉得这个效果对网页设计者以后会有很大帮助,现在把代码发出来,
收藏 0 赞 0 分享

CSS样式表定义标签li前面样式

定义LI前面的小点样式 view plaincopy to clipboardprint? 语法: list-style-type : disc | circle | square | decimal | lower-roman | upper-roman | lowe
收藏 0 赞 0 分享

符合标准的div css制作的弹出菜单

本文介绍了五款符合标准的div css制作的弹出菜单,而且不含有js的. NO.1最基本的:二级dropdown弹出菜单 <!DOCTYPE html PUB
收藏 0 赞 0 分享

CSS实现在文章每段后面加入带连接的隐藏文字

代码主要理解3个参数:createElement、createTextNode、appendChild。这3个js参数分别是创建元素、创建字符、追加节点。代码原理:循环页面段落标签<p>,创建连接元素<a>,创建要显示的连接字符,用SetAttribute
收藏 0 赞 0 分享

CSS:浏览器特定选择器介绍

当你想在一个浏览器里改变样式而不像在其他浏览器中改变时,这些选择器很有用。 IE6以下 *html{} IE 7 以下 *:first-child html {} * html {} 只对IE 7 *:first-child html {} 只对IE 7
收藏 0 赞 0 分享

WEB标准学习,认识两种网页声明的含义

即网页标准推出来以后,我们时常会看到两种不同的网页的声明,一个是Dhtml,一个是Xhtml。如下所示: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "ht
收藏 0 赞 0 分享
查看更多