百度搜索结果页面

代码:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .er{
            width: 640px;
            /*background-color: pink;*/
        }

        .er > div {
            float: left;

        }

        .left-box {
            width: 538px;
            height: 34px;
            /*background-color: greenyellow;*/
            border: 1px solid #3385ff;
        }

        .right-box {
            height: 36px;
            width: 100px;
            background-color: cornflowerblue;
            text-align: center;
            line-height: 36px;
            color: #fff;

        }
        input {
            outline: none;
            border: 0;
            height: 32px;
            width: 500px;
            margin-left: 5px;
        }
        .ding{
            height: 50px;
            width: 100%;
            border-bottom:solid 1px lightgray;
        }
       .ding .center{
            float: left;
        }
        .ding img{
            float: left;
            line-height: 50px;

        }
        .ding .wen{
            height: 50px;
            text-align: right;
        }
        .ding .wen span{
            margin: 0 5px;
            line-height: 50px;
        }

        .dao{
            height: 40px;
            width: 100%;
            background-color: rgb(248,248,248);
        }
        .dao .kon{
            height: 40px;
            width: 10%;
            float: left;
        }
        .dao .han{
            height: 40px;
            width: 50%;
            float: left;
        }
        .dao .han span{
            line-height: 40px;
            margin-left: 15px;
        }
        .di{
            height: 800px;
            width: 100%;

        }
        .di >.d_left{
            height: 100%;
            width: 10%;

            float: left;
        }
        .di >.d_center{
            height: 100%;
            width: 60%;
            border-right:solid 2px gray ;
            float: left;

        }
        .di >.d_center p{
           font-size: 12px;
            margin-top: -3px;
        }
        .dc{
               height: 150px;
               width: 80%;

           }
        .dc .dc_left{
            height: 100%;
            width: 20%;

            float: left;
        }
        .dc .dc_right{
            height: 179px;
            width: 80%;
            float: left;
        }
        .d_right{
            height: 200px;
            width: 29.5%;
            float: right;
        }
        .d_right .dr_center div{
               height:279px;
               width: 30%;
               float:left;
               text-align: center;
               font-size: 12px;
           }
        .d_right .dr_center p{
           margin: 3px;
        }
        .d_right .dr_center span  a{
        color: blue;
        }

    </style>
</head>
<body>
<div class="san">
   <!--顶部-->
 <div class="ding">
    <img src="baidu.jpg" alt="" height="40" width="10%">
    <div class="center" >
        <div  class="er">
        <div class="left-box">
        <input type="text">
        <img src="" alt="">
        </div>
        <div class="right-box">
        百度一下
        </div>
        </div>
    </div>
    <div class="wen">
        <span>百度首页</span>
        <span>设置</span>
        <span>登录</span>
    </div>
 </div>
    <!--导航-->
 <div class="dao">
     <div class="kon"></div>
     <div class="han">
         <span>网页</span>
         <span>资讯 </span>
         <span>视频 </span>
         <span>图片 </span>
         <span>知道 </span>
         <span>文库</span>
         <span>贴吧</span>
         <span>采购 </span>
         <span>地图 </span>
         <span>更多»</span>
     </div>
 </div>
    <!--主体-->
 <div class="di">
     <div class="d_left"></div>
     <div class="d_center">
         <p>百度为您找到相关结果约54 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;更多</p>
         <div class="dc">
             <div class="dc_top"><a href=""><h3><span style="color: red">百度</span>一下,你就知道</h3></a></div>
             <div class="dc_left">
                 <img src="u=357489844,4049484276&fm=26&gp=0.jpg" alt="" height="90%" width="100%">
             </div>
             <div class="dc_right">通常情况下,我们用空格键来打出多个空格,而在编写代码时,通过空格键、Tab键以及回车键打出的空格,都会被HTML(超文本标记语言)自动忽略。HTML将这样的键视为空白字符,并显示为单个空白间隔。尽管CSS提供了多种样式的空格和缩进,但是在HTML中也有一些工具可以让你自己定义空格。</div>
         </div>
         <div class="dc">
             <div class="dc_top"><a href=""><h3><span style="color: red">百度</span>一下,你就知道</h3></a></div>
             <div class="dc_left">
                 <img src="baidu.jpg" alt="" height="90%" width="100%">
             </div>
             <div class="dc_right">通常情况下,我们用空格键来打出多个空格,而在编写代码时,通过空格键、Tab键以及回车键打出的空格,都会被HTML(超文本标记语言)自动忽略。HTML将这样的键视为空白字符,并显示为单个空白间隔。尽管CSS提供了多种样式的空格和缩进,但是在HTML中也有一些工具可以让你自己定义空格。</div>
         </div><div class="dc">
         <div class="dc_top"><a href=""><h3><span style="color: red">百度</span>一下,你就知道</h3></a></div>
         <div class="dc_left">
             <img src="baidu.jpg" alt="" height="90%" width="100%">
         </div>
         <div class="dc_right">通常情况下,我们用空格键来打出多个空格,而在编写代码时,通过空格键、Tab键以及回车键打出的空格,都会被HTML(超文本标记语言)自动忽略。HTML将这样的键视为空白字符,并显示为单个空白间隔。尽管CSS提供了多种样式的空格和缩进,但是在HTML中也有一些工具可以让你自己定义空格。</div>
     </div>
     </div>

     <div class="d_right">
         <div class="dr_top">附近房价开始你发送到</div>
         <div class="dr_center">
             <div>
                 <img src="u=357489844,4049484276&fm=26&gp=0.jpg" alt="" width="100%" height="30%">
                 <span><a href="">电风扇</a></span>
                 <p>时代峻峰黄寺</p>
                 <p>时代峻峰黄寺</p>
             </div>
             <div>
                 <img src="u=357489844,4049484276&fm=26&gp=0.jpg" alt="" width="100%" height="30%">
                 <span><a href="">电风扇</a></span>
                 <p>时代峻峰黄寺</p>
                 <p>时代峻峰黄寺</p>
             </div>
             <div>
                 <img src="u=357489844,4049484276&fm=26&gp=0.jpg" alt="" width="100%" height="30%">
                 <span><a href="">电风扇</a></span>
                 <p>时代峻峰黄寺</p>
                 <p>时代峻峰黄寺</p>
             </div>
         </div>
     </div>
     <div class="d_right">
         <div class="dr_top">附近房价开始你发送到</div>
         <div class="dr_center">
             <div>
                 <img src="u=357489844,4049484276&fm=26&gp=0.jpg" alt="" width="100%" height="30%">
                 <span><a href="">电风扇</a></span>
                 <p>时代峻峰黄寺</p>
                 <p>时代峻峰黄寺</p>
             </div>
             <div>
                 <img src="u=357489844,4049484276&fm=26&gp=0.jpg" alt="" width="100%" height="30%">
                 <span><a href="">电风扇</a></span>
                 <p>时代峻峰黄寺</p>
                 <p>时代峻峰黄寺</p>
             </div>
             <div>
                 <img src="u=357489844,4049484276&fm=26&gp=0.jpg" alt="" width="100%" height="30%">
                 <span><a href="">电风扇</a></span>
                 <p>时代峻峰黄寺</p>
                 <p>时代峻峰黄寺</p>
             </div>
         </div>
     </div>
     <div class="d_right">
         <div class="dr_top">附近房价开始你发送到</div>
         <div class="dr_center">
             <div>
                 <img src="u=357489844,4049484276&fm=26&gp=0.jpg" alt="" width="100%" height="30%">
                 <span><a href="">电风扇</a></span>
                 <p>时代峻峰黄寺</p>
                 <p>时代峻峰黄寺</p>
             </div>
             <div>
                 <img src="u=357489844,4049484276&fm=26&gp=0.jpg" alt="" width="100%" height="30%">
                 <span><a href="">电风扇</a></span>
                 <p>时代峻峰黄寺</p>
                 <p>时代峻峰黄寺</p>
             </div>
             <div>
                 <img src="u=357489844,4049484276&fm=26&gp=0.jpg" alt="" width="100%" height="30%">
                 <span><a href="">电风扇</a></span>
                 <p>时代峻峰黄寺</p>
                 <p>时代峻峰黄寺</p>
             </div>
         </div>
     </div>
 </div>   

</div>

</body>
</html>

运行结果:
在这里插入图片描述

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 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、付费专栏及课程。

余额充值