<table>
<caption>表格標題</caption>#每個table只有一個caption宣告
<thead> #表頭標籤
<tr>
<th>預設粗體</th> #表頭單元
</tr>
</thead>
<tbody> #中間資料標籤
<tr>
<td>資料</td> #資料內容
</tr>
</tbody>
<tfoot> #最後列標籤
<tr>
<td>資料</td>
</tr>
</tfoot>
</table>
cosplan
:合併橫跨行(colums)的數量,<th colspan=''></th>
rowspan
:合併橫跨列(row)的數量,<th rowspan=''></th>
caption-side
:調整標題位置,默認top表格上方,bottom表格下方,inherit繼承父層
text-align
:調整標題位置左右置中
不論排列順序,網頁顯示一律以thead、tbody、tfoot順序顯示
檢查方式,在postcss.config.js中註解掉 if (process.env.RAILS_ENV === 'production') {} 這樣可以將本機的開發環境變成與線上部署的運作環境相同 './app/**/**/*.html.erb' './app/**/*.scss'
Jan 26, 2021Active Storage 可以支援各種後端服務(如 AWS S3),為 Active Record 模型提供檔案上傳和附件功能。 前置作業 先建立一個新專案來測試 $ rails new project_name 為專案安裝Active Storage功能,會在資料庫中建立兩個名為 active_storage_blobs 和 active_storage_attachments 的資料表 $ rails active_storage:install 用scaffold建立一個用來上傳的model取名為Upload $ rails generate scaffold Upload
Jan 26, 2021The data directory contains an old postmaster.pid file $ cd Library/Application\ Support/Postgres $ cd var-13 $ ls $ rm postmaster.pid
Jan 26, 2021此專案在lib/tasks中編寫一個rake檔來運行Python的爬蟲 在根目錄添加檔案runtime.txt,寫入要運行的Python版本,這裡依照本機安裝的3.9.1 在根目錄添加檔案requirements.txt,裡面寫上所需要安裝的Python套件 Procfile不確定要不要用(待測) 在Procfile告訴Heroku用gunicorn(python開發的WSGI工具),執行python檔,my_app_name是主要python檔的名稱 web:gunicorn my_app_name:app
Jan 11, 2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up