HTML5技术

腾讯ISUX网页前端代码分析 - 怡然城南(2)

字号+ 作者:H5之家 来源:H5之家 2017-05-11 09:00 我要评论( )

.post-area-frame { margin : 40px auto 0 ;} #post-area { width : 100% ; overflow : hidden ;} #post-area .masonry-post { position : relative ; z-index : 2 ; overflow : hidden ; -webkit-box-sizing : bor

.post-area-frame { margin: 40px auto 0; } #post-area { width: 100%; overflow: hidden; } #post-area .masonry-post { position: relative; z-index: 2; overflow: hidden; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; margin: 0 15px 30px; width: 100%; background: #fff; float: left; width:calc(25% - 30px); width:-webkit-calc(25% - 30px); -webkit-transition: all .3s ease; -moz-transition: all .3s ease; transition: all .3s ease; } #post-area .masonry-post .type-post { overflow: hidden; } #post-area .masonry-post .entry-subtitle { display: none; } #post-area .masonry-post:hover { -webkit-box-shadow: 0px 0px 15px #ccc; -moz-box-shadow: 0px 0px 15px #ccc; box-shadow: 0px 0px 15px #ccc; } #post-area .masonry-post .isux-image { overflow: hidden; background: #aaa; } #post-area .masonry-post .isux-image .open-single-frame { display: block; padding-top: 53%; position: relative; } #post-area .masonry-post .isux-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; } #post-area .masonry-post .isux-category,.latestone .post-cate { position: relative; float: right; } #post-area .masonry-post .isux-category { height: 40px; margin-bottom: -8px; margin-right: 12px; } #post-area .masonry-post .isux-category span,.latestone .post-cate span { float: left; overflow: hidden; margin: 0 3px; width: 38px; height: 38px; line-height: 38px; border: 1px solid #e6e6e6; -webkit-border-radius: 40px; border-radius: 40px; color: #ccc; text-align: center; font-size: 16px; font-weight: 100; } /*#post-area .masonry-post .isux-category span:hover { opacity: 0.7; } */ #post-area .masonry-post .isux-category .navlist-sub:before { padding-right: 20px; } /*#post-area .masonry-post .isux-category .cate-vd,.latestone .post-cate .cate-vd:before { border-color: #ff4085; color: #ff4085; }*/ #post-area .masonry-post .isux-category span:before,.latestone .post-cate span:before { display: block; width: 40px; } #post-area .masonry-post .isux-category .cate-vd:before,.latestone .post-cate .cate-vd:before { content: "D"; } /*#post-area .masonry-post .isux-category .cate-id,.latestone .post-cate .cate-id { border-color: #ffa900; color: #ffa900; }*/ #post-area .masonry-post .isux-category .cate-id:before,.latestone .post-cate .cate-id:before { content: "D"; } /*#post-area .masonry-post .isux-category .cate-fd,.latestone .post-cate .cate-fd { border-color: #32b5d7; color: #32b5d7; }*/ #post-area .masonry-post .isux-category .cate-fd:before,.latestone .post-cate .cate-fd:before { content: "E"; } /*#post-area .masonry-post .isux-category .cate-ur,.latestone .post-cate .cate-ur { border-color: #9abc1c; color: #9abc1c; }*/ #post-area .masonry-post .isux-category .cate-ur:before,.latestone .post-cate .cate-ur:before { content: "R"; } /*#post-area .masonry-post .isux-category .cate-ux,.latestone .post-cate .cate-ux { border-color: #a866ae; color: #a866ae; }*/ #post-area .masonry-post .isux-category .cate-ux:before,.latestone .post-cate .cate-ux:before{ content: "T"; } #post-area .masonry-post .isux-category:after { clear: both; display: table; height: 0; content: ""; line-height: 0; } #post-area .masonry-post h2 { height: 50px; font-size: 30px; padding: 0 20px; } #post-area .masonry-post h2 a { display: inline-block; overflow: hidden; box-sizing: border-box; width: 100%; height: 50px; color: #000; vertical-align: top; text-overflow: ellipsis; white-space: nowrap; font-weight: normal; font-size: 0.20rem; line-height: 50px; } #post-area .masonry-post h2 a:hover { color: #626262; } #post-area .masonry-post .info { position: relative; padding: 0 20px; overflow: hidden; } #post-area .masonry-post .author,#post-area .masonry-post .isux-date { height: 40px; line-height: 40px; } #post-area .masonry-post .author:after,#post-area .masonry-post .isux-date:after { clear: both; display: table; height: 0; content: ""; line-height: 0; } #post-area .masonry-post .author { float: left; display: block; text-align: left; } #post-area .masonry-post .author img { float: left; width: 40px; height: 40px; border-radius: 20px; } #post-area .masonry-post .author .username { float: left; overflow: hidden; margin-left:10px; height: 40px; max-width: 87px; color: #737373; vertical-align: top; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 40px; } #post-area .masonry-post .isux-date { float: left; overflow: hidden; margin-left: 10px; color: #a3a3a3; text-align: left; white-space: nowrap; font-size: 14px; } #post-area .type_photo_double { width: 100%; } @media only screen and (max-width: 768px) {

#post-area .masonry-post {
width: calc(50% - 30px);
width: -webkit-calc(50% - 30px);
}


#post-area .masonry-post .author img {
width: 28px;
height: 28px;
}

#post-area .masonry-post .isux-category a,.latestone .post-cate a {
margin:0 3px;
}

#post-area .masonry-post .author, #post-area .masonry-post .isux-date, #post-area .masonry-post .author .username {
height: 28px;
line-height: 28px;
}
}

 

5,如何使用微信的JSSDK

  注册公众号,然后会有一个AppId和AppSceret

  前端代码如下:

  

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • 网页适应所有屏幕宽度 - 侧耳倾听一场梦

    网页适应所有屏幕宽度 - 侧耳倾听一场梦

    2017-04-22 10:00

  • 网页版扫雷游戏 - 季末的寂寞

    网页版扫雷游戏 - 季末的寂寞

    2017-04-21 13:00

  • 基于CSS的个人网页 - 汕大-吴广林

    基于CSS的个人网页 - 汕大-吴广林

    2017-04-21 12:00

  • 又是新动作!微信小程序专属二维码出炉 - 腾讯攻城师lee

    又是新动作!微信小程序专属二维码出炉 - 腾讯攻城师lee

    2017-04-20 15:00

网友点评