我正在尝试隐藏空白字段,
到目前为止,我已经掌握了以下内容来做我需要做的事
<html>
<body>
<div class="container">
<textarea id="output">
<?php if(isset($_POST['errorMessage']) && !empty($_POST['errorMessage'])){ ?>
Error message code - <?php echo $_POST['errorMessage']; ?>
<?php } ?>
</textarea>
</div>
</body>
</html>
尽管我发现这只是留出了原本该字段的空白空间,但是如果该字段为空,如何隐藏该字段并删除该空间呢?
答案 0 :(得分:0)
找到了我遇到的问题的解决方案
.button {
font-family: Calibri, sans-serif;
width: 100px;
height: 100px;
background-color: green;
background-repeat: no-reapeat;
}
.button1 {
font-family: Calibri, sans-serif;
font-size: 13px;
font-weight: bold;
width: 100px;
height: 100px;
background-color: green;
background-repeat: no-reapeat;
}
.button2 {
font-family: Calibri, sans-serif;
font-size: 13px;
font-weight: bold;
width: 100px;
height: 100px;
background-color: green;
background-repeat: no-reapeat;
}
.button3 {
font-family: Calibri, sans-serif;
font-size: 13px;
font-weight: bold;
width: 100px;
height: 100px;
background-color: green;
background-repeat: no-reapeat;
}
.selected1 {
background-color: red;
}
.selected2 {
background-color: yellow;
}
.selected3 {
background-color: blue;
}