博客列表 >3月22日作业

3月22日作业

jackallen的博客
jackallen的博客原创
2018年03月23日 14:13:15519浏览

代码:


<!DOCTYPE html>
<html>
<head>
   <meta charset="UTF-8" />
   <title>Document</title>
   <style type="text/css">
       table{
           /* border:1px solid #000; */
           text-align:center;
           border-collapse: collapse;
           margin:auto;
           width:100%;
           box-shadow:9px 7px 5px #888;
       }
      table caption{
           text-align:center;
       }
       thead {
           background-color:#36A8FF;
           border-top-left-radius:30px;
       }
       #conter1{
           width:800px;
           height:600px;
           margin:auto;
           /* background-color:#868686; */
       }
       .tborder{
           background-color:#CCCCCC;
           border-bottom-right-radius:30px;
           border-bottom-left-radius:30px;
       }
       th,td{
           border-bottom:1px solid #fff;
           padding:10px;
       }
       tr th{
           /* padding:4px; */
           width:120px;
           /* height:30px; */
           color:#fff;
       }
       td img{
           border-radius:50%;
       }
       h2{
           text-align:left;
       }
   </style>
</head>
<body>
<div id="conter1">
   <fieldset>
   <legend><h2>就业喜报</h2></legend>
       <div>
           <table >
                   <thead>
                       <tr>
                           <th>姓名</th>
                           <th>学历</th>
                           <th>专业</th>
                           <th>薪资</th>
                           <th>入职公司</th>
                       </tr>
                   </thead>

                   <tbody>
                       <tr>
                           <td>苍**</td>
                           <td>本科</td>
                           <td>动漫制作</td>
                           <td>12000元</td>
                           <td><img src="imgages/wy.png" alt=""></td>
                       </tr>
                       <tr>
                           <td>麻**</td>
                           <td>本科</td>
                           <td>电子信息工程</td>
                           <td>16000元</td>
                           <td><img src="imgages/lc.png" alt=""></td>
                       </tr>
                       <tr>
                           <td>李**</td>
                           <td>本科</td>
                           <td>网络工程</td>
                           <td>11000元</td>
                           <td><img src="imgages/qq.png" alt=""></td>
                       </tr>
                        <tr>
                           <td>王**</td>
                           <td>本科</td>
                           <td>软件工程</td>
                           <td>18000元</td>
                           <td>阿里</td>
                       </tr>
               </tbody>
           </table>
       </div>
   </fieldset>
</div>
</body>
</html>

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <style type="text/css">
        table{
            /* border:1px solid #000; */
            text-align:center;
            border-collapse: collapse;
            margin:auto;
            width:100%;
            box-shadow:9px 7px 5px #888;
        }
       table caption{
            text-align:center;
        }
        thead { 
            background-color:#36A8FF;
            border-top-left-radius:30px;
        }
        #conter1{
            width:800px;
            height:600px;
            margin:auto;
            /* background-color:#868686; */
        }
        .tborder{
            background-color:#CCCCCC;
            border-bottom-right-radius:30px;
            border-bottom-left-radius:30px;
        }
        th,td{
            border-bottom:1px solid #fff;
            padding:10px;
        }
        tr th{
            /* padding:4px; */
            width:120px;
            /* height:30px; */
            color:#fff;
        }
        td img{
            border-radius:50%;
        }
        h2{
            text-align:left;
        }
    </style>
</head>
<body>
<div id="conter1">
    <fieldset>
    <legend><h2>就业喜报</h2></legend>
        <div class="tborder">
            <table >
                    <thead>
                        <tr>
                            <th>姓名</th>
                            <th>学历</th>
                            <th>专业</th>
                            <th>薪资</th>
                            <th>入职公司</th>
                        </tr>
                    </thead>

                    <tbody>
                        <tr>
                            <td>苍**</td>
                            <td>本科</td>
                            <td>动漫制作</td>
                            <td>12000元</td>
                            <td><img src="imgages/wy.png" alt=""></td>
                        </tr>
                        <tr>
                            <td>麻**</td>
                            <td>本科</td>
                            <td>电子信息工程</td>
                            <td>16000元</td>
                            <td><img src="imgages/lc.png" alt=""></td>
                        </tr>
                        <tr>
                            <td>李**</td>
                            <td>本科</td>
                            <td>网络工程</td>
                            <td>11000元</td>
                            <td><img src="imgages/qq.png" alt=""></td>
                        </tr>
                         <tr>
                            <td>王**</td>
                            <td>本科</td>
                            <td>软件工程</td>
                            <td>18000元</td>
                            <td>阿里</td>
                        </tr>
                </tbody>
            </table>
        </div>
    </fieldset>
</div>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

手写代码:

1521785772(1).jpg

微信图片_20180323140957.jpg

微信图片_20180323140945.jpg

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议