div中间的div和删除阴影顶部

时间:2016-02-10 15:38:50

标签: css css3

我有一个div,我想改变两件事:

1)删除TOP影子:

function LazyFormatLayout() { }
LazyFormatLayout.prototype = new log4javascript.Layout();
LazyFormatLayout.prototype.format = function (loggingEvent) {
    var time = loggingEvent.timeStamp.toTimeString().split(/\s/)[0];

    var head = time + ' ' + loggingEvent.logger.name + ' [' + loggingEvent.level.name + '] - ';
    var body = loggingEvent.messages.map(function (arg) {
        try {
            switch (typeof (arg)) {
                case 'function':
                    return arg();
                case 'object':
                    return JSON.stringify(arg);
            }
        }
        catch (e) {
            return '<<error while logging: ' + e.stack + '>>';
        }
        return arg;

    }).join('');
    if (!loggingEvent.exception)
        return head + body;

    return head + body + ' ==> Exception: ' + loggingEvent.exception.stack;
}

LazyFormatLayout.prototype.ignoresThrowable = function () { return false; };
LazyFormatLayout.prototype.toString = function () { return "LazyFormatLayout"; };

2)在div新闻中间没有任何位置:

box-shadow:0 0 10px #000;

完整的css:

.nothing{
 height:100%;
 text-align:center;
 border:1px solid #000;
}

https://jsfiddle.net/1bLdnd06/

谢谢你的朋友们!

2 个答案:

答案 0 :(得分:1)

我总是使用此网站为您生成框阴影: http://css3gen.com/box-shadow/

答案 1 :(得分:1)

你应该像这样编辑你的css代码。

&#13;
&#13;
   #news{
     width: 140px;
     min-height:100px;
     background: #fff; 
     color: #000;
     border:1px solid #000;
     z-index:3000;
    }
    
    
    #news ul{
     list-style-type: none;
     padding: 0 ;
    }
    .news li{
     padding:10px;
    }
    .nothing{
     margin-top: 20px;
     padding: 20px;
     height:100%;
     text-align:center;
     border:1px solid #000;
     border-left: 0px solid;
     border-right: 0px solid;
    }
&#13;
<br><br>
<div id=news>
<ul>
<li class=nothing>nothing here</li>
</ul>
</div>
&#13;
&#13;
&#13;