css - 公众号样式
/*
* @Author: WJ_LONG
* @Date: 2018-09-06 15:32:06
* @Last Modified by: WJ_LONG
* @Last Modified time: 2018-09-07 16:18:09
* @animation-display-address:https://daneden.github.io/animate.css/ || http://ianlunn.github.io/Hover/
* @Use 公众号
*/ @charset "utf-8";
/* 这里可以用import导入各种库.... 例如:import "./animate.min.css"; */ * {
box-sizing: border-box;
} a {
color: #2d374b;
text-decoration: none
} a:hover {
color: #cd0200;
text-decoration: underline
} em {
font-style: normal
} li {
list-style: none
} img {
border:;
vertical-align: middle
} table {
border-collapse: collapse;
border-spacing: 0
} p {
word-wrap: break-word
} /* 文字 */ .t-white {
color: #fff;
} .t-black {
color: #000;
} .t-blue {
color: #0E639C;
} .t-red {
color: #DD4F43;
} .t-green {
color: #1AA15F;
} .t-yellow {
color: #FFCD42;
} .t-orange {
color: #f18518;
} .t-bold {
font-weight: bold;
} .t-left {
text-align: left;
} .t-center {
text-align: center;
} .t-right {
text-align: right;
} /* 文字换行与不换行 */ .n-word {
word-break: break-all;
} .no-word {
word-break: nowrap;
} /* 背景 */ .bg-blue {
background-color: #038dd8;
} .bg-green {
background-color: #009b4d;
} .bg-yellow {
background-color: #fdd100;
} .bg-orange {
background-color: #f18518;
} .bg-red {
background-color: #d22a31;
} /* 图标 > */ .icon-direction {
width: 1.2em;
height: 1.2em;
padding:;
margin:;
border: 1px solid #000;
border-top: none;
border-left: none;
transform: rotate(-45deg);
} /* 遮罩层-垂直居中 */ .ab-center {
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top:;
bottom:;
left:;
right:;
background-color: rgba(0, 0, 0, .7);
} /* 美化input */ /* <div class="beautiful">
<div class="radio">
<input type="radio" name="Storage" id="model1" checked/>
<label for="model1">iPhone 6s</label>
<input type="radio" name="Storage" id="model2" />
<label for="model2">iPhone 6s Plus</label>
<input type="radio" name="Storage" id="model3" />
<label for="model3">iPhone 7</label>
<input type="radio" name="Storage" id="model4" />
<label for="model4">iPhone 7 Plus</label>
</div> <br> <div class="checkbox">
<input type="checkbox" id="love1" />
<label for="love1">女</label>
<input type="checkbox" id="love2" />
<label for="love2">绘画</label>
<input type="checkbox" id="love3" />
<label for="love3">摄影</label>
<input type="checkbox" id="love4" checked />
<label for="love4">骑行</label>
</div>
</div> */ .beautiful input {
display: none
} .beautiful label {
border: 1px solid #00a4ff;
padding: 2px 10px 2px 5px;
line-height: 28px;
min-width: 80px;
text-align: center;
float: left;
margin: 2px;
border-radius: 4px
} .beautiful input:checked+label {
background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MiA0MiI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiMwMGE0ZmYiIGQ9Ik00MiA0MlYuNUwuNSA0MnoiLz48cGF0aCBkPSJNMTkuNCAyNi45bDguNSA4LjUtMi45IDIuOC04LjUtOC41IDIuOS0yLjh6bTE3LTUuN2wyLjggMi44LTE0LjEgMTQuMi0yLjgtMi44IDE0LjEtMTQuMnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=) no-repeat right bottom;
background-size: 21px 21px;
color: #00a4ff;
} .beautiful .radio, .beautiful .checkbox {
height: 2em;
} /* tab选项卡 */ /* tab选项卡示例代码 */ /* <ul class="tabs t-white">
<li>
<input type="radio" name="tabs" id="tab1" checked />
<label for="tab1" class="bg-green">导航1</label>
<div id="tab-content1" class="tab-content bg-green">
<p>选项卡内容 1fd;lafklsakfldskflaksldfklsa</p>
</div>
</li> <li>
<input type="radio" name="tabs" id="tab2" />
<label for="tab2">导出2</label>
<div id="tab-content2" class="tab-content bg-green">
<p>选项卡内容211f2dsa1f2sa1df2sa1fdsa2fsafdsfsafdsa</p>
</div>
</li> </ul> */ .tabs {
width: 100%;
float: none;
list-style: none;
position: relative;
} .tabs li {
float: left;
width: calc(100%/2);
margin-top: -1%;
text-align: center;
} .tabs input[type="radio"] {
position: absolute;
left: -9999px;
} .tabs label {
display: block;
padding: 1.5em;
border-radius: 2px 2px 0 0;
font-weight: normal;
text-transform: uppercase;
cursor: pointer;
transition: all 0.2s ease-in-out;
background-color: #009b4d;
position: relative;
top: .35em;
} .tabs label:hover {
background-color: #017b3e;
} .tabs .tab-content {
z-index:;
display: none;
overflow: hidden;
width: 100%;
padding: 25px;
background-color: #009b4d;
position: absolute;
top:;
left:;
} .tabs [id^="tab"]:checked+label {
background-color: #017b3e;
} .tabs [id^="tab"]:checked~[id^="tab-content"] {
display: block;
text-align: left;
} /* 表格示例代码 */ /* <div class='table'>
<div class='tr'>
<div class='th th1'>视频</div>
<div class='th th2'>游戏</div>
<div class='th th3'>电视</div> </div> <div class='tr'>
<div class='td td1'>1</div>
<div class='td td2'>2</div>
<div class='td td3'>3</div>
</div> <div class='tr'>
<div class='td td1'>1</div>
<div class='td td2'>2</div>
<div class='td td3'>3</div>
</div> <div class='tr'>
<div class='td td1'>1</div>
<div class='td td2'>2</div>
<div class='td td3'>3</div>
</div>
</div> */ .table {
width: 100%;
} .tr {
width: 100%;
display: flex;
justify-content: space-between;
border-bottom: 1px solid #dadada;
} .tr .th1 {
background-color: #008bd5;
} .tr .th2 {
background-color: #ee8236;
} .tr .th3 {
background-color: #a40081;
} .th, .td {
padding: 10px;
text-align: center;
width: 100%;
} .th {
background-color: #000;
font-size: 1.2em;
color: #fff;
} .td {
font-size: 0.9em;
color: #000;
} .td1, .td2, .td3 {
word-break: break-all;
white-space: normal;
} /* 边框 */ .border-top {
border-top: 1px solid #000;
} .border-right {
border-right: 1px solid #000;
} .border-bottom {
border-bottom: 1px solid #000;
} .border-left {
border-left: 1px solid #000;
} .border {
border: 1px solid #000;
} /* 显示-隐藏 */ .none {
display: none;
} .display {
display: block;
} .none-force {
display: none !important;
} /* 阴影(外部、内部阴影) */ .b-shadow {
box-shadow: #fdd000 0 0 10px;
} .t-shadow {
text-shadow: #ec350c 0 0 20px;
} /* 宽度 */ .w-100per {
width: 100%;
} .w-50per {
width: 50%;
} .h-100per {
height: 100%;
} .w-100vh {
width: 100vh;
} .h-100vh {
width: 100vh;
} /* 用户头像大小 */ .u-80 {
height: 80rpx;
width: 80rpx;
} .u-50 {
height: 50rpx;
width: 50rpx;
} /* 圆角 */ .b-radius-50per {
border-radius: 50%;
} .b-radius-10 {
border-radius: 10px;
} /*
前三分为:中、开始(默认),结束
*/ .f {
display: flex;
} .f-center {
justify-content: center;
} .f-start {
justify-content: flex-start;
} .f-end {
justify-content: flex-end;
} .f-s-b {
justify-content: space-between;
} .f-s-a {
justify-content: space-around;
} .f-no-wrap {
flex-wrap: nowrap;
} .f-wrap {
flex-wrap: wrap;
} /*
垂直居中(针对view先的元素 - align)
*/ .f-align-c {
align-items: center;
} .f-align-s {
align-items: flex-start;
} .f-align-e {
align-items: flex-end;
} .f-algin-b {
align-items: baseline;
} .f-align-stretch {
align-items: stretch;
} /* line-block 和 inline */ .i-line {
display: inline;
} .i-block {
display: inline-block;
} .block {
display: block;
} /* 定位 */ .p-r {
position: relative;
} .p-s {
position: absolute;
} .p-f {
position: fixed;
} .over-flow {
overflow: hidden;
} /* 内边距 */ .p-2per {
padding: 2%;
} .p-l-2per {
padding-left: 2%;
} .p-r-2per {
padding-right: 2%;
} .p-t-2per {
padding-top: 2%;
} .p-b-2per {
padding-bottom: 2%;
} /* 外边距 */ .m-2per {
padding: 2%;
} .m-tb-2per {
margin: 2% 0;
} .m-lr-2per {
margin: 0 2%;
} .m-l-2per {
padding-left: 2%;
} .m-r-2per {
padding-right: 2%;
} .m-t-2per {
padding-top: 2%;
} .p-b-2per {
padding-bottom: 2%;
}
css - 公众号样式的更多相关文章
- 微信公众号 访问403问题,样式错乱,js失效
我服了,还是那个微信公众号小项目. 这个项目用的是ssm+velocity 问题的是,有时候页面加载会乱,js,css都加载不出来. 这个问题也是很久了,前几天开会,那个甲方医院很不开心,说是要找下家 ...
- 如何排版 微信公众号「代码块」之 MarkEditor
前段时间写过一篇文章 如何排版微信公众号「代码块」,讲的是如何使用浏览器插件 Markdown Here 来排版代码块.虽然用 Markdown Here 排版出来的样式还不错,但存在一个问题,就是代 ...
- 公众号的Markdown排版利器:Md2All
微信公众号:颜家大少如有问题或建议,请公众号留言 本文所用排版工具:Md2All,http://md.aclickall.com 公众号排版工具 公众号的排版编辑工具还真的不少,但功能大同小异,大部分 ...
- 如何自定义CSS滚动条的样式?
欢迎大家前往腾讯云+社区,获取更多腾讯海量技术实践干货哦~ 本文由前端林子发表 本文会介绍CSS滚动条选择器,并在demo中展示如何在Webkit内核浏览器和IE浏览器中,自定义一个横向以及一个纵向的 ...
- HTML5仿微信公众号界面
jQuery连接: https://pan.baidu.com/s/1Qj948NPMDmcqzcMyKm8nMw 密码:vewr 图片连接: https://pan.baidu.com/s/1Fha ...
- 关于微信公众号内嵌网页的几个meta标签
最近在做微信公众平台内嵌app,其实也就是web app="=,不过就是基于微信内置浏览器(safari加了一个WeixinJS对象),稍微记一下几个html的meta标签(web app通 ...
- 微信公众号开发C#系列-12、微信前端开发利器:WeUI
1.前言 通过前面系列文章的学习与讲解,相信大家已经对微信的开发有了一个全新的认识.后端基本能够基于盛派的第三方sdk搞定大部分事宜,剩下的就是前端了.关于手机端的浏览器的兼容性问题相信一直是开发者们 ...
- 玩转公众号markdown排版
Md2All 简介 Markdown排版利器,支持 "一键排版" 的样式模板选择,支持"css样式自定义",支持80多种代码高亮. 能让Markdown内容,无 ...
- 微信支付-公众号支付H5调用支付详解
微信公众号支付 最近项目需要微信支付,然后看了下微信公众号支付,,虽然不难,但是细节还是需要注意的,用了大半天时间写了个demo,并且完整的测试了一下支付流程,下面分享一下微信公众号支付的经验. 一. ...
随机推荐
- 【集合类型的并发】Collections.synchronizedList
摘要: 详细的解析:Collections.synchronizedList :关注要点,为什么在有synchroniezed方法的同时会出现 Collections.synchronizedList ...
- jquery ajax事件执行顺序
jquery中各个事件执行顺序如下: 1.ajaxStart(全局事件) 2.beforeSend 3.ajaxSend(全局事件) 4.success 5.ajaxSuccess(全局事件) 6.e ...
- RPD Volume 168 Issue 4 March 2016 评论1
GEANT4 calculations of neutron dose in radiation protection using a homogeneous phantom and a Chines ...
- websocket、文件上传
支持情况: 浏览器实现了websocket的浏览器:Chrome Supported in version 4+ Firefox Supported in version 4+ Internet Ex ...
- [P1580] yyy loves Easter_Egg I
Link: P1580 传送门 Solution: 拿来练练字符串的读入: 1.$gets()$相当于$c++$中的$getline()$,但返回值为指针!(无数据时为NULL) (都读入换行符,并将 ...
- 【后缀数组】【二分答案】【差分】poj1743 Musical Theme
差分消除加减一个值得影响,貌似r二分上界要设成(n-2)/2?为啥? sa求不可重叠最长重复子串 给定一个字符串,求最长重复子串,这两个子串不能重叠.算法分析:这题比上一题稍复杂一点.先二分答案,把题 ...
- python3开发进阶-Django框架的ORM常用字段和参数
阅读目录 常用字段 字段合集 自定义字段 字段参数 关系参数 多对多的关联关系的三种方式 一.常用字段 AutoField int自增列,必须填入参数 primary_key=True.当model中 ...
- C语言实现中缀表达式转后缀表达式
代码如下: #include <stdio.h> #include <stdlib.h> #include <ctype.h> #define STACK_INIT ...
- iOS开发——检测屏幕旋转
步骤一.注册通知 1: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(statusBarOrien ...
- 解密所有APP运行过程中的内部逻辑(转)
转贴地址:http://www.freebuf.com/tools/54562.html 0×01前言 这年头,apk 全都是加密啊,加壳啊,反调试啊,小伙伴们表示已经不能愉快的玩耍了.静态分析越来越 ...