[英]Need to add spaces between labels in javascript
i want to make some spaces between those labels: 我想在这些标签之间留一些空格:
"<label>" + currentItem.get_item('Monday') + "</label> " +
"<label>" + currentItem.get_item('Tusday') + "</label> " +
"<label>" + currentItem.get_item('Wensday') + "</label> " +
"<label>" + currentItem.get_item('Thirsday') + "</label> " +
"<label>" + currentItem.get_item('Friday') + "</label> " +
"<label>" + currentItem.get_item('Saturday') + "</label> " +
"<label>" + currentItem.get_item('Sunday') + "</label> " +
You can style them by adding margin or padding to your labels. 您可以通过在标签上添加边距或填充来设置样式。
label{
margin-right: 1em;
}
Or if you need a white space so then use 或者,如果您需要空格,请使用
instead of ' ' like this: 而不是像这样的'':
"<label>" + currentItem.get_item('Monday') + "</label> " +
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.