小编use*_*199的帖子

仅在xs(智能手机和iphone)中在Bootstrap 4中应用底部边距

Getbootstrap.com指示将CSS margin-bottom:4rem;放在图像上

类是使用的格式命名{property}{sides}-{size}xs{property}{sides}-{breakpoint}-{size}sm,md,lg,和xl.

的问题是,使用XS格式,{property}{sides}-{size},这将是mb-4,将应用相同的边距间距sm,md,lg,和xl为好.

有没有人知道将margin-bottomBootstrap中的间距应用于xsxs屏幕的技巧?我正在寻找的东西就像Bootstrap中的"if语句".

css bootstrap-4

9
推荐指数
1
解决办法
5719
查看次数

使用 DOMDocument->save('filename') 保存 xml 文件时遇到问题

我有一个简短的 PHP 程序,它加载一个 XML 文件 (test02.xml),然后尝试将它保存在另一个文件中。

该计划是:

<?php
//The next three lines are needed to open a file for writing on the server I use.

$stream_options = array('ftp' => array('overwrite' => TRUE));
$stream_context = stream_context_create($stream_options);
$fxml = fopen("ftp://userid:password@www.yurowdesigns.com/public_html/programs/test03.xml","w",0,$stream_context);

//The next three lines create a new DOMDocument, load the input file, "test02.xml"  
//and attempt to save the loaded file in the output file "test03.xml"

$doc = new DOMDocument;
$doc->load("test02.xml");
$doc->save("test03.xml");
?>
Run Code Online (Sandbox Code Playgroud)

文件 test03.xml 正确打开并在它不存在时创建。但是,其中没有输出。加载的文件 test02.xml 是非空且格式良好的 XML。我已经用其他 PHP 程序成功加载并阅读了它。

当我运行上述程序时,我收到消息:

警告:DOMDocument::save(test03.xml) …

php

5
推荐指数
1
解决办法
9924
查看次数

标签 统计

bootstrap-4 ×1

css ×1

php ×1