西科美食评

<!DOCTYPE html>
<html>
<head>
    <title>西科美食评</title>
    <style>
        * {
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }
        header {
            text-align: center;
            margin-bottom: 20px;
        }
        section {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .item {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .item span {
            font-size: 18px;
        }

        .item img {
            width: 50px;
            height: 50px;
            object-fit: cover;
        }

    </style>
</head>
<body>
    <header style="text-align:center;">
        <h1>西科美食评</h1>
    </header>
    <h3 style="text-align:left;">西科美食排行榜</h3>

    <section>
        <div style="width:50%; float:left;">
            <section>
                <div class="item">
                    <span>①</span>
                    <img src="image.jpg" alt="图片">
                    <span>乐美滋泡泡鸡</span>
                    <span>&gt;</span>
                </div>
        
                <div class="item">
                    <span>②</span>
                    <img src="image.jpg" alt="图片">
                    <span>美美烤鱼</span>
                    <span>&gt;</span>
                </div>
        
                <div class="item">
                    <span>③</span>
                    <img src="image.jpg" alt="图片">
                    <span>幸福炸鸡块</span>
                    <span>&gt;</span>
                </div>
            </section>
            <!-- 左侧部分内容 -->
        </div>
        <div style="width:50%; float:right;">
           <!--右侧部分内容-->
        </div>
    </section>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
    <title>西科美食评</title>
    <style>
        * {
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }

        .header {
            text-align: center;
            margin-bottom: 20px;
        }

        .section {
            text-align: center;
            margin-bottom: 20px;
        }

        .button-group {
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }

        .button {
            padding: 10px 20px;
            background-color: #f2f2f2;
            border-radius: 5px;
            text-decoration: none;
            color: #333;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>西科美食评</h1>
    </div>

    <div class="section">
        <h2>西科美食排行榜</h2>
    </div>

    <div class="button-group">
        <a href="#" class="button">排行榜</a>
        <a href="#" class="button">全部商家</a>
        <a href="#" class="button">我的</a>
    </div>
</body>
</html>
<!DOCTYPE html>
<html>

<head>
    <title>西科美食评</title>
    <style>
        * {
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .header {
            text-align: center;
            padding-bottom: 10px;
        }

        .section {
            text-align: center;
            padding-top: 10px;

        }

        .button-group {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            margin-top: auto;
        }

        .button {
            padding: 10px 20px;
            background-color: #f2f2f2;
            border-radius: 5px;
            text-decoration: none;
            color: #333;
            font-weight: bold;
        }

        

        .item img {
            width: 50px;
            height: 50px;
            margin-right: 10px;
        }
        .container {
            overflow-y: scroll;
            height: 300px;
        }
        
        .inner-container {
            display: flex;
            flex-direction: column;
            padding: 10px;
        }
        
        .item {
            margin-bottom: 10px;
            background-color: #f5f5f5;
            height: 100px;
        }
    </style>
</head>

<body>
    <div class="header">
        <h1>西科美食排行榜</h1>
        <input type="text" class="search-box" placeholder="搜索餐品...">
        <button class="search-button">搜索</button>
    </div>

    <div class="section">
        <div class="container">
            <div class="inner-container">
                <div class="item">

                    <span>①</span>
                    <img src="paopaoji.jpg" alt="图片" style="width: 100px; height: 100px;">
                    <span>乐美滋泡泡鸡</span>
                    <span type="button">&gt;</span>
                </div>
                <div class="item">
                    <span>②</span>
                    <img src="kaoyu.jpg" alt="图片" style="width: 100px; height: 100px;">
                    <span>美美烤鱼</span>
                    <span type="button">&gt;</span>
                </div>
                <div class="item">
                    <span>③</span>
                    <img src="zhaji.jpg" alt="图片" style="width: 100px; height: 100px;">
                    <span>幸福炸鸡块</span>
                    <span type="button">&gt;</span>
                </div>
                <div class="item">内容 4</div>
                <div class="item">内容 5</div>
            </div>
        </div>

        <!-- <section>
            <div class="item">
                <span>①</span>
                <img src="paopaoji.jpg" alt="图片" style="width: 300px; height: 200px;">
                <span>乐美滋泡泡鸡</span>
                <span type="button">&gt;</span>
            </div>

            <div class="item">
                <span>②</span>
                <img src="kaoyu.jpg" alt="图片" style="width: 300px; height: 200px;">
                <span>美美烤鱼</span>
                <span type="button">&gt;</span>
            </div>

            <div class="item">
                <span>③</span>
                <img src="zhaji.jpg" alt="图片" style="width: 300px; height: 200px;">
                <span>幸福炸鸡块</span>
                <span type="button">&gt;</span>
            </div>

        </section> -->

    </div>

    <div class="button-group">
        <div>
            <a href="#" class="button">排行榜</a>
        </div>
        <div>
            <a href="#" class="button">全部商家</a>
        </div>
        <div>
            <a href="#" class="button">我的</a>
        </div>
    </div>
</body>

</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小李(写代码版)

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值