W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
我們將創(chuàng)建一個極簡的HTML文件,作為我們示例應(yīng)用程序的前端。我們稍后還將在我們的WebDriver測試中使用該前端的一些內(nèi)容。
首先,讓我們創(chuàng)建一個Tauri的distDir,我們知道一旦構(gòu)建應(yīng)用程序的Tauri部分,我們將需要它。運行mkdir dist會在其中創(chuàng)建一個名為dist/的新目錄,我們將在其中放置以下index.html文件。
?dist/index.html
?:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Hello Tauri!</title>
<style>
body {
/* Add a nice colorscheme */
background-color: #222831;
color: #ececec;
/* Make the body the exact size of the window */
margin: 0;
height: 100vh;
width: 100vw;
/* Vertically and horizontally center children of the body tag */
display: flex;
justify-content: center;
align-items: center;
}
</style>
</head>
<body>
<h1>Hello, Tauri!</h1>
</body>
</html>
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: