Remove the hacks because of transparent background
This commit is contained in:
parent
1980d85f3e
commit
19a172f2f5
2 changed files with 0 additions and 18 deletions
|
@ -144,19 +144,6 @@ is very likely you are using the module in the wrong process. For example
|
||||||
`electron.app` can only be used in the main process, while `electron.webFrame`
|
`electron.app` can only be used in the main process, while `electron.webFrame`
|
||||||
is only available in renderer processes.
|
is only available in renderer processes.
|
||||||
|
|
||||||
## Why is my app's background transparent?
|
|
||||||
|
|
||||||
Since Electron `0.37.3`, the default user-agent background color is `transparent`.
|
|
||||||
Simply specify a background color in HTML:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<style type='text/css'>
|
|
||||||
html {
|
|
||||||
background: white;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
```
|
|
||||||
|
|
||||||
[memory-management]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management
|
[memory-management]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management
|
||||||
[variable-scope]: https://msdn.microsoft.com/library/bzt2dkta(v=vs.94).aspx
|
[variable-scope]: https://msdn.microsoft.com/library/bzt2dkta(v=vs.94).aspx
|
||||||
[electron-module]: https://www.npmjs.com/package/electron
|
[electron-module]: https://www.npmjs.com/package/electron
|
||||||
|
|
|
@ -3,11 +3,6 @@
|
||||||
<meta name="referrer" content="always">
|
<meta name="referrer" content="always">
|
||||||
<link href="../node_modules/mocha/mocha.css" rel="stylesheet">
|
<link href="../node_modules/mocha/mocha.css" rel="stylesheet">
|
||||||
<script src="jquery-2.0.3.min.js"></script>
|
<script src="jquery-2.0.3.min.js"></script>
|
||||||
<style type="text/css">
|
|
||||||
body {
|
|
||||||
background-color: white;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue