Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这样的按钮:
<button type="submit" name="button1" value="1" style="text-decoration: none; cursor: pointer; font-size: 20px;">Line 1 <br /><span class="blue">line 2</span></button>
和我的CSS:
.blue { color: blue;}
但是它没有应用第二种css样式,任何想法,这可能吗?
May be typo! The CSS class name is "blue" not a "bluetext".
CSS
"blue"
"bluetext".
我想其他一些样式定义正在覆盖它。尝试使用 forcefull!important 使用此颜色而不是其他定义
!important
.blue { color: blue !important;}