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中的间距应用于xs仅xs屏幕的技巧?我正在寻找的东西就像Bootstrap中的"if语句".
我有一个简短的 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) …