html5 css3样式图标怎么做
2016-08-10 · 百度知道合伙人官方认证企业
html5 css3样式图标制作方法:
1、html代码:
<div id="boxes">
<div id="boxShortcode">border-radius: 40px (shortcode)</div>
<div id="box1">border-top-right-radius: 40px (same on both axis)</div>
<div id="box2">border-top-right-radius: 20px 40px (x < y) </div>
<div id="box3">border-top-right-radius: 40px 20px (x > y) </div>
</div>
2、css样式代码:
#boxes div { margin-bottom: 20px; height: 50px; padding-left: 20px }
#boxShortcode {
background: cyan;
border-radius: 40px;
}
#box1 {
background: red;
border-top-right-radius: 40px;
}
#box2 {
background: yellow;
border-top-right-radius: 20px 40px;
}
#box3 {
background: lime;
border-top-right-radius: 40px 20px;
}
3、运行结果:
2024-07-20 广告