background & background-image & border-image
background & background-image & border-image
https://developer.mozilla.org/en-US/docs/Web/CSS/background
https://developer.mozilla.org/en-US/docs/Web/CSS/border-image
https://developer.mozilla.org/zh-CN/docs/Web/CSS/background
https://developer.mozilla.org/zh-CN/docs/Web/CSS/border-image
background & radius border
background color & view bug
https://codepen.io/xgqfrms/full/JQeqXQ

linear-gradient
https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient
https://codepen.io/xgqfrms/pen/WqEBLB

https://codepen.io/xgqfrms/pen/bPrymz

background-size
cover
https://developer.mozilla.org/zh-CN/docs/Web/CSS/background-size
.circle {
position: absolute;
width: 1.76rem;
height: 1.56rem;
line-height: 1.56rem;
/* background: url("../../images/guide/hexagon.png") cover no-repeat center center ; */
background: url("../../images/guide/hexagon.png") no-repeat center center ;
background-size: cover;
text-align: center;
vertical-align: middle;
cursor: pointer;
font-size: 0.28rem;
/* font-size: 0.16rem; */
color: #fff;
}
/* iphone 6/7/8 */
/* width: 375px & height: 667px */
@media (min-width: 375px) and (max-width: 375px) and (orientation: portrait) {
.circle {
position: absolute;
width: 1.76rem;
height: 1.76rem;
line-height: 1.56rem;
background: url("../../images/guide/hexagon.png") no-repeat center center;
text-align: center;
vertical-align: middle;
cursor: pointer;
font-size: 0.16rem;
color: #fff;
}
.menu-text31 {
transform: translateX(0.55rem) translateY(-0.15rem);
}
.menu-text32 {
transform: translateX(-0.35rem) translateY(0.3rem);
}
}
/* iphone 6/7/8 plus*/
/* width: 414px & height: 736px */
@media (min-width: 414px) and (max-width: 414px) and (orientation: portrait) {
.circle {
position: absolute;
width: 1.76rem;
height: 1.56rem;
line-height: 1.56rem;
background: url("../../images/guide/hexagon.png") no-repeat center center;
text-align: center;
vertical-align: middle;
cursor: pointer;
font-size: 0.16rem;
color: #fff;
}
.menu-text31{
transform: translateX(0.45rem) translateY(-0.15rem);
}
.menu-text32{
transform: translateX(-0.35rem) translateY(0.2rem);
}
}
background & background-image & border-image的更多相关文章
- css 使用background背景实现border边框效果
css中,我们一般使用border给html元素设置边框,但也可以使用background背景来模拟css边框效果,本文章向大家介绍css 使用background背景实现border边框效果,需要的 ...
- CSS背景background、background-position使用详解
背景(background)是css中一个重要的的部分,也是需要知道的css的基础知识之一.这篇文章将会涉及css背景(background)的基本用法,包括诸如 background-attachm ...
- CSS背景background详解,background-position详解
背景(background)是css中一个重要的的部分,也是需要知道的css的基础知识之一.这篇文章将会涉及css背景(background)的基本用法,包括诸如 background-attachm ...
- CSS背景属性Background详解
[转] 本文详解了CSS的背景属性Background,包括CSS3中新增的背景属性.如果你是个CSS初学者,还可以查看之前介绍的CSS浮动属性和CSS透明属性详解. CSS2 中有5个主要的背景(b ...
- background不能填充margin的问题
CSS2 中有5个主要的背景(background)属性,它们是: background-color: 指定填充背景的颜色.background-image: 引用图片作为背景.background- ...
- css3之background
background background: (1)url(image1.png) right bottom, (2)url(image2.png) center, (3)url(image3.png ...
- background小结
CSS背景属性Background详解 本文详解了CSS的背景属性Background,包括CSS3中新增的背景属性.如果你是个CSS初学者,还可以查看之前介绍的CSS浮动属性和CSS透明属性详解. ...
- background属性的学习整理转述
前言:这是笔者学习之后自己的理解与整理.如果有错误或者疑问的地方,请大家指正,我会持续更新! background我们一般用到的的属性有: background-attachment:背景(图片)是否 ...
- 前端CSS-font属性,超链接的美化,css精灵,background综合属性
前端CSS-font属性,超链接的美化,css精灵,background综合属性 1. font属性 使用font属性,能够将字号.行高.字体,能够一起设置. font:14px/24px " ...
- CSS background 之设置图片为背景技巧
首先先来看看background有那些值: 可以按顺序设置如下属性(可点击进入相应的css手册查看使用):background-color 背景颜色background-image 背景图片backg ...
随机推荐
- is == id ,编码
一. id 查询内存地址. # name = 'alex' # print(id(name)) # name1 = 'alex' # name2 = 'alex' # print(name1 == n ...
- tp5项目部署Linux环境后无法访问解决
一.编辑fastcgi.conf文件 vim /www/server/nginx/conf/fastcgi.conf 二.添加代码 fastcgi_param PHP_ADMIN_VALUE &quo ...
- Java——集合框架之ArrayList,LinkedList,迭代器Iterator
概述--集合框架 Java语言的设计者对常用的数据结构和算法做了一些规范(接口)和实现(具体实现接口的类).所有抽象出来的数据结构和操作(算法)统称为Java集合框架(Java Collection ...
- Phoenix的shell操作
Phoenix的shell操作 一.Phoenix的Shell操作 1.进入(hbase01是主机名,2181是zookeeper的端口) 2.退出(注意结尾不加分号) 3.查询所有表(注意结尾不加分 ...
- 1. Centos 7重置root密码
1.开机启动系统,不断按"↑"和"↓",在如下引导界面按"e",编辑引导项 2.按"↓"找到下图显示的代码 删除代码最后 ...
- 如何学习Java?从标识符开始
标识符 1.定义 Java对各种变量.方法和类等要素命名时使用的字符序列称为标识符(包含但不限于:类名.变量名.方法名.接口名.包名--) 2.命名规则 1.由26个英文字母大小写,0-9,_或$组成 ...
- Failed to initialize policy for cpu: 0
今天在使用vmware安装ubuntu16.04的时候出现下列错误: Failed to initialize policy for cpu: 0 (-19),刚开始还以为是镜像文件出现了问题,结果发 ...
- poj1066 线段相交简单应用(解题报告)
#include<stdio.h> #include<math.h> const double eps=1e-8; int n; struct Point { double x ...
- codeforces632E. Thief in a Shop (dp)
A thief made his way to a shop. As usual he has his lucky knapsack with him. The knapsack can contai ...
- python+selenium+bs4爬取百度文库内文字 && selenium 元素可以定位到,但是无法点击问题 && pycharm多行缩进、左移
先说一下可能用到的一些python知识 一.python中使用的是unicode编码, 而日常文本使用各类编码如:gbk utf-8 等等所以使用python进行文字读写操作时候经常会出现各种错误, ...