Hướng dẫn tạo widget thông báo cho blogger - WAPCHIASE24H /* Sitemap by Showdzgn.com */
Hướng dẫn tạo widget thông báo cho blogger
Hello sau nhiều ngày vắng bóng mình đã quay trở lại và mình có dạo trên codepen thì có thấy một widget rất đẹp muốn share cho mọi người!!!!
CÁCH THỰC HIỆN
Bước 1: Ta chèn đoạn code phía dưới vào trước thẻ ]]></b:skin>nhé
.toast__container {
    display: table-cell;
    vertical-align: middle;
}
.toast__cell{
  display:inline-block;
}
.add-margin{
  margin-top:20px;
}
.toast__svg{
  fill:#fff;
}
.toast {
  text-align:left;
    padding21px 0;
    background-color:#fff;
    border-radius:4px;
    max-width500px;
    top0px;
    position:relative;
    box-shadow1px7px 14px -5pxrgba(0,0,0,0.2);
}

.toast:before {
    content'';
    position: absolute;
    top0;
    left0;
    width4px;
    height100%;
  border-top-left-radius:4px;
  border-bottom-left-radius4px;
}
.toast__icon{
  position:absolute;
  top:50%;
  left:22px;
  transform:translateY(-50%);
  width:14px;
  height:14px;
  padding7px;
  border-radius:50%;
  display:inline-block;
}
.toast__type {
  color#3e3e3e;
  font-weight700;
  margin-top0;
  margin-bottom8px;
}
.toast__message {
    font-size14px;
    margin-top0;
  margin-bottom0;
    color#878787;
}
.toast__content{
  padding-left:70px;
  padding-right:60px;
}
.toast__close {
    position: absolute;
    right22px;
    top50%;
    width14px;
    cursor:pointer;
    height14px;
  fill:#878787;
    transformtranslateY(-50%);
}
.toast--green.toast__icon{
  background-color:#2BDE3F;
}
.toast--green:before{
  background-color:#2BDE3F;
}
.toast--blue.toast__icon{
  background-color:#1D72F3;
}
.toast--blue:before{
  background-color:#1D72F3;
}
.toast--yellow.toast__icon{
  background-color:#FFC007;
}
.toast--yellow:before{
  background-color:#FFC007;
}
Bước 2: Ta chèn code bên dưới vào trước thẻ </body> nhé
<scripttype="text/javascript">
jQuery(document).ready(function(){
  jQuery('.toast__close').click(function(e){
    e.preventDefault();
    var parent = $(this).parent('.toast');
    parent.fadeOut("slow"function({ $(this).remove(); } );
  });
});
</script>
Bước 3: Ta thêm code bên dưới vào chỗ bạn muốn hiển thị là được.
<div class="toast__container">
<divclass="toast__cell">
<div class="toast toast--green">
<divclass="toast__icon">
<svgclass="toast__svg"style="enable-background: new 0 0 512 512;"version="1.1"viewbox="0 0 512 512"x="0px"xml:space="preserve"xmlns:xlink="http://www.w3.org/1999/xlink"xmlns="http://www.w3.org/2000/svg" y="0px">
<g><g><pathd="M504.502,75.496c-9.997-9.998-26.205-9.998-36.204,0L161.594,382.203L43.702,264.311c-9.997-9.998-26.205-9.997-36.204,0    c-9.998,9.997-9.998,26.205,0,36.203l135.994,135.992c9.994,9.997,26.214,9.99,36.204,0L504.502,111.7    C514.5,101.703,514.499,85.494,504.502,75.496z"></path>
 </g></g>
    </svg>
  </div>
<divclass="toast__content">
<divclass="toast__type">
Demo</div>
<divclass="toast__message">
Thêm Vài dòng mô tả của bạn ở đây.</div>
</div>
<divclass="toast__close">
<svg enable-background="new 0 0 15.642 15.642"version="1.1"viewbox="0 0 15.642 15.642"xmlns:xlink="http://www.w3.org/1999/xlink"xmlns="http://www.w3.org/2000/svg">
  <pathd="M8.882,7.821l6.541-6.541c0.293-0.293,0.293-0.768,0-1.061  c-0.293-0.293-0.768-0.293-1.061,0L7.821,6.76L1.28,0.22c-0.293-0.293-0.768-0.293-1.061,0c-0.293,0.293-0.293,0.768,0,1.061  l6.541,6.541L0.22,14.362c-0.293,0.293-0.293,0.768,0,1.061c0.147,0.146,0.338,0.22,0.53,0.22s0.384-0.073,0.53-0.22l6.541-6.541  l6.541,6.541c0.147,0.146,0.338,0.22,0.53,0.22c0.192,0,0.384-0.073,0.53-0.22c0.293-0.293,0.293-0.768,0-1.061L8.882,7.821z"fill-rule="evenodd"></path>
</svg>
  </div>
</div>
<div class="toast toast--blue add-margin">
<divclass="toast__icon">
<svgclass="toast__svg"style="enable-background: new 0 0 32 32;" version="1.1"viewbox="0 0 32 32"x="0px"xml:space="preserve"xmlns:xlink="http://www.w3.org/1999/xlink"xmlns="http://www.w3.org/2000/svg" y="0px">
<g>
 <g id="info">
  <g>
   <pathd="M10,16c1.105,0,2,0.895,2,2v8c0,1.105-0.895,2-2,2H8v4h16v-4h-1.992c-1.102,0-2-0.895-2-2L20,12H8     v4H10z"></path>
   <circle cx="16"cy="4" r="4"></circle>
  </g>
 </g>
</g>
    </svg>
  </div>
<divclass="toast__content">
<divclass="toast__type">
Demo</div>
<divclass="toast__message">
Thêm Vài dòng mô tả của bạn ở đây.</div>
</div>
<divclass="toast__close">
<svg enable-background="new 0 0 15.642 15.642"version="1.1"viewbox="0 0 15.642 15.642"xmlns:xlink="http://www.w3.org/1999/xlink"xmlns="http://www.w3.org/2000/svg">
  <pathd="M8.882,7.821l6.541-6.541c0.293-0.293,0.293-0.768,0-1.061  c-0.293-0.293-0.768-0.293-1.061,0L7.821,6.76L1.28,0.22c-0.293-0.293-0.768-0.293-1.061,0c-0.293,0.293-0.293,0.768,0,1.061  l6.541,6.541L0.22,14.362c-0.293,0.293-0.293,0.768,0,1.061c0.147,0.146,0.338,0.22,0.53,0.22s0.384-0.073,0.53-0.22l6.541-6.541  l6.541,6.541c0.147,0.146,0.338,0.22,0.53,0.22c0.192,0,0.384-0.073,0.53-0.22c0.293-0.293,0.293-0.768,0-1.061L8.882,7.821z"fill-rule="evenodd"></path>
</svg>
  </div>
</div>
<div class="toast toast--yellow add-margin">
<divclass="toast__icon">
<svgclass="toast__svg"style="enable-background: new 0 0 301.691 301.691;"version="1.1"viewbox="0 0 301.691 301.691" x="0px"xml:space="preserve"xmlns:xlink="http://www.w3.org/1999/xlink"xmlns="http://www.w3.org/2000/svg" y="0px">
<g>
 <polygonpoints="119.151,0 129.6,218.406 172.06,218.406 182.54,0  "></polygon>
 <rect height="40.523"width="40.525"x="130.563"y="261.168"></rect>
</g>
    </svg>
  </div>
<divclass="toast__content">
<divclass="toast__type">
Demo</div>
<divclass="toast__message">
Thêm Vài dòng mô tả của bạn ở đây.</div>
</div>
<divclass="toast__close">
<svg enable-background="new 0 0 15.642 15.642"version="1.1"viewbox="0 0 15.642 15.642"xmlns:xlink="http://www.w3.org/1999/xlink"xmlns="http://www.w3.org/2000/svg">
  <pathd="M8.882,7.821l6.541-6.541c0.293-0.293,0.293-0.768,0-1.061  c-0.293-0.293-0.768-0.293-1.061,0L7.821,6.76L1.28,0.22c-0.293-0.293-0.768-0.293-1.061,0c-0.293,0.293-0.293,0.768,0,1.061  l6.541,6.541L0.22,14.362c-0.293,0.293-0.293,0.768,0,1.061c0.147,0.146,0.338,0.22,0.53,0.22s0.384-0.073,0.53-0.22l6.541-6.541  l6.541,6.541c0.147,0.146,0.338,0.22,0.53,0.22c0.192,0,0.384-0.073,0.53-0.22c0.293-0.293,0.293-0.768,0-1.061L8.882,7.821z"fill-rule="evenodd"></path>
</svg>
  </div>
</div>
</div>
</div>
Chúc các bạn thành công!!!
Chào các bạn đến với blog truyện tổng hợp của mình nhé !
  • Facebook
  • WhatsApp
  • Instagram
  • Subscribe Our Newsletter

    Posting Terkait

    0 Response to "Hướng dẫn tạo widget thông báo cho blogger"

    Đăng nhận xét

    Giới thiệu bản thân

    Thống kê

    Đăng nhận xét

    Menu mobi

    NHÃN

    8vui.top (1) Anime (1) Anime641 (1) Bác sĩ window (6) Bts (1) Canhme (1) Choionline (1) chuyện thú vị (1) Code bán hosting cPanel (1) Code banghoi (1) Code blog php (6) code bot like (2) Code Dinhluyen (1) Code Forum JohnCMS 6.1.2 Mod By Chuối (1) Code Forum JohnCMS Vinajohn v2 (1) Code game Đại Anh Hùng (1) Code game Gunny (1) Code game Naruto (1) Code Link Protect Groups Facebook By Chuoi (1) Code MXH JohnCMS Userviet v3 (1) Code ovigame (1) Code sim (1) code tin tức (1) Code Vnhihi (1) Code Wap Game JohnCMS LOL (1) Date a live (2) Diendanvn (1) Dnfamily (1) emoji facebook blogger (1) Game (1) Gocpho (3) Hadpro (3) Hi4u (1) Imzik Template (1) Johncms (83) Johncms mod twitter (1) KB Template (1) Lebalongit (1) leminhut (1) M3v (1) Mefun (2) Modjohncms (1) MrT79 (1) nhanhnao code (1) nukeviet (2) olaVn (1) Phieubac code (2) phonho (1) Sao (1) Scam (2) scoure code upload (3) Source Web Chat Realtime ReactJS + Firebase (1) Star An Blog (1) Star Năm It (1) Start cường it (2) Sword art online (1) Teaavartar (1) Teen10x (1) Templat (1) template anime (10) Template blogger (185) template code đây rồi (2) template facebook (2) template nghĩa rồng blog (2) Template NPC (1) template phim (25) Template php (152) Template rút gọn link (1) Template shop bán nick lmht (1) template shop bán nick ngọc rồng (4) template star sinh blog (1) template star tuấn it (1) template thảo blogger (1) Template truyện (4) template TV (2) Template Vietblogger (1) Template wordpess (4) template youtube (1) tenki no ko (5) Tên Tiếng Nhật (2) Tết (1) Thanhstar code (1) Thủ thuật (287) Tin anime (67) Tin tức hay (1) Toàn siêu nhân (2) Top 10 anime hấp dẫn dựa trên tác phẩm văn học nổi tiếng (2) TuoiTre4v (1) Văn hoá Nhật Bản (4) Văn Huy ít (1) Vietfun (1) VietVina (1) Việt hoá (1) Vina4u (4) Vina4z (2) Vinajohn (2) Vinajohn vina (1) vlogstips (1) Vnbay code (1) Vnstar (1) Vnteam code (2) Vnteen code (1) Vtjohn (1) Wapchiase24h (1) Xenforo (1) Ya4r (1) Yeudehon (1) Youkoso Jitsuryoku Shijou Shugi (1) Z777 (2) Zzui 1.5 (1)

    Topst

    Đang tìm kiếm...

    Trang

    Recent Posts

    Liên kết website

    Website có sử dụng nguồn video được chia sẻ từ PhimMoi, Bilutv, Phimbathu,KPhim, Youtube... chúng tôi không giữ bản quyền về bất cứ nội dung trên website.

    Business

    [3,Demo,post-tag]

    Iklan Atas Artikel

    Iklan Tengah Artikel 1

    Quảng cáo

    Quảng cáo bài viết