我有這個網站可以刪除繼承的樣式嗎?
http://avocat2.dac-proiect.ro/
你會發現有一個按鈕,「關於我們」 ......後面那個按鈕是從父母遺傳背景爲白色。
我希望背景透明。
如何刪除從父項繼承的樣式?
這是HTML代碼:
<header id="masthead" class="navbar navbar-default" role="banner">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12" style="background:transparent !important;font-size:17px;">
<img src="wp-content/themes/WordPressBootstrap-master/images/DESPRE-NOI.png" class="img-responsive img-center">
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12" style="background-color:lavender;font-size:17px;">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<p> Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
</div>
</div>
<div class="container">
<nav class="" role="navigation">
<!-- <div class="container-fluid">-->
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-navbar-collapse-1">
<!-- <form class="navbar-form navbar-left" role="search">-->
<!-- <div class="form-group">-->
<!-- <input type="text" class="form-control" placeholder="Search">-->
<!-- </div>-->
<!-- <button type="submit" class="btn btn-default">Submit</button>-->
<!-- </form>-->
<a class="screen-reader-text skip-link" href="#content"><?php _e('Skip to content', 'zdwpbs'); ?></a>
<?php
wp_nav_menu(array('theme_location' => 'primary' ,
'menu_class' => 'nav-menu'));
?>
</div><!-- /.navbar-collapse -->
<!-- </div>-->
<!-- /.container-fluid -->
</nav>
</div><!-- .container -->
</header>