小编ald*_*122的帖子

高度:100%在Internet Explorer中不起作用

我对height:100%Internet Explorer中的CSS属性有疑问.

height:100% 在IE中不起作用,但它在Firefox和Chrome中起作用.

HTML文件:

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<html style="height:100%;">

<head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="style.css" type="text/css" />
</head>

<body>
    <div id="menu_neu">
        <ul id="topNav">
            <li class="current"><a href="#section-1">SECTION 1</b></a>
            </li>
            <li><a href="#section-2">SECTION 2 </b></a>
            </li>
        </ul>
    </div>
    <div id="wrapper">
        <!--SECTION- 1 .....................................................................................................................................-->
        <div class="section" id="section-1">SECTION - 1
            <div style="height:100%;" id="intro">
                <div class="story">
                    <div class="bg1"></div>
                    <div class="bg2"></div>
                    <div class="bg3"></div>
                    <div class="float-left" style="margin-top:120px; width:500px;">
                         <h2>HEIGHT 100% works in Chrome and Firefox,<br> <b>but not in IE!</b></h2>

                        <div id="s1Pfeil1" style="padding-top:120px;padding-left:255px;"> <a href="#second" …
Run Code Online (Sandbox Code Playgroud)

html css internet-explorer

24
推荐指数
3
解决办法
6万
查看次数

Google地图自动完成材料设计

我有一个关于在材料设计中实施Google Maps自动完成功能的问题:

<md-autocomplete flex="" md-no-cache="ctrl.noCache" md-selected-item="ctrl.selectedItem" md-search-text="ctrl.searchText" md-items="item in ctrl.querySearch(ctrl.searchText)" md-item-text="item.display" md-floating-label="Favorite state">
    <span md-highlight-text="ctrl.searchText">{{item.display}}</span>
</md-autocomplete>
Run Code Online (Sandbox Code Playgroud)

角度材质自动完成 | Google地图自动填充功能

如何在谷歌地图自动完成(角度)中使用材料设计的自动完成?

提前致谢.

我找到了这个解决方案:我只覆盖了css proprties:

/*maps autocomplete*/
.pac-item{
    font-family:RobotoDraft,Roboto,'Helvetica Neue',sans-serif !important;
    font-weight: 300 !important;
    color: rgb(33,33,33) !important;
    line-height: 40px !important;
    /*font-weight: 800;*/
}

.pac-item-query{
    font-family:RobotoDraft,Roboto,'Helvetica Neue',sans-serif !important;
    font-size: 16px;
}

.pac-item:hover{
    background-color: #eeeeee !important;
    transition: background .15s linear;
}

.pac-container{
    color: rgb(33,33,33) !important;
    background-color: #fafafa;
    /*font-weight: 800;*/
}

.pac-icon, .pac-icon-marker{
    background: none !important;
    background-image: none !important;
}
Run Code Online (Sandbox Code Playgroud)

javascript css google-maps google-maps-api-3 material-design

7
推荐指数
2
解决办法
4416
查看次数

用于逗号分隔字符串的Angular ng-repeat

我在angularjs中有一个问题.

在我的控制器中,我有一个逗号分隔的字符串,我将在我的index.html中显示它(使用ng-repeat)

这是我的控制器:

myApp.controller('TabsDemoCtrl',function($scope,$http){
    $http.get('/performbatch').success(function(data) {
        $scope.string = 'Gzrgh,1,2,1,4,1,1,1,20150304,20180304';
        $scope.arrString = new Array();
        $scope.arrString = $scope.string.split(',');
    });
Run Code Online (Sandbox Code Playgroud)

这是我的HTML:

<div ng-controller="TabsDemoCtrl">
    <td ng-repeat="icerik in arrString">
       {{icerik}}
    </td>
</div>
Run Code Online (Sandbox Code Playgroud)

但我无法做到这一点.你能帮助我吗?提前致谢.

comma angularjs angularjs-ng-repeat

5
推荐指数
1
解决办法
1万
查看次数

在评论当前行后,WebStorm会自动转到下一行

我有一个关于WebStorm的问题:如果我注释掉一行,我的光标会自动跳到下一行.

我怎么能避免这个?

comments phpstorm webstorm

4
推荐指数
1
解决办法
173
查看次数

jQuery得到td宽度

我想学习jQuery"td width",举个例子:

if(td.width=="100"){
    alert("td width = 100");
}
Run Code Online (Sandbox Code Playgroud)

请解释.

<table width="200" border="1">
    <tr>
        <td width="100">Number</td>
        <td width="50">Order</td>
    </tr>
    <tr>
        <td width="100">1</td>
        <td width="50">Car</td>
    </tr>
</table>
Run Code Online (Sandbox Code Playgroud)

jquery html-table width

3
推荐指数
1
解决办法
3万
查看次数