文本框变色,div渐变+圆角边框+阴影,table表格填充颜色+边框变色+居中

 <!DOCTYPE html>
 <html>
 <head>
 <meta charset="UTF-8">
 <title></title>
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <style type="text/css">
 .class1{
 border: 1px solid red;
 text-align: right;
 border-bottom-color: blue;
 border-top-color: deeppink;
  
 }
 p{
 text-align: center;
 text-decoration:underline ;
 font-weight: 800;
  
 font-style: oblique;
 }
 .div1{
 width: 300px;
 height: 50px;
 background-color: red;
 border: 3px;
 background-repeat: no-repeat;
  
  
 padding: 10px 10px 10px 10px;
 border-radius: 50px;
 box-shadow: 12px 12px 12px yellow;
 background-image: -webkit-linear-gradient(bottom,blue,yellow,green,pink);
  
 }
 .div2{
 widows: 300px;
 height: 20px;
 background-color: brown;
 position: relative;
 z-index: 100;
 background-image: url(img/mm.png);
 background-repeat: no-repeat;
 background-position: center;
  
 }
 </style>
 </head>
 <body>
 <center>我是居中标签</center>
  
 <p>我是p标签</p>
 <input class="class1" type="text" name="username"/><br /><br />
 <table border="1px" bordercolor="red" cellpadding="1px" cellspacing="1px">
 <tr style="background-color: gray;"><td>id</td><td>名字</td><td>密码</td></tr>
 <tr><td>1</td><td>张三</td><td>123456</td></tr>
 <tr><td>2</td><td>李四</td><td>888888</td></tr>
 </table>
 <br /><br />
 <div class="div1">
 我是div11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
 </div>
 <div class="div2">
 我是div22222222
 </div>
  
 </body>
 </html>
 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值