ニュースフィードアイテムを書式設定しようとしています。ニュースアイテムの種類とその横にユーザー定義のテキストフィールドを示すグリフコンを含める必要があります。グリフコンから約4スペース分インデントされたテキストをフォーマットしたいと思います(JSFiddleの2番目のニュースフィード項目で、再現不可能な方法でそれをハードコードしています)。グリフコンを含むヘッダータグ内のテキストの書式設定
グリフコンがcol-xs-1になっていて、残りの部分がテキストのためにレイアウトされていて、すべてのパディングがゼロになっていますが、 JSFiddleの3番目のニュースフィード項目)。
<div class="col-xs-12 news-feed-item-container" style="background-color:white">
<h3><span class="glyphicon glyphicon-earphone"></span>New conversation with Brett Harrsion from Firm XYZ shows there is progress being made towards the product approval</h3>
<p class="col-xs-11 col-xs-offset-1">There have been talks with the team at advisor group that lead us to believe we will be able to sell MLCDs sometime in early March</p>
</div>
<div class="col-xs-12 news-feed-divider-yellow"></div>
<div class="col-xs-12 news-feed-item-container">
<h3 style="white-space:pre"><span class="glyphicon glyphicon-earphone"></span> New conversation with Brett Harrsion from Firm XYZ shows there<br> is progress being made towards the product approval</h3>
<p class="col-xs-11 col-xs-offset-1">There have been talks with the team at Firm XYZ that lead us to believe we will be able to sell product A to them sometime in early March</p>
</div>
<div class="col-xs-12 news-feed-divider"></div>
<div class="col-xs-12 news-feed-item-container" style="background-color:white">
<div class="col-xs-1" style="padding-right:0">
<h3><span class="glyphicon glyphicon-earphone"></span></h3></div>
<div class="col-xs-11" style="padding-left:0">
<h3>New conversation with Brett Harrsion from Firm XYZ shows there is progress being made towards the product approval</h3></div>
<p class="col-xs-11 col-xs-offset-1">There have been talks with the team at advisor group that lead us to believe we will be able to sell MLCDs sometime in early March</p>
</div>
JSFiddle: https://jsfiddle.net/schins02/r0p83uaq/
適用されるスタイルを持つフィード項目の画像=> http://imgur.com/a/XTERt
これは、提供される任意の助けに感謝しますので、少しうるさいようです!
これは私が探していたものでした!私は奇妙な問題に遭遇しています。私は恐怖を感じることはありません。このコードをChromeでローカルに実行するとうまくいきます。私がステージングにプッシュすると、width/calc関数のプロパティ値が無効になります。私はcalcで読んできましたが、これは意味をなさないし、他の人にはないことを恐れていますが、誰かがアイデアを持っていたり、奇妙な問題を扱っていた場合に備えて、この前に。 – JSchins
別の問題がある場合は、新しいトピックを投稿することを忘れないでください(既に検索されているかどうかを確認した上で!) –