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,并且完整的测试了一下支付流程,下面分享一下微信公众号支付的经验. 一. ...
随机推荐
- 学习apache commons lang3的源代码 (2):RandomStringUtils
本文,主要是分析类;RandomStringUtils. 下面这个方法的:count:表示要生成的数量(比如4个字符组成的字符串等) start,end,表示限定的范围,比如生成ascii码的随机等. ...
- mysql union用法代码示例
MYSQL UNION 操作符 UNION 操作符用于合并两个或多个 SELECT 语句的结果集. 请注意,UNION 内部的 SELECT 语句必须拥有相同数量的列.列也必须拥有相似的数据类型.同时 ...
- 第一步:Java开发环境的配置
一.下载JDK 下载地址:www.oracle.com.如下图: 二.配置JDK 安装JDK一直点击下一步就可以,默认是安装在C盘里.如下图: 然后配置系统路径(主要目的是方便开发),参考地址:jin ...
- 【转】Android循环滚动广告条的完美实现,封装方便,平滑过渡,从网络加载图片,点击广告进入对应网址
Android循环滚动广告条的完美实现,封装方便,平滑过渡,从网络加载图片,点击广告进入对应网址 关注finddreams,一起分享,一起进步: http://blog.csdn.net/finddr ...
- 分享HTTP Status 404(The requested resource is not available)的几种解决方案解决方法
下面是直接copy的,如果有什么疑问or补充,请不吝指教! 原文地址:http://www.myexception.cn/java-web/1480013.html 这个问题搞了我两天的时间,找了各种 ...
- 拓扑排序(Topological Order)UVa10305 Ordering Tasks
2016/5/19 17:39:07 拓扑排序,是对有向无环图(Directed Acylic Graph , DAG )进行的一种操作,这种操作是将DAG中的所有顶点排成一个线性序列,使得图中的任意 ...
- Python与数据结构[3] -> 树/Tree[0] -> 二叉树及遍历二叉树的 Python 实现
二叉树 / Binary Tree 二叉树是树结构的一种,但二叉树的每一个节点都最多只能有两个子节点. Binary Tree: 00 |_____ | | 00 00 |__ |__ | | | | ...
- Codeforces 855E - Salazar Slytherin's Locket
855E - Salazar Slytherin's Locket 题意 给出一个区间,问这个区间内有多少个数满足,将这个数转化为某个进制后,所有数的数量都为偶数. 分析 谁能想到 数位DP 的裸题竟 ...
- hdu6138(后缀数组)
hdu6138 题意 给出若干个字符串,每次查询两个字符串,求两个字符串的公共子串且在给出的某一个字符串中作为前缀的最大长度. 分析 求公共子串:后缀数组 判断前缀:字典树 求完后缀数组,遍历下 \( ...
- VisualVM远程JVM
Tomcat配置 进入TOMCAT_HOME/bin目录 打开catalina.sh文件,加入如下信息: JAVA_OPTS="$JAVA_OPTS -Djava.rmi.server.ho ...