微信小图消息数有多少个?是时候扩容收藏夹了!

2026-04-06 12:371阅读0评论SEO资源
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计112个文字,预计阅读时间需要1分钟。

微信小图消息数有多少个?是时候扩容收藏夹了!

通过HTML和CSS,我们可以创建网页的基本结构和样式。HTML用于定义网页的内容和结构,而CSS用于设置网页的样式,如颜色、字体和布局。

html

css

#wechat { display:inline-block; position:relative; } #pic { width:200px; height:200px; } #mesgNum { width:30px; height:30px; line-height:30px; font:16px; font-weight:bold; color:#fff; text-align:center; border-radius:50%; background-color:#f00; position:absolute; right:0px; top:-10px; } js

$(function() { $("#pic").click(function() { var strnum = $("#mesgNum").text(); if (strnum == "") { $("#mesgNum").text('1'); } else { var num = parseInt(strnum) num = num + 1; $("#mesgNum").text(num); } }); });

微信小图消息数有多少个?是时候扩容收藏夹了!

本文共计112个文字,预计阅读时间需要1分钟。

微信小图消息数有多少个?是时候扩容收藏夹了!

通过HTML和CSS,我们可以创建网页的基本结构和样式。HTML用于定义网页的内容和结构,而CSS用于设置网页的样式,如颜色、字体和布局。

html

css

#wechat { display:inline-block; position:relative; } #pic { width:200px; height:200px; } #mesgNum { width:30px; height:30px; line-height:30px; font:16px; font-weight:bold; color:#fff; text-align:center; border-radius:50%; background-color:#f00; position:absolute; right:0px; top:-10px; } js

$(function() { $("#pic").click(function() { var strnum = $("#mesgNum").text(); if (strnum == "") { $("#mesgNum").text('1'); } else { var num = parseInt(strnum) num = num + 1; $("#mesgNum").text(num); } }); });

微信小图消息数有多少个?是时候扩容收藏夹了!