按鈕動態效果【按下去的效果】自用

#bkjdxz {
  margin-top: 70px;
  background-color: #eef9ff;
  overflow: hidden;
}
#bkjdxz .bjpbs-title{
  margin-top: 40px;
}
#bkjdxz h5 {
  margin: 30px auto 10px;
  font-size: 16px;
  color: #666;
  text-align: center;
}
#bkjdxz .content {
  overflow: visible;
  padding: 20px 0;
}
#bkjdxz .content ul {
  margin: 20px auto;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
#bkjdxz .content li {
  position: relative;
  width: 340px;
  height: 350px;
  padding: 28px 26px;
  background-color: #fff;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-shadow: 0 0 25px 5px #f4f4f4;
  -moz-box-shadow: 0 0 25px 5px #f4f4f4;
  box-shadow: 0 0 25px 5px #f4f4f4;
}
#bkjdxz .content li:nth-of-type(2) {
  height: 385px;
  padding: 28px 18px;
}
#bkjdxz .content li h4 {
  margin: 10px 20px 30px;
  font-size: 18px;
  color: #000101;
  font-weight: bold;
  text-align: center;
}
#bkjdxz .content li h6 {
  margin: 10px 0 ;
  font-size: 16px;
  color: #0089fd;
  text-align: center;
}
#bkjdxz .content li h6 span {
  color: #ffca00;
}
#bkjdxz .content li p {
  margin-bottom: 1.2rem;
  font-size: 16px;
  color: #666;
}
#bkjdxz .content li p b {
  color: #333;
}
#bkjdxz .content li p .blue {
  color: #0089fd;
}
#bkjdxz .content li p .red {
  color: #f00;
  font-weight: bold;
}
#bkjdxz .content .zixun {
  text-align: center;
}
#bkjdxz .content .zixun a {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 36px;
  line-height: 36px;
  margin: 10px 0 0 0;
  border: 1px solid #0089fd;
  font-size: 16px;
  color: #0089fd;
  text-align: center;
  text-decoration: none;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  -webkit-transition: all .2s linear;
  transition: all .2s linear;
}
#bkjdxz .content .zixun a:hover{
  -webkit-box-shadow:0 15px 30px rgba(0,0,0,0.1);
  box-shadow:0 15px 30px rgba(0,0,0,0.1);
  -webkit-transform:translate3d(0, -2px, 0);
  transform:translate3d(0, -2px, 0);
}
#bkjdxz .content .zixun a:last-child {
  margin-left: 20px;
  background-color: #0089fd;
  color: #fff;
  -webkit-box-shadow: 0 0 5px 1px #d5ecff;
  -moz-box-shadow: 0 0 5px 1px #d5ecff;
  box-shadow: 0 0 5px 1px #d5ecff;
}
<!--報考階段選擇 start-->
<div id="bkjdxz">
    <div class="bjpbs-title"><span></span>教師資格證考試到底難不難<span></span></div>
    <h5>教師資格考試:中學、小學、幼兒3階段、儘早選定、順利通關有保障</h5>
    <div class="content">
        <ul>
            <li>
                <h4>TOP1  幼兒教師資格</h4>
                <h6>考試難度: <span>★ ★ ★ ★</span></h6>
                <p>
                    <b>考試科目:</b>科目一《綜合素質》<br>     科目二《保教知識與能力》<br>
                    <b>適合人羣:</b>熱愛幼兒教育工做或相關專業<br>
                    <b>薪資範疇:</b><span class="blue">8-11k</span><br>
                    <b>歷年考證經過率:</b><span class="red">70%</span><span class="blue">(考證難度加大)</span>
                </p>
                <div class="zixun">
                    <a onclick="openZoosUrl();return false;" href="" target="_blank">考生免費指導</a>
                    <a onclick="openZoosUrl();return false;" href="" target="_blank">名師在線解析</a>
                </div>
            </li>
            <li>
                <h4>TOP2  小學教師資格</h4>
                <h6>考試難度: <span>★ ★ ★ ★ ★</span></h6>
                <p>
                    <b>考試科目:</b>科目一《綜合素質》<br>     科目二《教育教學知識與能力》<br>
                    <b>適合人羣:</b>目標從事1-6年紀小學數學<br>
                    <b>薪資範疇:</b><span class="blue">11-15k</span><br>
                    <b>歷年考證經過率:</b><span class="red">60%</span><span class="blue">(考證難度加大)</span>
                </p>
                <div class="zixun">
                    <a onclick="openZoosUrl();return false;" href="" target="_blank">考生免費指導</a>
                    <a onclick="openZoosUrl();return false;" href="" target="_blank">名師在線解析</a>
                </div>
            </li>
            <li>
                <h4>TOP3  中學教師資格</h4>
                <h6>考試難度: <span>★ ★ ★ ★ ★</span></h6>
                <p>
                    <b>考試科目:</b>科目一《綜合素質》<br>     科目二《教育知識與能力》<br>
                    <b>適合人羣:</b>目標從事初中、高中教師<br>
                    <b>薪資範疇:</b><span class="blue">13-17k</span><br>
                    <b>歷年考證經過率:</b><span class="red">60%</span><span class="blue">(考證難度加大)</span>
                </p>
                <div class="zixun">
                    <a onclick="openZoosUrl();return false;" href="" target="_blank">考生免費指導</a>
                    <a onclick="openZoosUrl();return false;" href="" target="_blank">名師在線解析</a>
                </div>
            </li>
        </ul>
    </div>
</div>
<!--報考階段選擇 end-->

 

按鈕動態效果web

主要是:flex

#bkjdxz .content .zixun a {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 36px;
  line-height: 36px;
  margin: 10px 0 0 0;
  border: 1px solid #0089fd;
  font-size: 16px;
  color: #0089fd;
  text-align: center;
  text-decoration: none;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  -webkit-transition: all .2s linear;
  transition: all .2s linear;
}
#bkjdxz .content .zixun a:hover{
  -webkit-box-shadow:0 15px 30px rgba(0,0,0,0.1);
  box-shadow:0 15px 30px rgba(0,0,0,0.1);
  -webkit-transform:translate3d(0, -2px, 0);
  transform:translate3d(0, -2px, 0);
}
相關文章
相關標籤/搜索