无法显示更多空格 [英] Not able to show more spaces

查看:90
本文介绍了无法显示更多空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助我,我无法通过角度js显示多个空格

我的代码是

 < span class =code-keyword><   div     class   =  HeadingTitleCourseAndTitle >  {{course.StreamName}} <   / div  >  



如果我在流名称上给出2个空格,它只显示一个。

解决方案

HTML中的空格很难,因为浏览器没有设置为尊重它们,除非你指定它们,通过用字符串&替换每个空格字符; NBSP;

can anybody please help me,i am not able to show more than one space by angular js
my code is

<div class="HeadingTitleCourseAndTitle">{{course.StreamName}}</div>


and if i am giving 2 spaces on stream name it is showing me only one.

解决方案

Spaces are "difficult" in HTML, because browsers are not set up to respect them, unless you specify they should, by replacing each and every space character with the string &nbsp;


这篇关于无法显示更多空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆