当前位置: 首页 > news >正文

李沧网站建设百度seo排名主要看啥

李沧网站建设,百度seo排名主要看啥,html写手机网站吗,网站美工做专题尺寸多少?项目地址 https://github.com/hismeyy/react-component-100 组件描述 组件适用于需要展示图文信息的场景,比如产品介绍、用户卡片或任何带有标题、描述和可选图片的内容展示 样式展示 代码展示 InfoCard.tsx import ./InfoCard.cssinterface InfoCardProps {ti…

项目地址
https://github.com/hismeyy/react-component-100

组件描述
组件适用于需要展示图文信息的场景,比如产品介绍、用户卡片或任何带有标题、描述和可选图片的内容展示

样式展示
在这里插入图片描述

代码展示

InfoCard.tsx
import './InfoCard.css'interface InfoCardProps {title: string;description: string;imgSrc: string;imgAlt?: string;
}const InfoCard = ({ title, description, imgSrc, imgAlt = title
}: InfoCardProps) => {return (<div className='info-card'><div className='img'>{imgSrc && <img src={imgSrc} alt={imgAlt} />}</div><div className="info"><h6>{title}</h6><p>{description}</p></div></div>)
}export default InfoCard
InfoCard.css
.info-card {box-sizing: border-box;width: 240px;height: 80px;border-radius: 10px;background-color: #F5F5F5;box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);display: flex;justify-content: left;align-items: center;padding: 5px 5px 5px 10px;cursor: pointer;transition: all 0.3s ease;transform-origin: center;
}.info-card .img {width: 60px;height: 60px;border-radius: 6px;overflow: hidden;display: flex;justify-content: center;align-items: center;transition: transform 0.3s ease;
}.info-card .img img {width: 100%;height: 100%;object-fit: cover;
}.info-card .info{margin-left: 5px;height: 60px;
}.info-card .info h6 {all: unset;display: block;width: 160px;font-size: 14px;font-weight: bold;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;transition: color 0.3s ease;
}.info-card .info p {all: unset;display: -webkit-box;width: 160px;margin-top: 10px;font-size: 12px;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;line-height: 1.3;transition: color 0.3s ease;line-clamp: 2;box-orient: vertical;
}.info-card:hover {transform: translateY(-2px) scale(1.02);box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);background-color: #ffffff;
}.info-card:hover .img {transform: scale(1.05);
}.info-card:hover .info h6 {color: #f08a5d;
}.info-card:hover .info p {color: #666;
}

使用

App.tsx
import './App.css'
import InfoCard from './components/card/infoCard01/InfoCard'function App() {return (<><InfoCardtitle="React 18 新特性"description="React 18 带来了令人兴奋的新特性,包括自动批处理、Transitions API 和 Suspense 的改进。这些更新显著提升了应用性能和用户体验。"imgSrc="https://cdn1.iconfinder.com/data/icons/programing-development-8/24/react_logo-512.png"/></>)
}export default App
http://www.tj-hxxt.cn/news/103549.html

相关文章:

  • 发稿什么意思宁波seo哪家好
  • 长沙哪里可以做网站深圳seo外包公司
  • 摄影工作室网站建设模板优就业seo课程学多久
  • 化妆品 营销型网站seo软件开发
  • 张家港市住房城乡建设局网站创建网站怎么创
  • 手机网站知识今日搜索排行榜
  • 网络优化网站建设学习百度做广告怎么做
  • 衢州网络公司做网站十大营销策略
  • 网站安全检测平台百度知道官网登录入口
  • 做购物网站平台谷歌商店app下载
  • 如何做聊天网站网络营销的作用和意义
  • 茂名网站建设方案开发外链吧怎么使用
  • 郑州网站建设培训百度广告联盟下载
  • 天津做网站的公司怎么样优化设计三年级上册答案
  • 网站创意的技术百度推广售后客服电话
  • 做租赁的行业网站百度搜图匹配相似图片
  • 长春做网站哪家公司好网络营销包括哪些
  • 用vs2012做网站教程哪个平台做推广效果好
  • 郑州建设网站哪家好网络推广深圳有效渠道
  • 网站建设人员架构企业如何建立网站
  • 能够做渗透的网站网站运营管理
  • 镇江做网站要多少钱今日新闻头条最新消息
  • 淘宝网站如何做虚拟机html+css网页制作成品
  • 长沙网站建设哪家靠谱短视频seo询盘获客系统软件
  • 济南做网站的公司有哪些百度收录时间
  • 北京网站模板下载杭州网站优化公司哪家好
  • 遮罩层怎么做网页优化方案
  • 做网站用电脑自带的怎么做网站模板
  • 自适应网站制作教程webview播放视频
  • wordpress tag页面优化网络营销优化