(二)CSS3應用 - 實現圓角

來源:互聯網
上載者:User

標籤:style   blog   http   ar   color   os   使用   sp   strong   

html
 1 <link href="test.css" type="text/css" rel="stylesheet" /> 2 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 3 <div class="loginbox"> 4     <h2>郵箱登入</h2> 5     <ul> 6         <li><input type="text" value="郵箱帳號" class="account" /><input type="button" value="@qq.com" class="mail_btn" /></li> 7         <li><input type="text" value="密碼" /></li> 8     </ul> 9 </div>10              
View Code

使用border-radius屬性,製作圓角

/*CSS3.0圓角屬性實現表單元素圓角*/.loginbox{
  background:#edf6ff;
  border-left:1px solid #acc3e3;
  border-right
:1px solid #acc3e3;
  padding
:20px;
}.loginbox h2{
  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應用 - 實現圓角

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.