如果我table
在表上使用Bootstrap 类,则打印预览不会显示背景颜色tr
.
我的代码
<head>
<!-- All Bootstrap's stuff ... -->
<!-- My custom style -->
<style type="text/css">
@media print {
.bg-danger {
background-color: #f2dede !important;
}
}
</style>
</head>
<body>
<div class="bg-danger">
<td>DIV</td>
</div>
<table class="table">
<tr class="bg-danger">
<td>TR 1</td>
</tr>
<tr class="danger">
<td>TR 2</td>
</tr>
<tr style="background-color: #f2dede !important;">
<td>TR 3</td>
</tr>
</table>
</body>
Run Code Online (Sandbox Code Playgroud)
在屏幕上,所有都是红色,但在打印预览时,只有div
元素是红色.
如果我删除table
该类,一切正常(除了我需要表格样式).
我的配置:IE11和Windows 7.
是否有打印背景颜色的技巧?
注意:指示的副本(带有背景颜色的CSS @media打印问题;)不是此处的问题,我的设置被选中以打印背景颜色.此外,我可以打印其他几个元素的颜色.
答案:
感谢@Ted评论,我压倒td
了table …
我正在尝试使用 SpecFlow 和 MSTest 测试(集成测试)我的 Azure Durable Function v3。
函数用 DI 和 Startup 类初始化:
[assembly: FunctionsStartup(typeof(Startup))]
namespace MyNamespace.Functions
{
public class Startup : FunctionsStartup
{
public override void Configure(IFunctionsHostBuilder builder)
{
ConfigureServices(builder.Services);
}
...
Run Code Online (Sandbox Code Playgroud)
Orchestrator 入口点由 HTTP 端点触发:
public class Function1
{
[FunctionName(nameof(Function1))]
public async Task<IActionResult> DoYourJob(
[HttpTrigger(AuthorizationLevel.Anonymous, methods: "post", Route = "api/routes/function1")] HttpRequestMessage httpRequest,
[DurableClient] IDurableOrchestrationClient starter)
{
...
Run Code Online (Sandbox Code Playgroud)
我的 IntegrationTest 构造函数初始化 Az 函数HostBuilder
(感谢这篇文章):
[Binding]
public sealed class Function1StepDefinitions
{
private readonly IHost _host;
private …
Run Code Online (Sandbox Code Playgroud) integration-testing azure .net-core azure-functions azure-durable-functions
归档到 Azure Pipelines 上的 ipa 文件时,我无法签署我的 Flutter 项目。
这是我的构建管道设置:
我尝试了手动签名和自动签名。
/usr/bin/xcodebuild -sdk iphoneos -configuration Release -workspace ..../ios/Runner.xcworkspace -scheme Runner archive CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY=iPhone Distribution: My Name (MYTEAMID) PROVISIONING_PROFILE=guid-of-my-provisioning-profile PROVISIONING_PROFILE_SPECIFIER= | /usr/local/lib/ruby/gems/2.6.0/bin/xcpretty -r junit --no-color
## RESULT IS ERROR 65
error: Pods-Runner does not support provisioning profiles. Pods-Runner does not support provisioning profiles, but provisioning profile com.blabla.myapp has been manually specified. Set the provisioning profile …
Run Code Online (Sandbox Code Playgroud) 是否可以在 IPython-Notebook 单元格中获取先前(上方)单元格内容?
我可以使用 %capture 魔术函数查看先前的输出,但我找不到如何获取先前的单元格内容。