CSS3使用border-radius属性制作圆角代码分享

发布时间:2021-08-10 18:33:06 作者:chen
来源:亿速云 阅读:124

本篇内容主要讲解“CSS3使用border-radius属性制作圆角代码分享”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“CSS3使用border-radius属性制作圆角代码分享”吧!

html

代码如下:


<link href="test.css" type="text/css" rel="stylesheet" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<div class="loginbox">
    <h3>邮箱登录</h3>
    <ul>
        <li><input type="text" value="邮箱账号" class="account" /><input type="button" value="@qq.com" class="mail_btn" /></li>
        <li><input type="text" value="密码" /></li>
    </ul>
</div>

使用border-radius属性,制作圆角

代码如下:


/*CSS3.0圆角属性实现表单元素圆角*/
.loginbox{
  background:#edf6ff;
  border-left:1px solid #acc3e3;
  border-right:1px solid #acc3e3;
  padding:20px;
}
.loginbox h3{
  color:#28456f;
  font-size:14px;
}
.loginbox ul{
  margin-top:10px;
}
.loginbox li{
  margin-bottom:10px;
  list-style-type:none;
}
.loginbox li input{
  border:1px solid #9dadc6;
  border-radius:6px;
  height:32px;
  padding:0 5px;
  color:#888;
  width:292px;
}
.loginbox li input.account{
  width:182px;
  border-right:1px solid #d5deed;
  border-top-right-radius:0;
  border-bottom-right-radius:0;
  background:-moz-linear-gradient( top,#ddd 0%,#eee 10%,#fff 20%);
  background:-webkit-linear-gradient( top,#ddd 0%,#eee 10%,#fff 20%);  
  background:-ms-linear-gradient( top,#ddd 0%,#eee 10%,#fff 20%);
}
.loginbox li input.mail_btn{
  width:110px;
  height:34px;
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  color:#504c4d;
  text-align:left;
  cursor:pointer;
}

到此,相信大家对“CSS3使用border-radius属性制作圆角代码分享”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

推荐阅读:
  1. 怎么使用border-radius属性
  2. div中css3 border-radius属性之圆角、DIV圆角、图片圆角的实现示例

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

css3

上一篇:css3怎么实现3D色子翻转特效

下一篇:怎么用css3制作网站后台管理面板

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》