WEB前端-JS-动态购物页面V1

终于将静态页面改成动态了,本次主要使用js&dom、jquery等来实现,目前只是将部分功能动态了,代码看这里:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" http-equiv="X-UA-COMPATIBLE" content="IE=edge"/>
    <meta http-equiv="refresh" Content="300"/>
    <meta name="keywords" content="shopping_car"/>
    <title>MyShopCar</title>
    <link rel="shortcut icon" href="p3.png"/>
    <!--css start-->
    <style type="text/css">
        /*返回顶部*/
        .b3_backtotop {
            border:2px solid burlywood;
            width:50px;
            height:50px;
            position:fixed;
            bottom:0;
            right:0;
            background-image:url(http://image.baidu.com/search/down?tn=download&word=download&ie=utf8&fr=detail&url=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fw%253D580%2Fsign%3D8a7e333a43166d223877159c76220945%2Fe9e336d3d539b600e576bb46e950352ac75cb7b1.jpg&thumburl=http%3A%2F%2Fimg1.imgtn.bdimg.com%2Fit%2Fu%3D1974011879%2C1336495790%26fm%3D21%26gp%3D0.jpg);
            background-position:-107px -90px;
            cursor:pointer;
        }
        /*背景*/
        .b4{
            display:block;
            margin:0 auto 0;
            padding:0;
            background:#fff;
            clear:both;
            z-index: 9;
        }
        /*失效效果*/
        .hide{
            display:none;
        }
        /*遮罩层*/
        .shadow{
            position:fixed;
            top:0;
            left:0;
            right:0;
            bottom:0;
            background-color:gray;
            opacity:0.6;
            z-index: 10;
        }
        /*对话框*/
        .b1{
            width:900px;
            height:400px;
            position: fixed;
            top:50%;
            left:50%;
            margin-top:-200px;
            margin-left:-450px;
            font-size:18px;
            font-weight:700;
            background:#F1F1F1;
            border:2px dashed gray;
            overflow:auto;
            z-index: 12;
        }
        .b1 table{
            width:900px;
            text-align: center;
            background-color:pink;
            border-top:1px solid indianred;
            border-bottom:1px solid indianred;
        }
        .b1 table thead tr th{
            padding:0 5% 0 5%;
            line-height: 24px;
            height:26px;
            font-size:20px;
            font-weight:600;
            font-family: "Microsoft YaHei",tahoma,arial,"Hiragino Sans GB","\5b8b\4f53",sans-serif;
            text-align: center;
        }
        .b1 table tbody tr td{
            padding:0 10px 0 10px;
            line-height: 24px;
            height:26px;
            font-size:14px;
            font-weight:400;
            font-family: "Microsoft YaHei",tahoma,arial,"Hiragino Sans GB","\5b8b\4f53",sans-serif;
            text-align: center;
            cursor:pointer;
        }
        .b1 table tbody tr td div{
            padding:0;
            width:180px;
            height:25px;
            float:right;
        }
        .b1 table tbody tr td div div{
            padding:0;
            margin:0;
            width:25px;
            height:25px;
            background-color: white;
            text-align: center;
            float:left;
        }
        .b1 table tbody tr td div input{
            padding:0;
            width:126px;
            height:25px;
            border:0;
            float:left;
        }
        /*顶部项目区*/
        .b5_top{
            width:100%;
            height:250px;
            position: relative;
        }
        .b5_top .b5_top_target{
            margin:0 auto 0;
            width:1350px;
            height:30px;
            font-size:14px;
            overflow: hidden;
        }
        .b5_top .b5_top_target .b5_top_target_left{
            margin-left:30px;
            width:90px;
            line-height:30px;
            float:left;
            cursor:pointer;
        }
        .b5_top .b5_top_target .b5_top_target_right{
            margin-right:10%;
            width:600px;
            height:30px;
            float:right;
        }
        ul{
            margin:0;
            list-style-type:none;
        }
        .b5_top .b5_top_target .b5_top_target_right .b5_top_target_right_tip{
            line-height:30px;
            border-left:1px dashed gray;
            border-right:1px dashed gray;
            padding:0 14px 0 14px;
            cursor:pointer;
            float:left;
        }
        .b5_top .b5_top_target .b5_top_target_right .b5_top_target_right_tip:hover{
            background-color:snow;
            color:darkred;
        }
        .b5_top_display{
            margin:0 auto 0;
            width: 1350px;
            background:wheat url(http://image.baidu.com/search/down?tn=download&word=download&ie=utf8&fr=detail&url=http%3A%2F%2Fp3.gexing.com%2FG1%2FM00%2FCE%2F15%2FrBACFFKUV3zwxtFiAAY9um227e0611.jpg&thumburl=http%3A%2F%2Fimg5.imgtn.bdimg.com%2Fit%2Fu%3D37066705%2C642523342%26fm%3D21%26gp%3D0.jpg) 100% -234px no-repeat;
            height:70px;
        }
        .b5_top_display_content{
            margin-left:20%;
            padding:10px 30px 10px 30px;
            height:40px;
            width:800px;
            font-size:40px;
            font-weight:800;
            color:black;
            float:left;
        }
        .b5_top_search{
            margin:0 auto 0;
            width:1350px;
            height:150px;
            background-color:#fff;
        }
        .b5_top_search .b5_top_search_logo{
            /*display:block;*/
            float:left;
            width:240px;
            height:150px;
            background:url(http://image.baidu.com/search/down?tn=download&word=download&ie=utf8&fr=detail&url=http%3A%2F%2Fp3.gexing.com%2Ftouxiang%2F20121211%2F1456%2F50c6d91119b0e_200x200_3.jpg&thumburl=http%3A%2F%2Fimg1.imgtn.bdimg.com%2Fit%2Fu%3D1058562824%2C3247128813%26fm%3D21%26gp%3D0.jpg) no-repeat;
            cursor:pointer;
        }
        .b5_top_search .b5_top_search_search{
            margin-left:5%;
            float:left;
            width:540px;
            height:150px;
        }
        .b5_top_search .b5_top_search_search .b5_top_search_search_button{
            border:1px solid darkred;
            line-height:34px;
            width:80px;
            background-color:darkred;
            font-size:21px;
            position:relative;
            font-weight:700;
            color:white;
            float:right;
            cursor:pointer;
        }
        .b5_top_search .b5_top_search_search .b5_top_search_search_search{
            height: 30px;
            width:450px;
            float:left;
        }
        .b5_top_search .b5_top_search_note{
            margin:0;
            width:450px;
            height:30px;
        }
        .b5_top_search .b5_top_search_note .b5_top_search_note_ul{
            margin:0;
            list-style-type: none;
        }
        .b5_top_search .b5_top_search_note .b5_top_search_note_ul .b5_top_search_note_li{
            padding:0 8px 0 8px;
            border-right:1px dashed grey;
            font-size:12px;
            font-weight:300;
            color:gray;
            float:left;
        }
        .b5_top_search .b5_top_search_note .b5_top_search_note_ul .b5_top_search_note_li:hover{
            color:red;
            cursor:pointer;
        }
        .b5_top_search .b5_top_search_shoppingcar{
            border:1px solid grey;
            margin-top:60px;
            margin-left:9%;
            width:141px;
            height:45px;
            background-image:url(http://image.baidu.com/search/down?tn=download&word=download&ie=utf8&fr=detail&url=http%3A%2F%2Ft1.ituba.cc%2Fmm8%2Ftupai%2F20150909%2F211932514.jpg&thumburl=http%3A%2F%2Fimg3.imgtn.bdimg.com%2Fit%2Fu%3D3180836057%2C1724796458%26fm%3D21%26gp%3D0.jpg);
            background-position:-46px 180px;
            float:left;
            cursor:pointer;
        }
        /*中部导航区*/
        .b2_menu{
            margin:0 auto 0;
            width:1350px;
            background-color:#fff;
            height:44px;
        }
        .b2_menu .b2_menu_left{
            padding:8px 20px 2px 20px;
            height:34px;
            width:200px;
            font-size:18px;
            font-weight:500;
            color:#fff;
            font-family: "Microsoft YaHei",tahoma,arial,"Hiragino Sans GB","\5b8b\4f53",sans-serif;
            background-color:#B1191A;
            cursor:pointer;
            float:left;
        }
        .b2_menu .b2_menu_right{
            margin-left:20px;
            width:800px;
            height:44px;
            float:left;
        }
        .b2_menu .b2_menu_right .b2_menu_right_li{
            padding:10px 10px 10px 10px;
            width:100px;
            height:24px;
            font-size:16px;
            font-weight:400;
            font-family: "Microsoft YaHei",tahoma,arial,"Hiragino Sans GB","\5b8b\4f53",sans-serif;
            float:left;
        }
        .b2_menu .b2_menu_right .b2_menu_right_li:hover{
            color:#B1191A;
            cursor:pointer;
            height:16px;
            border-right:1px dashed gray;
        }
        /*主展示区*/
        .b5_main{
            margin:0 auto 0;
            width:1350px;
            overflow: auto;
        }
        /*左边菜单区*/
        .b5_left{
            width:238px;
            height:480px;
            float:left;
            background-color:#cc2954;
            border:1px solid #cc2954;
        }
        .b5_left .b5_left_menu{
            padding:10px 10px 10px 20px;
            width:210px;
            height:60px;
            font-size:16px;
            font-weight:400;
            font-family: "Microsoft YaHei",tahoma,arial,"Hiragino Sans GB","\5b8b\4f53",sans-serif;
            color:#fff;
            cursor:pointer;
        }
        .b5_left .b5_left_menu:hover{
            background-color:#fff;
            color:#cc2954;
            font-size:18px;
            font-weight:400;
            font-family: "Microsoft YaHei",tahoma,arial,
  • 6
    点赞
  • 25
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Sentry是一个前端监控工具,用于捕获和报告前端应用程序中的错误和性能问题。在React项目中使用Sentry,可以通过在入口文件index.ts中初始化Sentry来开始监控。\[1\]初始化Sentry的代码示例如下: ```javascript import * as Sentry from "@sentry/react"; import { BrowserTracing } from "@sentry/tracing"; Sentry.init({ dsn: "https://[email protected]/121", integrations: \[new BrowserTracing()\], release: '0.0.1', tracesSampleRate: 1.0, }); ``` 除了捕获错误,Sentry还可以收集页面性能方面的数据。通过在Sentry.init()中添加`new Integrations.BrowserTracing()`,可以将浏览器页面加载和导航检测作为事务,并捕获请求和其他性能指标。\[2\] Sentry是一个由各种语言的SDK和数据后台服务组成的系统。通过Sentry SDK的配置,可以上报与错误关联的版本信息和发布环境。Sentry SDK还会自动捕获异常发生前的相关操作,以便后续的异常追踪。异常数据上报到数据服务后,会通过过滤、关键信息提取和归纳展示在数据后台的Web界面中。\[3\] Sentry的功能架构如下图所示。 #### 引用[.reference_title] - *1* *2* *3* [基于Sentry的前端性能监控平台搭建与应用](https://blog.csdn.net/xiangzhihong8/article/details/128798778)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值