美文网首页
第四周第一天上班

第四周第一天上班

作者: yisky | 来源:发表于2016-08-05 18:54 被阅读17次

今日任务:

1, 修改日历页面.
2,给首页公告栏增加附件栏.

======================

1,修改日历页面.

按钮堆砌问题

修改CSS: site.css

#tableControll {
    /*width: 30px;*/
    height: 24px;
    float:left;
    margin-left:1px;
    margin-right:1px;
}
最终效果

但在低分辨率下,按钮还是会被挤成上下行..下文会解决..(设定固定宽度)


2, 为首页公告栏增加附件栏

最终效果:


首页公告栏

使用到的 ico图标:
(可惜这里没办法上传ICO图标)

修改2处:
1,首页公告栏
2,点击更多,进入公告搜索列表页

*.cshtml :

<td>
      @if (@item.FolderId != null)
       {
           <img src="~/Images/file.ico" style="cursor:pointer;width:16px;height:16px;" onclick="window.open('/Project/OfficeView/Index?fileGuid=@item.FolderId')" />
       }
</td>

今天发现一个问题, 如果客户是17寸4:3屏幕, 那屏幕分辨率一般是1024*768px

so, 如果把显示器缩小到这个大小...唉,好多页面都惨不忍睹..

修改日历表格排版

最终效果
1,给table加 table-layout: fixed

2, 设定th固定宽度
<thead id="tablehead">
        <tr style="font-weight:bold; font-style:unset;">
            <th style="display:none" id="thId"></th>
            <th class="text-center" style="border-top-left-radius:8px;width:112px"></th>
            <th class="text-center" style="width:55px">日期</th>
            <th style="width:50px">周次</th>
            <th style="width:75px">出差号</th>
            <th style="width:90px">往返标志</th>
            <th style="width:100px">省份(区域)</th>
            <th style="width:85px">城市(国家)</th>
            <th style="width:80px">工作状态</th>
            <th>相关服务单</th>
            <th style="border-top-right-radius:8px;">个人备注</th>
        </tr>
</thead>

固定死宽度..这样 页面无论拉大缩小都对它没关系了.


修改首页 个人信息栏

最终效果

虽然依旧挺不好看的....但现在也没有新的idea.

缩小了每个DIV的宽度,删除了几个padding/margin的属性 给姓名\工号等属性值了一个新样式.

.navT{
        font-weight:normal;
    }

修改首页 公告栏, 设置固定宽度.

在1024*768下最终样式

之前是百分比宽度..缩小到1024时, 时间等格子,还是会被挤换行..现在设置成固定宽度后,不会再被挤换行了.

<table class="announcementtable" summary="Submitted table designs" style="table-layout: fixed">
    @*<caption>公告发文</caption>*@
    <thead>
        <tr>
            <th scope="col" style="min-width:85px;width:85px;">发布时间</th>
            <th scope="col" style="min-width:90px;width:90px;">发布单位</th>
            <th scope="col" style="min-width:65px;width:65px;">类型</th>
            <th scope="col">标题(点击查看)</th>
            <th scope="col" style="min-width:30px;width:30px;">附件</th>
            <th scope="col" style="min-width:45px;width:45px;">置顶</th>
        </tr>
    </thead>

修改 首页工程经验,设置固定宽度

还是设定固定宽度.低分辨率下,就不会被挤的很难看.

<table class="table table-striped table-bordered" id="tableExper" style="font-size:14px;word-break:break-all;table-layout:fixed;">
    <thead>
        <tr style="font-weight:bold; font-style:unset;">
            <th style="display:none" id="thId"></th>
            <th style="border-top-left-radius:8px;width:70px">更新时间</th>
            <th style="width:80px">经验编号</th>
            <th>问题描述</th>
            <th style="width:90px">产品大类</th>
            <th style="width:130px">产品小类</th>
            <th style="border-top-right-radius:8px;width:70px;text-align:center;">经验类别</th>
        </tr>
    </thead>

修改 工程经验页面, 表格设定固定宽度.

最终效果
<table class="table table-striped table-bordered" id="tableExperShare" style="font-size:24px;word-break:break-all;table-layout: fixed">
    <thead id="tablehead">
        <tr style="font-weight:bold; font-style:unset;">
            <th style="display:none" id="thId"></th>
            <th style="border-top-left-radius:8px;width:80px">更新时间</th>
            <th style="width:90px">经验编号</th>
            <th>问题描述</th>
            <th style="width:100px">产品大类</th>
            <th style="width:150px">产品小类</th>
            <th style="border-top-right-radius:8px;width:70px">经验类别</th>
        </tr>
    </thead>

修改 工程经验页面, 搜索栏重新排版.

1024下的效果

挺费事的...ul li 排列, 内部元素label input排列 问题, 百度了半天..
里面不能有div,我调了半天也没调好.

ProjectExperience.cshtml

    <ul class="Search_nvl">
        <li>
            <label>更新时间</label>
            <input type="text" class="input-sm form-control" name="start" id="inputStartTime" value="" onfocus="new Calendar('2000','2020','0','-','yyyy-MM-dd','ymd').show(this)" readonly="readonly" />
            -
            <input type="text" class="input-sm form-control" name="start" id="inputEndTime" value="" onfocus="new Calendar('2000','2020','0','-','yyyy-MM-dd','ymd').show(this)" readonly="readonly" />

        </li>
        <li>
            <label class="control-label" style="font-size:14px;">问题关键字</label>
            <input type="text" class="announcementscreen" style="width:165px" id="exper_keywords" value="" />
        </li>
        <li>
            <label class="control-label" style="font-size:14px;">经验编号</label>
            <input type="text" class="announcementscreen" id="exper_no" value="" />
        </li>
        <li>
            <label class="control-label" style="font-size:14px;">经验类别</label>
            @Html.DropDownList(" ", ViewData["experiencetKindlist"] as IEnumerable<SelectListItem>, "--请选择--", new { @class = "announcementscreen", id = "exper_type" })
        </li>
        <li>
            <label class="control-label" style="font-size:14px;">产品大类</label>
            @Html.DropDownList(" ", ViewData["productKindlist"] as IEnumerable<SelectListItem>, "--请选择--", new { @class = "announcementscreen", id = "exper_bigkinds", @onchange = "GetSmallKindsList(this.value);" })
        </li>
        <li>
            <label class="control-label" style="font-size:14px;">产品小类</label>
            <select id="exper_smallkinds" class="announcementscreen">
                <option value=""> </option>
            </select>
        </li>
        <li><a href="#" class="btn btn-default btn-body" style="height:30px;padding-top:5px" onclick="refreshProjectExperTable(1)">检索</a></li>
    </ul>

site.css

/*搜索栏 ul li布局*/
.Search_nvl {
    list-style: none;
    margin: 0px;
    padding: 0px;
/* 两栏之间的间距 */
    -webkit-column-gap: 1px;
    -moz-column-gap: 1px;
    -o-column-gap: 1px;
    column-gap: 1px;
}
.Search_nvl li {
    height: 30px;
    list-style: none;
    line-height: 30px;
    display: inline-block;
}
.Search_nvl li input {
    height: 26px;
    display: inline-block;
    width:200px;
}
.Search_nvl li label {
    padding-left: 20px;
    height: 30px;
    font-size:14px;
    font-weight: bold;
    margin-right: 5px;
    display: inline-block;
}
.Search_nvl li select{
    height: 26px;
    display: inline-block;
    width:200px;
}

相关文章

  • 上班第四周

    转眼三周过去,望着茫茫代码库,仍然觉得心里发慌。被陈先生一吓唬,觉得自己好不称职,是不是要被辞退了。 今天把这种担...

  • 上班第四周

    工作很有收获,也很有意义。现在我会觉得工作是一种投资。希望以后能顺利。

  • 上班第四周

    任务 修复项目WebView不能显示html代码的问题 开始提问和运营账号主页需求 修复项目WebView不能显示...

  • 第四周第一天上班

    今日任务: 1, 修改日历页面.2,给首页公告栏增加附件栏. ====================== 1,修...

  • 外贸女汉子

    2016.11.21 今天是到新公司上班的第四周的第一天。 熟悉产品 作为一个业务员,进入一个新的行业,需要花多长...

  • 【日记】七月二十三

    上课第四周的第一天,今晚打游戏,日记不更新了。(⊙x⊙;)

  • 细雨绵绵的星期一

    这是实习的第四周的第一天,三月的最后一星期。 第一周的惶惶,第二周的茫然,第三周的空落,以及第四周似乎的适应。明明...

  • 离职那些事儿?

    今天是我年后上班的第四天,也是我离职纠结的第四天。 2月20号是我上班的第一天,虽然年前做好了规划,今年会从...

  • 如何走入工作的心流

    又到了一周的第一天,脑袋还处于蒙圈的状太,没有多高的情绪来上班。有人说,如果你一周第一天不期待上班,就说明你还不是...

  • 20170526给丫头的“情书”52-100

    丫头,本周是我坚持走路上班的第四周。 今天有一个特别大的变化----我从第一天花了1个小时20分走到公司,到今天只...

网友评论

      本文标题:第四周第一天上班

      本文链接:https://www.haomeiwen.com/subject/vypgjttx.html