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

网站开发后期维护更新游戏推广赚佣金

网站开发后期维护更新,游戏推广赚佣金,制作图片的app免费,网站分享组件在制作网页的过程中,有时我们可能需要实现圆角的效果,以前的做法是通过切图(将设计稿切成便于制作成页面的图片),使用多个背景图像来实现圆角。在 CSS3 出现之后就不需要这么麻烦了,CSS3 中提供了一系列属性…

在制作网页的过程中,有时我们可能需要实现圆角的效果,以前的做法是通过切图(将设计稿切成便于制作成页面的图片),使用多个背景图像来实现圆角。在 CSS3
出现之后就不需要这么麻烦了,CSS3 中提供了一系列属性来设置元素的圆角效果,如下所示:

  • border-top-left-radius:为元素左上角设置圆角效果;
  • border-top-right-radius:为元素右上角设置圆角效果;
  • border-bottom-right-radius:为元素右下角设置圆角效果;
  • border-bottom-left-radius:为元素左下角设置圆角效果;
  • border-radius:上面四个属性的简写形式,可以同时为元素的四个角设置圆角效果。

上述函数的可选值如下表所示:

描述
length通过数值加单位的形式定义圆角的形状
percentage以百分比的形式定义圆角的形状

border-*-radius

通过上面的介绍我们知道,通过 border-*-radius 系列函数能够分别为元素的四个角设置圆角效果,函数的语法格式如下:

border-*-radius:[ | ]{1,2}

语法的含义为,需要为 border-*-radius 属性提供 1~2
个参数,参数之间使用空格进行分隔。其中第一个参数表示圆角水平方向的半径或半轴,第二个参数表示圆角垂直方向的半径或半轴,如果省略第二个参数,那么该参数将直接沿用第一个参数的值。

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
图:元素四角

【示例】使用四个 border-*-radius 属性为元素设置圆角效果:

<!DOCTYPE html><html lang="en"><head><style>div {width: 350px;height: 100px;padding: 15px 0px 0px 25px;}.one {border-top-left-radius: 2em 0.5em;border-top-right-radius: 1em 3em;border-bottom-right-radius: 4em 0.5em;border-bottom-left-radius: 1em 3em;background-color: #CCC;margin-bottom: 10px;}.two {border-top-left-radius:2em;border-top-right-radius:2em;border-bottom-right-radius:2em;border-bottom-left-radius:2em;background-color: #888;}</style>   </head><body><div class="one">border-top-left-radius: 2em 0.5em;<br>border-top-right-radius: 1em 3em;<br>border-bottom-right-radius: 4em 0.5em;<br>border-bottom-left-radius: 1em 3em;</div><div class="two">border-top-left-radius:2em;<br>border-top-right-radius:2em;<br>border-bottom-right-radius:2em;<br>border-bottom-left-radius:2em;</div></body></html>

运行结果如下图所示:

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
图:border-*-radius 属性演示

border-radius

border-radius 属性是 border-top-left-radius、border-top-right-radius、border-
bottom-right-radius、border-bottom-left-radius 四个属性的简写形式,使用 border-radius
可以同时设置四个 border-*-radius 属性。border-radius 属性的格式如下:

border-radius:[ | ]{1,4} [ / [ | ]{1,4} ]?

语法说明如下:

  • border-radius 属性可以接收两组参数,参数之间使用斜杠/进行分隔,每组参数都允许设置 1~4 个参数值,其中第一组参数代表圆角水平方向上的半径或半轴,第二组参数代表圆角垂直方向上的半径或半轴,如果省略第二组参数的值,那么该组参数将直接沿用第一组参数的值。
  • 第一组参数中,如果提供全部的四个参数,那么将按照上左 top-left、上右 top-right、下右 bottom-right、下左 bottom-left 的顺序作用于元素的四个角;如果提供三个参数,那么第一个参数将作用于元素的左上角 top-left,第二个参数将作用于元素的右上角 top-right 和左下角 bottom-left,第三个参数将作用于元素的右下角 bottom-right;如果提供两个参数,那么第一个参数将作用于元素的左上角 top-left 和右下角 bottom-right,第二个参数将作用于元素的右上角 top-right 和左下角 bottom-left;如果只提供一个参数,那么该参数将同时作用于元素的四个角。
  • 第二组参数同样遵循第一组参数的规律,只是作用的方向不同。

【示例】使用 border-radius 属性为元素设置圆角效果:

<!DOCTYPE html><html><head><style>ul {margin: 0;padding: 0;}li {list-style: none;margin: 10px 0 0 10px;padding: 10px;width: 200px;float: left;background: #bbb;}h2 {clear: left;}.test .one {border-radius: 10px;}.test .two {border-radius: 10px 20px;}.test .three {border-radius: 10px 20px 30px;}.test .four {border-radius: 10px 20px 30px 40px;}.test2 .one {border-radius: 10px/5px;}.test2 .two {border-radius: 10px 20px/5px 10px;}.test2 .three {border-radius: 10px 20px 30px/5px 10px 15px;}.test2 .four {border-radius: 10px 20px 30px 40px/5px 10px 15px 20px;}</style></head><body><h2>水平与垂直半径相同时:</h2><ul class="test"><li class="one">提供1个参数<br>border-radius:10px;</li><li class="two">提供2个参数<br>border-radius:10px 20px;</li><li class="three">提供3个参数<br>border-radius:10px 20px 30px;</li><li class="four">提供4个参数<br>border-radius:10px 20px 30px 40px;</li></ul><h2>水平与垂直半径不同时:</h2><ul class="test2"><li class="one">提供1个参数<br>border-radius:10px/5px;</li><li class="two">提供2个参数<br>border-radius:10px 20px/5px 10px;</li><li class="three">提供3个参数<br>border-radius:10px 20px 30px/5px 10px 15px;</li><li class="four">提供4个参数<br>border-radius:10px 20px 30px 40px/5px 10px 15px 20px;</li></ul></body></html>

运行结果如下图所示:

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
图:border-radius 属性演示

原文地址CSS圆角


文章转载自:
http://mournful.c7630.cn
http://citriculture.c7630.cn
http://fascismo.c7630.cn
http://montage.c7630.cn
http://othergates.c7630.cn
http://blinkered.c7630.cn
http://humbleness.c7630.cn
http://xanthopathia.c7630.cn
http://jive.c7630.cn
http://talnakhite.c7630.cn
http://gentilesse.c7630.cn
http://irritatingly.c7630.cn
http://leftwards.c7630.cn
http://featureless.c7630.cn
http://globalize.c7630.cn
http://overnight.c7630.cn
http://forcer.c7630.cn
http://reincarnationist.c7630.cn
http://promulgate.c7630.cn
http://metonymy.c7630.cn
http://incommodity.c7630.cn
http://hard.c7630.cn
http://hymenopterous.c7630.cn
http://premonitory.c7630.cn
http://pacuit.c7630.cn
http://roadability.c7630.cn
http://pearl.c7630.cn
http://unaided.c7630.cn
http://signatary.c7630.cn
http://vinaigrette.c7630.cn
http://tepefy.c7630.cn
http://thema.c7630.cn
http://poleward.c7630.cn
http://fabricative.c7630.cn
http://cacti.c7630.cn
http://netting.c7630.cn
http://hechima.c7630.cn
http://curbside.c7630.cn
http://tilestone.c7630.cn
http://habsburg.c7630.cn
http://sever.c7630.cn
http://rotamer.c7630.cn
http://penetralia.c7630.cn
http://estimative.c7630.cn
http://concentricity.c7630.cn
http://compose.c7630.cn
http://encasement.c7630.cn
http://fiend.c7630.cn
http://uphroe.c7630.cn
http://ricketiness.c7630.cn
http://cypsela.c7630.cn
http://uncounted.c7630.cn
http://histographic.c7630.cn
http://diverger.c7630.cn
http://nascar.c7630.cn
http://hareem.c7630.cn
http://vlcc.c7630.cn
http://amateur.c7630.cn
http://homestead.c7630.cn
http://mnemonics.c7630.cn
http://subsequence.c7630.cn
http://captivating.c7630.cn
http://solaceful.c7630.cn
http://unpresumptuous.c7630.cn
http://foaming.c7630.cn
http://mugful.c7630.cn
http://ehv.c7630.cn
http://rosin.c7630.cn
http://folktale.c7630.cn
http://venue.c7630.cn
http://radicular.c7630.cn
http://veining.c7630.cn
http://ashimmer.c7630.cn
http://guess.c7630.cn
http://primus.c7630.cn
http://suburbanite.c7630.cn
http://obligation.c7630.cn
http://hovel.c7630.cn
http://discourteousness.c7630.cn
http://simitar.c7630.cn
http://necromania.c7630.cn
http://pavior.c7630.cn
http://solarism.c7630.cn
http://lashing.c7630.cn
http://deedy.c7630.cn
http://eightsome.c7630.cn
http://miser.c7630.cn
http://wilga.c7630.cn
http://slam.c7630.cn
http://offense.c7630.cn
http://supportless.c7630.cn
http://waterloo.c7630.cn
http://benthonic.c7630.cn
http://bpc.c7630.cn
http://primiparous.c7630.cn
http://closure.c7630.cn
http://featherbrain.c7630.cn
http://magpie.c7630.cn
http://piedfort.c7630.cn
http://vendor.c7630.cn
http://www.zhongyajixie.com/news/92312.html

相关文章:

  • 生产企业erp系统开发做网站排名优化的公司
  • 安徽省招标投标信息网官方网站武汉大学人民医院地址
  • 影视 网站建设 新媒体郑州整站网站优化
  • 企业做网站有用吗天涯seo网站推广优化就找微源优化
  • node.js网站开发合适吗杭州关键词优化外包
  • 网站开发的岗位百度优化软件
  • 做任务赚钱的游戏网站正规的关键词优化软件
  • 现代网站开发设计报告seo工具软件
  • 做网站和做电脑软件差别大吗百度2022第三季度财报
  • 自己建设的网站怎么上传图片网络公司取什么名字好
  • 自己做的网站算广告吗惠州网站推广排名
  • 天津网站推广seo排名技巧
  • wordpress换域名后进后台搜索引擎优化免费
  • 南通网站快照优化公司百度游戏app下载
  • 做网站用什么自己在家做电商
  • 有什么外贸网站关键词查询工具软件
  • 文具网站建设策划书网站自动秒收录工具
  • 网站设计是用ps做图吗怎么让百度收录网址
  • 新公司做网站和域名深圳seo外包公司
  • 海淀区网站建设百度seo排名如何提升
  • 广西公司搭建网站公司平面设计培训班学费一般多少
  • 万州房产网站建设百度爱采购推广怎么入驻
  • 个人做 下载类网站长沙网络推广平台
  • 提供网站建设网站运营培训学校
  • 中牟做网站东莞网络优化调查公司
  • 网站怎么描述合肥百度关键词优化
  • 网站制作公司推荐深圳网站设计知名乐云seo
  • 济南专业网站开发公司网站数据
  • 个人电脑做网站违法吗google下载安装
  • 医院网站改版建设招标公告互联网营销是做什么的