日度归档:2020年2月21日

html5 如何在安卓和apple系统上调用拨号功能呢?


摘要:
下文讲述H5网页中如何编写超链接,使其可拨打电话。

在H5页面中,调用拨号功能,需使用超链接,然后采用tel协议实现手机上链接到拨打电话功能

例:

  
<a href="tel:888888888,0001">888888888 转 0001分机</a>
  
<a href="tel:13800000000">点击拨打13800000000</a>

css3 如何实现漂浮气球效果呢?


摘要:
下文讲述css中实现漂浮气球的方法分享,如下所示:


实现思路:
实现动画上下定位操作,达到气球浮动的效果


<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="author" content="http://www.maomao365.com/" />
<title>猫猫教程(www.maomao365.com)
--漂浮的气球效果实现
</title>
<style>
span {
  text-transform: uppercase;
}
.container {
  width: 800px;
  height: 420px;
  padding: 0;
  position: relative;
}
.balloon {
  width: 738px;
  margin: 0 auto;
  padding-top: 30px;
  position: relative;
}
.balloon > div {
  width: 104px;
  height: 140px;
  background: rgba(182, 15, 97, 0.9);
  border-radius: 0;
  border-radius: 80% 80% 80% 80%;
  margin: 0 auto;
  position: absolute;
  padding: 10px;
  box-shadow: inset 17px 7px 10px rgba(182, 15, 97, 0.9);
  transform-origin: bottom center;
}
.balloon > div:nth-child(1) {
  background: rgba(182, 15, 97, 0.9);
  left: 0;
  box-shadow: inset 10px 10px 10px rgba(135, 11, 72, 0.9);
  animation: balloon1 6s ease-in-out infinite;
}
.balloon > div:nth-child(1):before {
  color: rgba(182, 15, 97, 0.9);
}
.balloon > div:nth-child(2) {
  background: rgba(242, 112, 45, 0.9);
  left: 120px;
  box-shadow: inset 10px 10px 10px rgba(222, 85, 14, 0.9);
  animation: balloon2 6s ease-in-out infinite;
}
.balloon > div:nth-child(2):before {
  color: rgba(242, 112, 45, 0.9);
}
.balloon > div:nth-child(3) {
  background: rgba(45, 181, 167, 0.9);
  left: 240px;
  box-shadow: inset 10px 10px 10px rgba(35, 140, 129, 0.9);
  animation: balloon4 6s ease-in-out infinite;
}
.balloon > div:nth-child(3):before {
  color: rgba(45, 181, 167, 0.9);
}
.balloon > div:nth-child(4) {
  background: rgba(190, 61, 244, 0.9);
  left: 360px;
  box-shadow: inset 10px 10px 10px rgba(173, 14, 240, 0.9);
  animation: balloon1 5s ease-in-out infinite;
}
.balloon > div:nth-child(4):before {
  color: rgba(190, 61, 244, 0.9);
}
.balloon > div:nth-child(5) {
  background: rgba(180, 224, 67, 0.9);
  left: 480px;
  box-shadow: inset 10px 10px 10px rgba(158, 206, 34, 0.9);
  animation: balloon3 5s ease-in-out infinite;
}
.balloon > div:nth-child(5):before {
  color: rgba(180, 224, 67, 0.9);
}
.balloon > div:nth-child(6) {
  background: rgba(242, 194, 58, 0.9);
  left: 600px;
  box-shadow: inset 10px 10px 10px rgba(234, 177, 15, 0.9);
  animation: balloon2 3s ease-in-out infinite;
}
.balloon > div:nth-child(6):before {
  color: rgba(242, 194, 58, 0.9);
}
.balloon > div:before {
  color: rgba(182, 15, 97, 0.9);
  position: absolute;
  bottom: -11px;
  left: 52px;
  content: "▲";
  font-size: 1em;
}
span {
  font-size: 4.8em;
  color: white;
  position: relative;
  top: 14px;
  left: 41%;
  margin-left: -27px;
}
   
@keyframes balloon1 {
  0%, 100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-20px) rotate(8deg);
  }
}
 
@keyframes balloon2 {
  0%, 100% {
    transform: translateY(0) rotate(6deg);
  }
  50% {
    transform: translateY(-30px) rotate(-8deg);
  }
}
@keyframes balloon3 {
  0%, 100% {
    transform: translate(0, -10px) rotate(6deg);
  }
  50% {
    transform: translate(-20px, 30px) rotate(-8deg);
  }
}
/* BAllOON 3*/
@keyframes balloon4 {
  0%, 100% {
    transform: translate(10px, -10px) rotate(-8deg);
  }
  50% {
    transform: translate(-15px, 10px) rotate(10deg);
  }
}
 
h1 {
  position: relative;
  top: 200px;
  text-align: center;
  color: white;
  font-size: 3.5em;
}
</style>
</head> 
<body>
  <div class="container">
    <div class="balloon">
      <div><span>猫</span></div>
      <div><span>猫</span></div>
      <div><span>教</span></div>
      <div><span>程</span></div>
      <div><span>欢</span></div>
      <div><span>迎</span></div>
      <div><span>您</span></div>
    </div>
  </div>
</body>
</html>

css 漂浮气球

css 漂浮气球

CSS text-transform属性简介说明


摘要:
下文讲述css属性“text-transform”用法简介说明,如下所示:


css 之 text-transform 属性功能简介

css text-transform属性功能:
用于设置文本的大小写
text-transform语法:

属性值

属性说明
none

默认,根据html中的定义信息直接显示输出
capitalize

文本中的每个单词以大写字母开头
uppercase

转换为大写字母输出
lowercase

转换为小写字母输出
inherit

从父级继承text-transform属性


css 之 text-transform 属性举例说明


<html>
<meta charset='utf-8' />
<title>猫猫教程(www.maomao365.com)
---字符大小写转换属性举例
</title>
<head>
<style type="text/css">
  h1 {text-transform: uppercase}
  p.uppercase {text-transform: uppercase}
  p.lowercase {text-transform: lowercase}
  p.capitalize {text-transform: capitalize}
</style>
</head>

<body>
<h1>maomao365.com</h1>
<p class="uppercase">maomao365.com</p>
<p class="lowercase">maomao365.com</p>
<p class="capitalize">maomao365.com</p>
</body>
</html>
  
css text-transform属性简介说明

css text-transform属性简介说明