2015-12-26 37 views
0

我想加載我的外部樣式表。它正在加載,但其風格正在被其他文件覆蓋。 如何使用EC外部樣式表未載入引導4

<!DOCTYPE html> 
<html lang="en"> 
    <head> 
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> 
    <!-- Required meta tags always come first --> 
    <meta charset="utf-8"> 
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> 
    <meta http-equiv="x-ua-compatible" content="ie=edge"> 


    <!-- Bootstrap CSS --> 
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous"> 
    <link rel="stylesheet" type="text/css" href="css/normalize.css"> 
    <link rel="stylesheet" type="text/css" href="css/main.css"> 
    </head> 
    <body> 
    <h1>Hello, world!</h1> 
    <button type="button" class="btn btn-primary">Primary</button> 


    <!-- jQuery first, then Bootstrap JS. --> 

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> 
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/js/bootstrap.min.js" integrity="sha384-vZ2WRJMwsjRMW/8U7i6PWi6AlO1L79snBrmgiDpgIWJ82z8eA5lenwvxbMV1PAh7" crossorigin="anonymous"></script> 

    </body> 
</html> 

回答

0

嘗試增加!important屬性CSS規則你想實現我加載我的風格。它會強制你的規則去匹配一組元素或類!