我正在研究应该打印表格的网站.
我遇到的一个问题是,虽然它们在屏幕上正确显示,但是不会打印某些表格边框.
我尝试过Firefox和Chrome.两者都在屏幕上显示所有表格边框,但在打印时省略了一些边框.
我需要做些什么来打印它们?
编辑1:添加了jsFiddle:
码:
JavaScript的:
function printDiv()
{
var divToPrint=document.getElementById('table');
newWin= window.open("");
newWin.document.write(divToPrint.outerHTML);
newWin.print();
newWin.close();
}
Run Code Online (Sandbox Code Playgroud)
CSS:
<style type="text/css">
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: …Run Code Online (Sandbox Code Playgroud) 我正在使用Vagrant管理虚拟机以实现开发目的.我的操作系统是Windows 10,我使用的是Vagrant 1.9.1.由于文件夹同步的默认驱动程序很慢,我想实现Rsync.
为此,我使用了Cygwin并安装了Rsyn和OpenSSL.
当我在Cygwin控制台内运行vagrant我遇到了这个错误:
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.
Host path: /cygdrive/c/Users/User/my-project/my-project/
Guest path: /var/www
Command: "rsync" "--verbose" "--archive" "-z" "--chmod=ugo=rwX" "--no-perms" "--no-owner" "--no-group" "--rsync-path" "sudo rsync" "-e" "ssh -p 2222 -o LogLevel=FATAL -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i 'C:/Users/User/my-project/my-project/.vagrant/machines/gbb-my-project-sys-web-dev-1/virtualbox/private_key'" "--exclude" ".vagrant/" "--exclude" ".git/" "/cygdrive/c/Users/User/my-project/my-project/" "vagrant@127.0.0.1:/var/www"
Error: dup() in/out/err failed
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error …Run Code Online (Sandbox Code Playgroud) 有没有办法在没有数据库连接的情况下使用 Laravel?我打算使用刀片和 VueJS 创建一个前端网站,该网站将使用第三方 API,而且我不需要数据库。
目前,我收到此错误,我不确定如何绕过它。
Database name seems incorrect
You're using the default database name laravel. This database does not exist.
Edit the .env file and use the correct database name in the DB_DATABASE key
Run Code Online (Sandbox Code Playgroud)