小编FUR*_*GIN的帖子

如何在Ubuntu上设置和运行PhantomJS?

我设置了PhantomJS并将其录制到视频:https://www.dailymotion.com/video/xnizmh_1_webcam

构建说明:http://phantomjs.org/build.html

我的设置有什么问题吗?

在我设置之后,我阅读了快速入门教程并尝试编写此代码

phantomjs hello.js 
Run Code Online (Sandbox Code Playgroud)

它给了我"命令未找到"错误.我怎么解决这个问题?

linux installation ubuntu phantomjs

161
推荐指数
7
解决办法
14万
查看次数

html页面中的自定义页眉和页脚

我想在打印模式下将页眉和页脚放在每个页面中.我做了很多研究.

我找到了两个解决方案.但它们不是跨浏览器(我希望它能在IE,Firefox和Chrome中运行)

第一个解决方案:我在内容表的顶部和底部设置边距.然后我用固定位置写这个空间的页眉和页脚.它在Firefox中运行良好.但在IE和Chrome中并没有设定利润率.同样在Chrome中,它不会为每个页面编写页眉和页脚.

这是我的代码:

pagination.php

<!DOCTYPE HTL> 
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
    <meta name="robots" content="noindex, nofollow">
    <meta name="googlebot" content="noindex">
    <meta http-equiv="cache-control" content="no-cache">    
    <title>Brove.NET ISO Yaz?l?m?</title>
    <link rel="stylesheet" type="text/css" href="css/pagination.css" />
</head>

<body>
    <table class="header" cellpadding="0" cellspacing="0">
      <tr>
        <td>header
        </td>
      </tr>
    </table>

    <table class="content" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top">
       content
        </td>
      </tr>
    </table>

    <table class="footer" cellpadding="0" cellspacing="0">
      <tr>
        <td>footer
        </td>
      </tr>
    </table>

</body>
</html>
Run Code Online (Sandbox Code Playgroud)

pagination.css

@media screen{
    .header{
        width:768px;
        height:100px;
        border:2px solid #000;
    }

    .content{
        width:768px;
        margin-top:10px;
        margin-bottom:10px;
        height:1000px;
    } …
Run Code Online (Sandbox Code Playgroud)

css printing google-chrome header footer

7
推荐指数
1
解决办法
6572
查看次数

table-header-group,table-footer-group属性在Chrome中不起作用

这是我的代码.http://furkan.brove.net/syflm.php

打印时,它无法在Chrome中运行.我希望它在打印模式下将页眉和页脚放在每个页面上.此外,在每个浏览器中,最后一个页脚都是内容的底部.但我希望它成为页面的底部.

有什么方法可以解决我的问题吗?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex">
<meta http-equiv="cache-control" content="no-cache">    
<meta http-equiv="X-UA-Compatible" content="IE=8" />

<title>Brove.NET ISO Yaz?l?m?</title>
<link rel="stylesheet" type="text/css" href="css/pagination.css" />
<style>
    #all thead { display: table-header-group; }
    #all tfoot { display: table-footer-group; }
    .header_table{ height:100px; }
    .footer_table{ height:100px; }
</style>
</head>

<body>
<table id="all">
   <thead><tr><td><table class="header_table"><tr><td>Your header goes here</td></tr></table></td></tr></thead>
   <tfoot><tr><td><table class="footer_table"><tr><td>Your footer goes here</td></tr></table></td></tr></tfoot>
   <tbody>
     <tr><td>
       Page body in here …
Run Code Online (Sandbox Code Playgroud)

css pagination google-chrome header footer

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

当我打印它时,100% 高度 div 在 Chrome 中不起作用

我想为每个打印页面写一个 div。所以我做了 100% 的 div 高度。通常在每个浏览器中它都运行良好。但是当我打印此页面时,它在 Chrome 中不起作用。

<!DOCTYPE HTL>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex">
<meta http-equiv="cache-control" content="no-cache">    
<title>Brove.NET ISO Yaz?l?m?</title>
<style>
html,body{
    padding:0;
    margin:0;   
    height:100%;
    width:100%;
}
.sayfa{
    height: 100%;   
    width: 768px;
}
</style>
</head>

<body>
<div class="sayfa" style="background-color:#666666">fds</div>
<div class="sayfa" style="background-color:#cccccc">fds</div>
<div class="sayfa" style="background-color:#aaaaaa">fds</div>


<script type="text/javascript" src="js/jquery-1.5.2.min.js"></script>   
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

html height

6
推荐指数
1
解决办法
4769
查看次数

jQuery数组到eq函数

我想将数组发送为eq函数作为参数。像那样:

$(this).find('tr').not(':eq(array)').each(function(){

});
Run Code Online (Sandbox Code Playgroud)

我通过使用循环和eval函数来做到这一点,但是看起来并不容易编辑。这是我的代码。

$.fn.grilestir = function(options){

var nots = '';

for(var i=0;i<options.row_numbers.length;i++){
    nots += "not(':eq("+options.row_numbers[i]+")').";
}

    eval("$(this).find('tr')."+nots+"each(function(){\
        var tr = $(this); var orj;\
        if(options.mod == 'passive-rows'){\
            $(this).mouseover(function(){\
                orj = tr.css('backgroundColor');\
                tr.css('backgroundColor', '#777777');\
            });\
            $(this).mouseout(function(){\
                tr.css('backgroundColor', orj); \
            });\
        }\
    });");

}
Run Code Online (Sandbox Code Playgroud)

有什么办法吗?

arrays jquery

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

Internet Explorer 9对象检测

我正在寻找能识别IE9的物体检测能力检查.你能帮助我吗?

javascript object-detection capability internet-explorer-9

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