使用frameset标签,以及搭配使用DIV+CSS,设计并布局一个简单的页面(在其中的一个页面里面,开发一个用户注册界面)

1)使用frameset标签,以及搭配使用DIV+CSS,设计并布局一个简单的页面。
2)在其中的一个页面里面,开发一个用户注册界面,要求:使用JavaScript检查格式是否正确。
a.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JavaWeb学习</title>
<style>
* {
    
  box-sizing: border-box; 
  } 
body {
    
  font-family: Arial;  
  padding: 10px;  
  background: #393a3c; 
  }
/* 头部标题 */
.header {
    
    padding: 30px;  
    text-align: center;  
    background: #2eaeb1;
       } 
.header h1 {
    
      font-size: 50px;
         } 
/* 导航条 */
.topnav {
    
    overflow: hidden;  
    background-color: #237491;
    } 
/* 导航条链接 */
.topnav a {
    
    float: left;  
    display: block;  
    color: #f2f2f2;  
    text-align: center;  
    padding: 14px 16px;  
    text-decoration: none;
      } 
 /* 链接颜色修改 */
.topnav a:hover {
    
      background-color: #ddd;  
      color: white;
      } 
/* 创建两列 */
/* Left column */
.leftcolumn {
    
     float: left;  
     width: 75%;
     } 
/* 右侧栏 */
.rightcolumn {
    
       float: left;  
       width: 25%;  
       background-color: #393a3c;  
       padding-left: 20px;
       } 
/* 图像部分 */
.fakeimg {
    
      background-color: white;  
      width: 75%;  
      padding: 20px;
      } 
/* 文章卡片效果 */
.card {
    
     background-color: #f1765e;  
     padding: 20px;  
     margin-top: 20px;
     }
.card1 {
    
       background-color: #ecb656;  
       padding: 20px;  
       margin-top: 20px;
       } 
/* 列后面清除浮动 */
.row:after {
    
  content: "";  
  display: table;  
  clear: both;
  } 
/* 底部 */
.footer {
    
     padding: 5px;  
     text-align: center;  
     background: #2eaeb1;  
     margin-top: 20px;
     } 
/* 响应式布局 - 屏幕尺寸小于 800px 时,两列布局改为上下布局 */
@media screen and (max-width: 800px) {
    
  .leftcolumn, .rightcolumn {
    
         width: 100%;    
         padding: 
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值