山东大学软件学院创新项目实训DrugLLM-基于大语言模型的药物分子性质分析平台(五)

在上周制定了前端美化需求之后,我们希望整个前端界面是丝滑的、对用户操作友好的。

于是,我先从头部样式设计开始,确定整个项目的整体基调。

代码如下:

<!-- 头部 -->
<div style="position: fixed; top: 0; left: 0; width: 100%;  z-index: 1000;display: flex; height: 60px; line-height: 60px; border-bottom: 1px solid rgb(53, 46, 46);background-color: rgb(43, 121, 170); border-bottom-left-radius: 10px; border-top-right-radius: 10px; border-bottom-right-radius: 10px;">
        <div style="width: 200px; text-align: center;"><h1 style="color:rgb(255, 255, 255)">DrugLLM</h1> </div>
        <div style="flex: 1;">
        <el-menu :default-active="activeIndex2" class="el-menu-demo" mode="horizontal" router style="background-color:rgb(43, 121, 170);display: flex; justify-content: center;" >
            <el-menu-item index="/front/home" style="font-weight: bold;font-size: larger; color:rgb(255, 255, 255)">
            <i class="el-icon-s-home"></i>
            Home
        </el-menu-item>
        <el-menu-item index="/front/consult"  style="font-weight: bold;font-size: larger; color:rgb(255, 255, 255)">
            <i class="el-icon-s-opportunity"></i>
            Consult
        </el-menu-item>
        <el-menu-item index="/front/trans" style="font-weight: bold;font-size: larger;color:rgb(255, 255, 255) " >
            <i class="el-icon-thumb"></i>
            Transform
        </el-menu-item>
        <el-menu-item index="/front/analysis" style="font-weight: bold;font-size: larger;color:rgb(255, 255, 255) " >
            <i class="el-icon-s-data"></i>
            Anaslyse
        </el-menu-item>
       </el-menu>
 </div>

效果如下:

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值