ionic css 自定义样式_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:35:09
Original
1392 people have browsed it

例子 标签执行后会自动增加一个

 class="item-content" 的定义在ionic.css 中, 展开后的样式可通过chrome的开发者工具查看

若想自定义,只能覆盖对应的css定义,但如果是局部样式重定义,该修改将影响全局样式。

解决方法:

<div class="content">    <ion-item class="item-complex">        <a class="item-content"></a>    </ion-item></div>
Copy after login

样式修改, 定义特殊的class路径,避免修改全局样式:

.content .item-complex .item-content {    padding:0px;}
Copy after login

其他样式修改方式类似。


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!