南骏 池
2025-03-17 34c57c119f7eb4118a02b1b7168fe394fec716be
1.样式调整,不同分辨率的大小字体
已修改4个文件
152 ■■■■ 文件已修改
H5/Scll.aspx 76 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Sctl.aspx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Images/Style.css 72 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Mst.master 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Scll.aspx
@@ -1,80 +1,30 @@
<%@ Page Title="生产领料" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="Scll.aspx.cs" Inherits="H5_Scll" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  <style>
/* 全局样式优化 */
.content-wrapper {
    margin: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
/* 表单字段分隔线 */
.van-cell-group .van-cell:not(:last-child)::after {
    border-bottom: 1px solid #eee !important;
    left: 0;
    right: 0;
}
.mySolid .van-row {
    border-bottom: .00267rem solid #b1b1b1;
}
/* 标签颜色设置 */
.van-field__label {
    color: #7c7a7a;
    flex-basis: 28%;
}
/*.van-nav-bar__content {
    height: 0.8267rem;
}*/
/* 数据文本颜色 */
.van-field__value,
.van-field__control {
    color: #333;
}
/*.van-nav-bar__title {
    max-width: 60%;
    margin: 0 auto;
    color: #323233;
    font-weight: 500;
    font-size: .3267rem;
}*/
/* 行容器样式 */
.van-tab__panel .van-row {
    padding: 2px 0;
    margin: 2px 0;
    position: relative;
    border-bottom: 1px solid #eee;
}
/* 数据列样式 */
.van-col {
    padding: 2px 2px;
    margin: 2px 0;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background: white;
    font-size: 12px;
    line-height: 1.6;
    box-sizing: border-box;
}
/* 特殊文本样式 */
.blue-text {
/*.blue-text {
    color: #1989fa;
    font-weight: 500;
}
}*/
/* 响应式优化 */
@media (max-width: 375px) {
    .van-field__label {
        flex-basis: 30%;
        font-size: 12px;
    }
    .van-col {
        padding: 2px 1px;
        margin: 1px 0;
        font-size: 11px;
    }
    .van-tab__panel .van-row {
        padding: 1px 0;
        margin: 1px 0;
    }
}
</style>
</asp:Content>
H5/Sctl.aspx
@@ -14,7 +14,7 @@
          left-arrow
          @click-left="GoBack()"
        ></van-nav-bar>
        <div>
        <div class="content-wrapper">
        <van-cell-group>
  <van-field
      ref="billNo"
Images/Style.css
@@ -4,7 +4,7 @@
    font-family: Microsoft YaHei,Helvitica,Verdana,Arial,san-serif;
    padding: 0px;
    margin: 0px;
    /*font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;*/
}
a, a:hover {
@@ -325,7 +325,11 @@
.van-tab-left .van-tab {
    -webkit-justify-content: left !important;
    justify-content: left !important;
    justify-content: left !important
}
.van-tab {
    font-size: .2733rem;
}
.mySolid .van-cell::after {
@@ -348,10 +352,28 @@
    padding: .030rem .1000rem;
    overflow: hidden;
    color: #323233;
    font-size: .3733rem;
    line-height: .64rem;
    font-size: .28rem;
    line-height: .45rem;
    background-color: #fff;
    align-items: center; /* 垂直居中对齐 */
}
/* 当屏幕宽度小于或等于600px时应用的样式 */
@media (max-width: 600px) {
    .van-cell {
        font-size: .33rem; /* 更小的字体大小 */
        line-height: .50rem;
        padding: .020rem .0800rem; /* 更小的内边距 */
    }
}
/* 当屏幕宽度大于600px且小于或等于1024px时应用的样式 */
@media (min-width: 601px) and (max-width: 1600px) {
    .van-cell {
        font-size: .28rem; /* 中等字体大小 */
        line-height: .45rem;
        padding: .025rem .0900rem; /* 中等内边距 */
    }
}
.van-button--small {
@@ -387,13 +409,12 @@
    transition: opacity 0.2s;
    -webkit-appearance: none;
    white-space: nowrap; /* 防止文字换行 */
    font-size: .32rem;
    font-size: .28rem;
}
/* 按钮长度根据内容自适应 */
.van-button {
    min-width: fit-content; /* 按钮宽度根据内容自动调整 */
    padding: 0.2rem 0.4rem; /* 保留适当的内边距 */
}
@@ -444,4 +465,43 @@
.blue-text {
    color: #1989fa; /* 设置字体颜色为蓝色 */
    font-weight: bold; /* 字体加粗 */
}
.van-nav-bar__title {
    max-width: 60%;
    margin: 0 auto;
    color: #323233;
    font-weight: 500;
    font-size: .33rem;
}
/*表头高度 2025-03-13 池南骏新增*/
.van-nav-bar__content {
    height: 0.9rem;
}
/* 表单字段分隔线 颜色淡一些 */
.van-cell-group .van-cell:not(:last-child)::after {
    border-bottom: 1px solid #eee !important;
    left: 0;
    right: 0;
}
/* 表体tab字段分隔线 颜色淡一些 */
.mySolid .van-row {
    border-bottom: .00267rem solid #b1b1b1;
}
/* 设置表头的输入框比例 */
.van-field__label {
    flex-basis: 25%;
}
/* 全局样式优化 */
.content-wrapper {
    margin: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
Mst.master
@@ -14,7 +14,7 @@
    <script src="/scripts/config.js?<%=1234 %>"></script>
    <link href="/scripts/vant/vant.css" rel="stylesheet" />
    <script src="/scripts/vant/vant.js"></script>
    <link href="/Images/Style.css?<%=15 %>" rel="stylesheet" />
    <link href="/Images/Style.css?<%=164 %>" rel="stylesheet" />
    <script src="/Scripts/uni.webview.1.5.2.js"></script>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>