添加此代码后,为什么我的图标会被更改?

时间:2016-07-22 03:25:51

标签: javascript html css css3 webpage

所有带星号的代码都是我添加的代码,以便将代码作为链接

我希望div标签能够链接到我现在正在搜索的社交媒体。 我非常清楚地处于学习模式。

<div class="mb_share">
        <div class="button Facebook slide_x">
            <div class="icon"></div>
            <div class="slide>
            <div class="feature">
            **<a href="https://www.facebook.com/profile.php?id=100009674442168></a>
            </div>**
                <span>
                    facebook
                </span>
            </div>
            <div class="native_button">
              <div>
                   Click Here
              </div>
          </div>
        </div>



        <div class="button twitter slide_y">
            <div class="icon"></div>
            <div class="slide">
            **<div class="feature">
            <a href="https://twitter.com/Andigonzolez></a>
            </div>**
                <span>
                    twitter
                </span>
            </div>
            <div class="native_button">
              <div>Click Here       
              </div>
          </div>
        </div>



      <div class="button youtube slide_nx">
            <div class="icon"></div>
            <div class="slide">
            **<div class="feature">
            <a href="https://www.youtube.com/channel/UCmgxz5GCuuc2hrjaj8B4Jgw></a>
            </div>**
                <span>
                    youtube
                </span>
            </div>
                   <div class="native_button">
             <div>Click Here        
              </div>
          </div>
        </div>


      <div class="button gplus slide_ny">
            <div class="icon"></div>
            <div class="slide">
            **<div class="feature">
            <a href="https://plus.google.com/u/0/104726306810821965999/posts"></a>
            </div>**
                <span>
                    google
                </span>
            </div>
                    <div class="native_button">
    <div>Click Here       
              </div>
          </div>
        </div>


      <div class="button linkedin slide_y">
            <div class="icon"> </div>
            <div class="slide">
            **<div class="feature">
            <a href="https://www.linkedin.com/in/andres-gonzalez-076858ba?trk=nav_responsive_tab_profile_pic"></a>
</div>**

                <span>
                    linkedin
                </span>
            </div>
                   <div class="native_button">
             <div>Click Here        
              </div>
          </div>
        </div>


      <div class="button tumblr slide_nx">
            <div class="icon"></div>
            <div class="slide">
                <span>
                    tumblr
                </span>
            </div>
                   <div class="native_button">
              <div>Click Here       
              </div>
          </div>
        </div>


        <div class="button github slide_ny">
            <div class="icon"></div>
            <div class="slide">
                <span>
                    github
                </span>
            </div>
                  <div class="native_button">
              <div>Click Here       
              </div>
          </div>
        </div>  


          <div class="button pinterest slide_x">
            <div class="icon"></div>
            <div class="slide">
                <span>
                    pinterest
                </span>
            </div>
                   <div class="native_button">
              <div>Click Here       
              </div>
          </div>
        </div>  
    </div>
    <div class="separator"></div>

this is what the webpage looks like after.

这是CSS部分。

@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,700,600);
body {
  font-family:Open sans;
}
h1 {
  color:#3e4956;
  font-size:36px;
  text-align:center;
  font-weight:600;
  margin:100px 0 10px;  
}
h2 {
  text-align:center;
  font-size:18px;
  line-height:1.4;
  color:#9da0a4;
}
h2 a {
  color:#9da0a4;
  border-bottom:1px solid #9da0a4;
  text-decoration:none;
}
h2 a:hover {
  color:#000;
  border-color:#000;
}
.separator {
  width:300px;
  border-bottom:1px solid rgb(224, 224, 224);
  margin:0 auto 50px;
}
pre.prettyprint {
  width:656px;
  height:200px;
  margin:25px auto 50px;
  overflow-y:scroll;
}
pre.lang-html.over span {
  opacity:0.5;  
}
pre.lang-html.over span.tutorial, pre.lang-html.over span.tutorial span {
  opacity:1;  
}
.info {
  margin:50px auto 90px;
  width:600px;
  font-size:12px;
}
.info li {
  margin:0 0 10px;
}
.info li span {
  font-family:Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Consolas, monospace;
  display:inline-block;
  padding:5px 10px;
  background:#1d1f21;
  color:#fff;
}
.mb_share {
  width:656px !important;
  overflow:hidden;
  margin:50px auto;
}
.mb_share .button .native_button div {
  font-size:11px;
  color:rgb(124, 124, 124);
}
/*=======================*/

/*=== MB share buttons ===*/
.mb_share .button {
  background:#DCE0E0;
  position:relative;
  float:left;
  margin:0 7px 14px;
  width:150px;
  height:40px; 
  overflow:hidden;
  -webkit-border-radius:3px;
  -moz-border-radius:3px;
  border-radius:3px;
}
.mb_share .button .icon {
  float:left;
  z-index:200;
  position:relative;
  width:40px;
  height:40px;
  -webkit-border-radius:3px 0px 0px 3px;
  -moz-border-radius:3px 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0wLjQ3MywxLjg0OC0wLjcxNSwyLjg3Mw0KCQljLTAuMjAzLDAuODU3LDAuNDMxLDEuNTU5LDEuMjc3LDEuNTU5YzEuNTMzLDAsMi41NjYtMS45NywyLjU2Ni00LjMwM2MwLTEuNzczLTEuMTk1LTMuMTAyLTMuMzY4LTMuMTAyDQoJCWMtMi40NTYsMC0zLjk4MywxLjgzLTMuOTgzLDMuODc1YzAsMC43MDUsMC4yMDcsMS4yMDMsMC41MzIsMS41ODdjMC4xNDksMC4xNzgsMC4xNzEsMC4yNDksMC4xMTYsMC40NTINCgkJYy0wLjAzOSwwLjE0OC0wLjEyOCwwLjUwOC0wLjE2NSwwLjY0OWMtMC4wNTQsMC4yMDQtMC4yMiwwLjI3Ny0wLjQwMywwLjIwMmMtMS4xMzItMC40NjEtMS42NTgtMS43LTEuNjU4LTMuMDkzDQoJCWMwLTIuMywxLjkzOS01LjA1Niw1Ljc4NS01LjA1NmMzLjA4OCwwLDUuMTIzLDIuMjM1LDUuMTIzLDQuNjM3YzAsMy4xNzUtMS43NjYsNS41NDctNC4zNjcsNS41NDdjLTAuODczLDAtMS42OTUtMC40NzMtMS45NzktMS4wMQ0KCQljMCwwLTAuNDcxLDEuODYzLTAuNTY4LDIuMjI2Yy0wLjE3MiwwLjYyMy0wLjUwOCwxLjI0OC0wLjgxNCwxLjczM2MwLjcyOSwwLjIxNSwxLjQ5NiwwLjMzMiwyLjI5NCwwLjMzMg0KCQljNC40NywwLDguMDkzLTMuNjI1LDguMDkzLTguMDk0QzY3LjI2Myw5NS41NjEsNjMuNjQsOTEuOTM3LDU5LjE3LDkxLjkzN3oiLz4NCjwvZz4NCjwvc3ZnPg0K);
}
.mb_share .button .native_button {
  width:110px;
  height:40px;
  float:left;
  background:#DCE0E0 !important;
  display:table;
}
.mb_share .button .native_button > div {
  display:table-cell;
  vertical-align:middle;
  text-align:center;
}
.mb_share .button .slide {
  position:absolute;
  right:0;
  top:0;
  z-index:100;
  float:left;
  width:110px;
  height:40px;
  transition:.2s transform linear;
  -webkit-transition:.2s -webkit-transform linear;
  -moz-transition:.2s -moz-transform linear;
}
.mb_share .button .slide span {
  color:#fff;
  display:block;
  cursor:default;
  width:100%;
  text-align:center;
  margin:10px 0;
  padding:2px 0;
  font-size:16px;
  border-left:1px solid rgba(255,255,255,0.35);
}
/* Transitions */
.mb_share .button.slide_x:hover .slide {
  -webkit-transform:translateX(110px);
  -moz-transform:translateX(110px);
  transform:translateX(110px);
}
.mb_share .button.slide_nx:hover .slide {
  -webkit-transform:translateX(-110px);
  -moz-transform:translateX(-110px);
  transform:translateX(-110px);
}
.mb_share .button.slide_y:hover .slide {
  -webkit-transform:translateY(40px);
  -moz-transform:translateY(40px);
  transform:translateY(40px);
}
.mb_share .button.slide_ny:hover .slide {
  -webkit-transform:translateY(-40px);
  -moz-transform:translateY(-40px);
  transform:translateY(-40px);
}
/*========================*/
/*=== Colors ===*/

/* FACEBOOK */
.mb_share .button.facebook .icon {
  background-position:-40px 0;
}
.mb_share .button.facebook > div {
  background-color:#305c99;
}
/* TWITTER */
.mb_share .button.twitter .icon {
  background-position:0 0;
}
.mb_share .button.twitter > div {
  background-color:#00cdff;
}
/* YOUTUBE */
.mb_share .button.youtube .icon {
  background-position:-80px 0;
}
.mb_share .button.youtube > div {
  background-color:#e22b26;
}
/* GOOGLE PLUS */
.mb_share .button.gplus .icon {
  background-position:0 -40px;
}
.mb_share .button.gplus > div {
  background-color:#3f3d3e;
}
/* LINKEDIN */
.mb_share .button.linkedin .icon {
  background-position:-40px -40px;
}
.mb_share .button.linkedin > div {
  background-color:#007bb6;
}
/* TUMBLR */
.mb_share .button.tumblr .icon {
  background-position:-80px -40px;
}
.mb_share .button.tumblr > div {
  background-color:#2c4762;
}
/* GITHUB */
.mb_share .button.github .icon {
  background-position:0 -80px;
}
.mb_share .button.github > div {
  background-color:#42c0fb;
}
/* PINTEREST */
.mb_share .button.pinterest .icon {
  background-position:-40px -80px;
}
.mb_share .button.pinterest > div {
  background-color:#dc0d0a;
}
div.feature {
    position: relative;
}

div.feature a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-decoration: none; /* No underlines on the link */
    z-index: 10; /* Places the link above everything else in the div */
    background-color: #FFF; /* Fix to make div clickable in IE */
    opacity: 0; /* Fix to make div clickable in IE */
    filter: alpha(opacity=1); /* Fix to make div clickable in IE */
}


/*==============*/

1 个答案:

答案 0 :(得分:0)

使用 a 标记而不是div。像这样。看到这个小提琴。

<a href="twitter.com"><span class="fa fa-twitter"></span></a>

https://jsfiddle.net/n23Lopon/1/