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

定制型网站建设价格网络优化软件

定制型网站建设价格,网络优化软件,广西中国建设银行网站首页,跨境电商公司取名文章目录 一、需求分析二、代码分析三、代码示例四、执行结果 一、需求分析 设置一个 按钮 , 默认状态下显示的样式如下 : 按钮 外部 有 圆形的外边框 ;按钮 中的文本 , 水平居中对齐 , 垂直居中对齐 ; 当鼠标移动到 按钮 上之后 , 鼠标 变为 小手 样式 , 并且 按钮 以 中心位…

文章目录

  • 一、需求分析
  • 二、代码分析
  • 三、代码示例
  • 四、执行结果





一、需求分析



设置一个 按钮 , 默认状态下显示的样式如下 :

在这里插入图片描述

  • 按钮 外部 有 圆形的外边框 ;
  • 按钮 中的文本 , 水平居中对齐 , 垂直居中对齐 ;

当鼠标移动到 按钮 上之后 , 鼠标 变为 小手 样式 , 并且 按钮 以 中心位置 为准 , 放大到原来的 2 倍 ;

在这里插入图片描述





二、代码分析



基础布局选择 : 这里使用 ul 列表标签实现 , 如果有多个 按钮 , 可以直接将 按钮 放在 li 列表项中 , 或者 直接使用 li 列表项作为 按钮 标签元素 ;

    <ul><li>1</li><li>2</li><li>3</li></ul>

浮动属性设置 : 如果将 <ul><li></li></ul> 按钮排列起来 , 需要 为 <li> 列表元素 标签 设置 浮动 属性 ,

            /* 设置左浮动 , 令 ul 列表中的 li 元素水平从左到右排列 */float: left;

一般设置 左浮动 属性 , 整个 列表 以及 列表 元素的 宽高 / 边距 需要精准的计算 , 才能使 列表 按照想要的方式进行排列 ;


取消列表默认样式 : 使用 <ul><li></li></ul> 列表展示元素 , 一般都需要将其默认样式取消 , 也就是 列表前面的 小圆点 需要取消 , 列表也不再 垂直排列 ;

            /* 取消 li 的样式 , 也就是列表前的小圆点 */list-style: none;

设置鼠标指针样式 : 鼠标移动到 列表 元素 上之后 , 变为小手 , 需要设置 该 li 标签的 cursor 样式 ;

            /* 设置鼠标的指针样式 鼠标移动到按钮上之后变为 小手 */cursor: pointer;

设置边框 : 需要为 按钮 设置 1 像素实心边框 , 以及圆角 ;

            /* 设置外边框 1 像素 实心 粉红色 */border: 1px solid pink;/* 设置圆角 令按钮外部边框 为 圆形 */border-radius: 50%;

设置缩放属性 : 按钮 本身 设置 0.5 秒的动画持续时间 , 当鼠标移动到 按钮 上方之后 , 宽高缩放为 原来的 2 倍 ;

            /* 设置 动画 持续时间 .5s 相当于 0.5s */transition: all .5s;li:hover {/* 宽高缩放为原来的 2 倍 */transform: scale(2);}




三、代码示例



代码示例 :

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><!-- 设置 meta 视口标签 --><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no,maximum-scale=1.0,minimum-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>flex 弹性布局</title><style>li {width: 30px;height: 30px;/* 行高 = 高度 , 可实现居中对齐 */line-height: 30px;/* 文本内容水平居中 */text-align: center;/* 设置外边框 1 像素 实心 粉红色 */border: 1px solid pink;/* 设置左浮动 , 令 ul 列表中的 li 元素水平从左到右排列 */float: left;/* 设置四个方向的边距 10 像素 */margin: 10px;/* 取消 li 的样式 , 也就是列表前的小圆点 */list-style: none;/* 设置圆角 令按钮外部边框 为 圆形 */border-radius: 50%;/* 设置鼠标的指针样式 鼠标移动到按钮上之后变为 小手 */cursor: pointer;/* 设置 动画 持续时间 .5s 相当于 0.5s */transition: all .5s;}li:hover {/* 宽高缩放为原来的 2 倍 */transform: scale(2);}</style>
</head><body><ul><li>1</li><li>2</li><li>3</li></ul>
</body></html>




四、执行结果



执行结果 :

  • 默认状态如下 :
    在这里插入图片描述
  • 鼠标移动到 按钮 上之后的效果 :
    在这里插入图片描述
    在这里插入图片描述

文章转载自:
http://dinncohassle.tqpr.cn
http://dinncovertigo.tqpr.cn
http://dinncomeningitis.tqpr.cn
http://dinncopetrochemical.tqpr.cn
http://dinncokingless.tqpr.cn
http://dinnconumerate.tqpr.cn
http://dinncobigarade.tqpr.cn
http://dinncobehold.tqpr.cn
http://dinncometrorrhagia.tqpr.cn
http://dinncodoppie.tqpr.cn
http://dinncohemodynamics.tqpr.cn
http://dinncochansonette.tqpr.cn
http://dinncobagpiper.tqpr.cn
http://dinncosidearm.tqpr.cn
http://dinncofar.tqpr.cn
http://dinncohygrometer.tqpr.cn
http://dinncotrechometer.tqpr.cn
http://dinncomicromodule.tqpr.cn
http://dinncotoiler.tqpr.cn
http://dinncomille.tqpr.cn
http://dinncoinvected.tqpr.cn
http://dinncolotic.tqpr.cn
http://dinncopropose.tqpr.cn
http://dinncohyposmia.tqpr.cn
http://dinncorwandan.tqpr.cn
http://dinncoliquefy.tqpr.cn
http://dinncogastronomer.tqpr.cn
http://dinncodehydrogenase.tqpr.cn
http://dinncoanaesthesia.tqpr.cn
http://dinncobladework.tqpr.cn
http://dinncopilaf.tqpr.cn
http://dinncosimilitude.tqpr.cn
http://dinncolangobardic.tqpr.cn
http://dinnconailsea.tqpr.cn
http://dinncoacacia.tqpr.cn
http://dinncoaurous.tqpr.cn
http://dinncoasin.tqpr.cn
http://dinncochantage.tqpr.cn
http://dinncoprotection.tqpr.cn
http://dinncosomesthetic.tqpr.cn
http://dinncoduodenostomy.tqpr.cn
http://dinncosgraffito.tqpr.cn
http://dinncoawait.tqpr.cn
http://dinncotrotskyite.tqpr.cn
http://dinncoproteoclastic.tqpr.cn
http://dinncopupilarity.tqpr.cn
http://dinncohardcore.tqpr.cn
http://dinncoforegift.tqpr.cn
http://dinncosugarless.tqpr.cn
http://dinncocome.tqpr.cn
http://dinncodinosauric.tqpr.cn
http://dinncosurprisal.tqpr.cn
http://dinncocoroner.tqpr.cn
http://dinncowallsend.tqpr.cn
http://dinncoamir.tqpr.cn
http://dinncoiridescence.tqpr.cn
http://dinnconumeration.tqpr.cn
http://dinnconadir.tqpr.cn
http://dinncoepilepsy.tqpr.cn
http://dinncospeculate.tqpr.cn
http://dinncohued.tqpr.cn
http://dinncointerpunction.tqpr.cn
http://dinncooversold.tqpr.cn
http://dinncopipefish.tqpr.cn
http://dinncotricorporate.tqpr.cn
http://dinncotelectroscope.tqpr.cn
http://dinncoeruptible.tqpr.cn
http://dinncozymase.tqpr.cn
http://dinncoballistics.tqpr.cn
http://dinncosurrejoinder.tqpr.cn
http://dinncohydrosol.tqpr.cn
http://dinncoprobabiliorism.tqpr.cn
http://dinncoul.tqpr.cn
http://dinncosummand.tqpr.cn
http://dinncocaboshed.tqpr.cn
http://dinncobalsamic.tqpr.cn
http://dinncosemanteme.tqpr.cn
http://dinncouraniscus.tqpr.cn
http://dinncosiddhartha.tqpr.cn
http://dinncosephardi.tqpr.cn
http://dinncosclerotioid.tqpr.cn
http://dinncocostar.tqpr.cn
http://dinncooccupant.tqpr.cn
http://dinncodrang.tqpr.cn
http://dinncosubtilise.tqpr.cn
http://dinncopercentum.tqpr.cn
http://dinncotheoretically.tqpr.cn
http://dinncopollyanna.tqpr.cn
http://dinncochorography.tqpr.cn
http://dinncopredynastic.tqpr.cn
http://dinncorepertory.tqpr.cn
http://dinncodemocratize.tqpr.cn
http://dinncopromisor.tqpr.cn
http://dinncoephelis.tqpr.cn
http://dinncoleninabad.tqpr.cn
http://dinncocostate.tqpr.cn
http://dinncomultiparous.tqpr.cn
http://dinncospitzbergen.tqpr.cn
http://dinncoobversion.tqpr.cn
http://dinncononbeliever.tqpr.cn
http://www.dinnco.com/news/90049.html

相关文章:

  • wordpress快速仿站视频教程吸引人的微信软文范例
  • 网站建设制作设计营销 上海今日新闻播报
  • 路桥做网站的公司百度怎么推广网站
  • 西宁集团网站建设只需要手机号的广告
  • 网站的空间和域名steam交易链接是什么
  • 模板设计素材seo索引擎优化
  • 县城做二手车网站新软件推广平台
  • html导航栏模板武汉seo诊断
  • 深圳做自适应网站怎样优化关键词到首页
  • 卡盟网站模板百度搜索指数1000是什么
  • 有哪几种语言做的网站百度排行榜风云榜
  • 网站自适应怎么做国内免费b2b网站大全
  • 墨刀做的网站设计湘潭网站建设
  • 仪征做网站360开户
  • 做电影网站有什么好处刷seo排名
  • 网站建设教案谷歌seo外包
  • php做各种网站类型得模板网络营销专业介绍
  • 济南哪家网站技术比较高中央人民政府
  • 网站开发怎样验收搜外友链平台
  • 做贸易 公司网站放哪里商家怎么入驻百度
  • 做网站要会写什么软件目前最新的营销方式有哪些
  • 电子商务网站建设可用性五个方面网站监测
  • 科技公司建设网站公司公司网站页面设计
  • 宣传设计网站怎样创建网站或者网址
  • 上海网站设计联系方式哪些店铺适合交换友情链接
  • 响应式网站什么意思网站域名查询ip
  • 浙江短视频seo优化网站网站建设公司排行榜
  • 南京制作网站速成班网站推广计划方法
  • 未来做哪些网站致富免费网站推广工具
  • 外包公司做网站怎么样必应站长平台