web应用技术实践 day04

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>百度搜索页面</title>
    <style>
        .input {
            width: 600px;
            height: 30px;
            background-position: right;
            background-size: 23px;
            border: 1px solid #59aaff;
            font-size: 20px;
            vertical-align: middle;
            float: left;
        }

        .btn {
            height: 34px;
            width: 100px;
            background-color: #59aaff;
            border-color: #59aaff;
            color: white;
            font-size: 15px;
            vertical-align: middle;
            float: left;
        }

        .a {
            font-size: 13px;
            line-height: 34px;
            margin-right: 10px;
            color: black;
        }

        .a2 {
            font-size: 15px;
            margin-right: 12px;
            line-height: 38px;
            width: 54px;
            height: 36px;
            color: gray;
            text-decoration: none;
        }

        .a2:hover {
            color: black;
        }
        .a3{
            font-size: 12px;
            color: #222eff;
        }
        .a4{
            font-size: 13px;
            color: #A9A9A9;
        }
    </style>
</head>
<body>
<div style="height: 500px;margin: auto">
    <div style="height: 45px;">
        <div style="position: relative;height: 34px;float:left;">
            <img src="1.png" style="height: 34px;width: 100px;float: left">
            <input type="text" name="baidu" value="" class="input">
            <input type="button" name="ensure" value="百度一下" class="btn">
        </div>
        <div style="position: relative;height: 34px;float:right;">
            <a href="" class="a">百度首页</a>
            <a href="" class="a">设置</a>
            <a href="" class="a">登录</a>
        </div>
    </div>
    <div style="height: 38px;clear: both;background-color:#F5F5F5">
       <span style="margin-left: 100px;">
        <a href="" class="a2">网页</a>
        <a href="" class="a2">咨询</a>
        <a href="" class="a2">视频</a>
        <a href="" class="a2">图片</a>
        <a href="" class="a2">知道</a>
        <a href="" class="a2">文库</a>
        <a href="" class="a2">贴吧</a>
        <a href="" class="a2">采购</a>
        <a href="" class="a2">地图</a>
        <a href="" class="a2">更多>></a></span>
    </div>
    <div style="width: 720px;height: 402px;margin-left: 100px;float: left;margin-top: 15px">
        <div style="width: 720px;height: 100px;">
            <div>
                <a href="" style="color: #3c3bff;font-size: 18px;">百度一下,你就知道</a>
            </div>
            <div style="float: left;margin-right: 10px">
                <img src="z1.png" style="width: 121px;height: 100px;">
            </div>
            <div style="float: left;width: 397px;height: 60px;">
                <p style="font-size: 13px;line-height: 160%;">
                    全球最大的中文搜索引擎、致力于让网民更便捷地获取信息,找到所求。百度超过千亿的中文网页数据库,可以瞬间找到相关的搜索结果。
                </p>
            </div>
        </div>
        <div style="width: 720px;height: 100px;margin-top: 15px">
            <div style="clear: both;">
                <a href="" style="color: #3c3bff;font-size: 18px;">百度,百度百科</a>
            </div>
            <div style="float: left;margin-right: 10px">
                <img src="z2.png" style="width: 121px;height: 100px;">
            </div>
            <div style="float: left;width: 397px;height: 60px;">
                <p style="font-size: 13px;line-height: 160%;">
                    百度(纳斯达克:BIDU),全球最大的中文搜索引擎、最大的中文网站。百度愿景是:成为最懂用户,并能帮助人们成长的全球顶级高科技公司。“百度”二字,来自于八百年前南宋词人.
                </p>
            </div>
        </div>
        <div style="width: 720px;height: 100px;margin-top: 15px">
            <div style="clear: both;">
                <a href="" style="color: #3c3bff;font-size: 18px;">百度[BIDU]美股实时行情_老虎证券</a>
            </div>
            <div style="float: left;margin-right: 10px">
                <img src="z3.png" style="width: 500px;height: 300px;">
            </div>

        </div>
    </div>
    <div style="width: 1px;height: 570px;float: left;margin-top: 15px;background-color: darkgrey"></div>
    <div style="width: 350px;height: 402px;;float: left;margin-top: 15px;margin-left: 15px">
        <div>
            <span> <b>百度高管</b></span>
            <a href="" class="a3" style="margin-left:224px">展开</a>
            <img  style="width: 20px;height: 10px" src="img/16.png">
            <table>
                <tr>
                    <td><img src="y1.jpg" style="width: 75px;height: 75px;padding-right: 8px"></td>
                    <td><img src="y2.png" style="width: 75px;height: 75px;padding-right: 8px"></td>
                    <td><img src="y3.png" style="width: 75px;height: 75px;padding-right: 8px"></td>
                    <td><img src="y4.png" style="width: 75px;height: 75px;"></td>

                </tr>
                <tr>
                    <td style="text-align: center"><a href="" class="a3">李彦宏</a></td>
                    <td style="text-align: center"><a href="" class="a3">余正钧</a></td>
                    <td style="text-align: center"><a href="" class="a3">张亚勤</a></td>
                    <td style="text-align: center"><a href="" class="a3">王海峰</a></td>
                </tr>
                <tr class="a4">
                    <td style="text-align: center">百度创始人</td>
                    <td style="text-align: center">百度集团首</td>
                    <td style="text-align: center">百度总裁</td>
                    <td style="text-align: center">百度集团首</td>
                </tr>
                <tr class="a4">
                    <td style="text-align: center">董事长CEO</td>
                    <td style="text-align: center">席财务官</td>
                    <td style="text-align: center"></td>
                    <td style="text-align: center">席技术官</td>
                </tr>
            </table>
        </div>
        <div style="margin-top: 20px">
            <span ><b>百度旗下产品</b></span>
            <a href="" class="a3" style="margin-left:194px">展开</a>
            <img  style="width: 20px;height: 10px" src="img/15.png">
            <table>
                <tr>
                    <td><img src="y9.png" style="width: 75px;height: 75px; padding-right: 8px"></td>
                    <td><img src="y10.png" style="width: 75px;height: 75px;padding-right: 8px"></td>
                    <td><img src="y11.png" style="width: 75px;height: 75px;padding-right: 8px"></td>
                    <td><img src="y12.png" style="width: 75px;height: 75px;"></td>
                </tr>
                <tr>
                    <td style="text-align: center"><a href="" class="a3">百度搜索</a></td>
                    <td style="text-align: center"><a href="" class="a3">百度APP</a></td>
                    <td style="text-align: center"><a href="" class="a3">百度糯米</a></td>
                    <td style="text-align: center"><a href="" class="a3">百度地图</a></td>
                </tr>
                </tr>
                <tr class="a4">
                    <td style="text-align: center">全球最大中</td>
                    <td style="text-align: center">有事搜一搜</td>
                    <td style="text-align: center">本地精品生</td>
                    <td style="text-align: center">亿万人在用</td>
                </tr>
                <tr class="a4">
                    <td style="text-align: center">文搜索引擎</td>
                    <td style="text-align: center">没事看一看</td>
                    <td style="text-align: center">活指南</td>
                    <td style="text-align: center">的专业地图</td>
                </tr>
            </table>
        </div>
        <div style="margin-top: 20px">
            <span ><b>互联网巨头财报</b></span>
            <a href="" class="a3" style="margin-left:194px">展开</a>
            <img  style="width: 20px;height: 10px" src="img/15.png">
            <table>
                <tr>
                    <td><img src="y9.png" style="width: 75px;height: 75px; padding-right: 8px"></td>
                    <td><img src="y10.png" style="width: 75px;height: 75px;padding-right: 8px"></td>
                    <td><img src="y11.png" style="width: 75px;height: 75px;padding-right: 8px"></td>
                    <td><img src="y12.png" style="width: 75px;height: 75px;"></td>
                </tr>
                <tr>
                    <td style="text-align: center"><a href="" class="a3">亚马逊财报</a></td>
                    <td style="text-align: center"><a href="" class="a3">苹果财报</a></td>
                    <td style="text-align: center"><a href="" class="a3">网易财报</a></td>
                    <td style="text-align: center"><a href="" class="a3">新浪财报</a></td>
                </tr>
            </table>
        </div>
    </div>
</div>
</body>
</html>

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
View.OnClickListener onClickListener=new View.OnClickListener() { @Override public void onClick(View view) { switch (view.getId()) { case R.id.baidu_btn: if (MDMUtil.appIsInstalled( getContext(),"com.baidu.BaiduMap")) {//传入指定应用包名 try { double[] gd_lat_lon ; if(RoutingXModel.isGpslatlon){ gd_lat_lon= gaoDeToBaidu(xModel.poc_lon,xModel.poc_lat); }else{ gd_lat_lon= new double[2]; gd_lat_lon[0]=xModel.poc_lon; gd_lat_lon[1]=xModel.poc_lat; } Intent intent = Intent.getIntent("intent://map/direction?" + "destination=latlng:" + gd_lat_lon[1] + "," + gd_lat_lon[0]+ "|name:我的目的地" + //终点 "&mode=driving&" + //导航路线方式 "&src=appname#Intent;scheme=bdapp;package=com.baidu.BaiduMap;end"); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); getContext().startActivity(intent); //启动调用 } catch (URISyntaxException e) { Log.e("intent", e.getMessage()); } } else {//未安装 //market为路径,id为包名 //显示手机上所有的market商店 Toast.makeText(getContext(), "您尚未安装百度地图", Toast.LENGTH_LONG).show(); Uri uri = Uri.parse("market://details?id=com.baidu.BaiduMap"); Intent intent = new Intent(Intent.ACTION_VIEW, uri); if (intent.resolveActivity(getContext().getPackageManager()) != null){ getContext().startActivity(intent); } } dismiss(); break; case R.id.gaode_btn: if (MDMUtil.appIsInstalled( getContext(),"com.autonavi.minimap")) { Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.addCategory(Intent.CATEGORY_DEFAULT); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); double[] gd_lat_lon ; if(!RoutingXModel.isGpslatlon){ gd_lat_lon= bdToGaoDe(xModel.poc_lat,xModel.poc_lon); }else{ gd_lat_lon= new double[2]; gd_lat_lon[0]=xModel.poc_lon; gd_lat_lon[1]=xModel.poc_lat; } //将功能Scheme以URI的方式传入data Uri uri = Uri.parse("androidamap://navi?sourceApplication=appname&poiname=fangheng&lat;=" + gd_lat_lon[1] + "&lon;=" + gd_lat_lon[0] + "&dev=0&style=4"); intent.setData(uri); //启动该页面即可 getContext().startActivity(intent); } else { Toast.makeText(getContext(), "您尚未安装高德地图", Toast.LENGTH_LONG).show(); Uri uri = Uri.parse("market://details?id=com.autonavi.minimap"); Intent intent = new Intent(Intent.ACTION_VIEW, uri); if (intent.resolveActivity(getContext().getPackageManager()) != null){ getContext().startActivity(intent); } } dismiss(); break; case R.id.tencent_btn: Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.addCategory(Intent.CATEGORY_DEFAULT); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); double[] gd_lat_lon ; if(!RoutingXModel.isGpslatlon){ gd_lat_lon= bdToGaoDe(xModel.poc_lat,xModel.poc_lon); }else{ gd_lat_lon= new double[2]; gd_lat_lon[0]=xModel.poc_lon; gd_lat_lon[1]=xModel.poc_lat; } //将功能Scheme以URI的方式传入data Uri uri = Uri.parse("qqmap://map/routeplan?type=drive&to;=我的目的地&tocoord;=" + gd_lat_lon[1]+ "," + gd_lat_lon[0]); intent.setData(uri); if (intent.resolveActivity(getContext().getPackageManager()) != null) { //启动该页面即可 getContext().startActivity(intent); } else { Toast.makeText(getContext(), "您尚未安装腾讯地图", Toast.LENGTH_LONG).show(); } dismiss(); break; case R.id.cancel_btn2: dismiss(); break; } } };

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值