div的圆形边框怎么弄,还有的两个角方的,两个角圆的,要怎么设定CSS文件啊(页面设计布局,关键词优化)

时间:2024-04-26 13:17:03 作者 : 石家庄SEO 分类 : 关键词优化
  • TAG :

    div%E7%9A%84%E5%9C%86%E5%BD%A2%E8%BE%B9%E6%A1%86%E6%80%8E%E4%B9%88%E5%BC%84%EF%BC%8C%E8%BF%98%E6%9C%89%E7%9A%84%E4%B8%A4%E4%B8%AA%E8%A7%92%E6%96%B9%E7%9A%84%EF%BC%8C%E4%B8%A4%E4%B8%AA%E8%A7%92%E5%9C%86%E7%9A%84%EF%BC%8C%E8%A6%81%E6%80%8E%E4%B9%88%E8%AE%BE%E5%AE%9ACSS%E6%96%87%E4%BB%B6%E5%95%8A

css代码:.yj{ padding:10px; width:300px; height:50px; border: 2px solid #000000; -moz-border-radius: 15px; -webkit-border-radius: 15px; border-radius:15px; }-moz-border-radius: 15px; -webkit-border-radius: 15px; 这两个是为了兼容其他一些不常用浏览写的css圆角代码html代码:<div class="yj">这个div四个角都圆15px;</div>结果如下:图片圆角也是一样的:css代码:.yj{-moz-border-radius: 15px; -webkit-border-radius: 15px; border-radius:15px;}html代码:<img src="xp.jpg" width="100px" height="100px;" class="yj" />结果如下:css3圆角代码也支持上下左右的:css代码这么写:.yj{ padding:10px; width:300px; height:50px; border: 2px solid #000000; -moz-border-radius: 0px 0px 20px 25px;; -webkit-border-radius: 0px 0px 20px 25px;; border-radius:0px 0px 20px 25px;;}结果如下圆角代码也支持拆分的(四个边框都圆角10px的拆分css代码如下):border-top-left-radius: 10px; border-top-right-radius: 10px;border-bottom-right-radius:10px; border-bottom-left-radius: 10px;

本文:div的圆形边框怎么弄,还有的两个角方的,两个角圆的,要怎么设定CSS文件啊的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:梦幻西游手游里背包满了,领取了成长礼包后,礼包里的装备都没了,怎么办下一篇:

319 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18