Table Styling and Formatting should work for non-js use cases
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
研究方向
重現所提供的 PowerShell 範例,重點關注 New-HTMLTableStyle、New-HTMLTableColumnOption、New-HTMLTableHeader 和 New-HTMLTableContent。追蹤這些命令如何產生表格的 HTML 和樣式,然後驗證在非 JavaScript 輸出中,欄寬、字型大小以及整個表格的格式設定是否有效。
由索引模型根據 Issue 內容生成。
描述
I have issues related to formatting:
- Custom column widths. As you can see I am trying to set column width to 50 but whatever number I put in, nothing changes
- Custom font size. I am trying to set the font size to 12 but it keeps being 8
- Would like to define font info / formatting only once per whole HTML object and not multiple times.
I tried to use New-HTMLTableStyle with hopes that I could set my fonts for whole table in one place but it does not work and I have to set the fonts by using New-HTMLTableHeader and New-HTMLTableContent. That way I can actually set the font type but custom font size never works.
$UniqueRecipients | ForEach-Object {
$Mail = $_
# Construct HTML object
$EmailTable = $Table | Where-Object {$_.Mail -eq $Mail}
$Html = New-HTML {
New-HTMLText -Text "Your server(s) just started patching." -FontFamily 'Calibri' -FontStyle 'normal' -FontSize 12
New-HTMLTable -DataTable $EmailTable -HideFooter {
New-HTMLTableStyle -Type Table -FontFamily 'Calibri' -FontStyle 'normal' -FontSize 12
New-HTMLTableColumnOption -AllColumns -Width 50
New-HTMLTableHeader -Names ServerFQDN,PatchingStartDateTime,SkipXmonths,UtcOffset -FontFamily 'Calibri' -FontStyle 'normal' -FontSize 12
New-HTMLTableContent -ColumnIndex 1,2,3,4 -FontFamily 'Calibri' -FontStyle 'normal' -FontSize 12
}
}
Send-MailMessage -From "[email protected]" -To $Mail -Subject "OnDemand Patching - Startup notification" -Body $Html -SmtpServer smtp.server.com -Credential $Creds -BodyAsHtml
}
- 主要語言
- PowerShell
- 星號
- 1k
- 分支
- 115
- 平均合併
- 4 小時 41 分鐘
- 30 天內合併 PR
- 4
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
EvotecIT/PSWriteHTML 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 38/100
EvotecIT/PSWriteHTML#521 · 5 則留言 ·
-
難度 5/5 一週以上 新手友好度 25/100
EvotecIT/PSWriteHTML#513 · 3 則留言 ·
-
enhancement
難度 4/5 3-5 天 新手友好度 42/100
EvotecIT/PSWriteHTML#509 · 2 則留言 ·
-
enhancement
難度 3/5 1-2 天 新手友好度 42/100
EvotecIT/PSWriteHTML#477 · 5 則留言 ·
-
HTML Forms?未關閉enhancement
難度 5/5 一週以上 新手友好度 25/100
EvotecIT/PSWriteHTML#471 · 5 則留言 ·
查看 EvotecIT/PSWriteHTML 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 66/100
HelloAOLab/seed-bible#2173 ·
維護者通常 1 天內回覆
-
enhancement good first issue help wanted
難度 2/5 1-3 小時 新手友好度 88/100
hocinehacherouf/liberarr#77 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
ietf-tools/errata#108 ·
維護者通常 1 天內回覆
-
Selected chart highlights only its values, not its series names and category labels可能已有人在做 @Higgs32584 今天認領。 未關閉bug priority: low ui
難度 2/5 1-3 小時 新手友好度 82/100
storytold/gridcraft#4390 · 2 則留言 ·
維護者通常 1 天內回覆
-
documentation ui
難度 2/5 1-3 小時 新手友好度 86/100
VincenzoImp/openings-job-search#449 ·
維護者通常 1 天內回覆