Coding大小事
2016年8月18日 星期四
[Html] 怎麼顯示換行?
用AngularJS,簡單一點是用<pre>就可以顯示
另外一種,用<p
style="white-space: pre-line"
> 這樣也可以
http://stackoverflow.com/questions/13964735/angularjs-newline-filter-with-no-other-html
再另一種,AngularJS可以寫Filter,不過我還沒試成功。先記著
http://stackoverflow.com/questions/21813857/angularjs-string-with-newlines-shown-without-breaks/36314501#36314501?newreg=cdd2247dcf124ac7b22aecdee03aa137
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言