angular Ionic中的item内容换行

 

在Ionic中item换行的标签CSS样式如下:

 

.item h1,
.item h2,
.item h3,
.item h4,
.item h5,
.item h6,
.item p,
.item-content,
.item-content h1,
.item-content h2,
.item-content h3,
.item-content h4,
.item-content h5,
.item-content h6,
.item-content p {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap; 
}

 

示例:

<div class="list margin_top_10 margin_bottom_10">
	<div class="item" ng-repeat="item in lists">
		<h3>
			<span class="float_left font_18">{{item.name}}</span>
			<span class="float_right font_12 color_99">{{item.mobile | replaceStr:4:7}}</span>
			<span class="clear_both"></span>
		</h3>
		<p class="color_99 font_12">
			{{item.province}}{{item.city}}{{item.area}}{{item.address}}
		</p>
	</div>

	<label class="item text-center pointer" ng-click="addAddress()">
		+添加地址
	</label>
</div>

 

 

 

 

  • 大小: 12.3 KB
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值