标签页效果

html代码

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=gbk" />
  <link rel="stylesheet" type="text/css" href="css/tab.css" />
  <script type="text/javascript" src="js/jquery.js"></script>
  <script type="text/javascript" src="js/tab.js"></script>
</head>
<body>
 <ul>
  <li class="labelin">标签1</li>
  <li>标签2</li>
  <li>标签3</li>
 </ul>
 <div class="contentin">我是内容1</div>
 <div>我是内容2</div>
 <div>我是内容3</div>
</body>
</html>

 

css代码

 

ul,li {
 margin:0px;
 padding:0px;
 list-style:none; 
}
li{
 float:left; 
 background-color:#DCDBD6;
 color:white;
 padding:1px;
 border:2px solid white;
}
div {
 clear:left;
 background-color:#6E6E6E;
 color:white;
 width:300px;
 height:100px;
 display:none;
}
.contentin {
 display:block;
}
.labelin {
 border:2px solid #6E6E6E; 
 background-color:#6E6E6E;
}

 

jquery代码

 

$(document).ready(function(){
 $("li").each(function(index){
  $("li").eq(index).mouseover(function(){
   $(".labelin").removeClass("labelin");
   $(this).addClass("labelin");
   $(".contentin").removeClass("contentin");
   $("div").eq(index).addClass("contentin");
  });
 });
});

### 如何在微信中集成和使用 ChatGPT 或百度的文心一言服务 目前,官方并没有直接支持通过微信内置浏览器访问 ChatGPT 的网页版[^1]。然而,对于希望在微信环境中体验类似功能的用户来说,存在几种替代方案: #### 使用第三方小程序或公众号 一些开发者创建了专门的小程序或微信公众账号来间接接入这些AI服务平台。例如,“通义千问”已经上线了微信小程序版本,允许用户更便捷地与其交互。 #### 浏览器内嵌方式 如果想要尝试像文心一言这样的国内产品,在微信内部打开其官方网站也是可行的方法之一。只需点击下方链接即可进入相应页面: - 文心一言:[https://yiyan.baidu.com/](https://yiyan.baidu.com/) 需要注意的是,由于网络环境的不同以及各平台政策的变化,具体可用性和稳定性可能会有所差异。建议定期关注目标平台最新公告获取最准确的信息。 ```python # 示例代码用于说明如何通过Python脚本调用API接口(仅作概念展示) import requests def get_response_from_api(prompt, api_url="http://example.com/api"): response = requests.post(api_url, json={"message": prompt}) return response.json() prompt_text = "你好" result = get_response_from_api(prompt_text) print(result['reply']) ``` 此段代码展示了理论上可以通过编程手段实现与某些开放API对接的方式,但实际上要在微信生态里做到这一点还需要遵循特定的安全指引和技术文档指导[^2]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

#朱守成#

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值