1.common.cssを読み込み、divが100×300になる。
2.test_page.cssを読み込み、divが50×300になる。
common.css
test_page.css
test_page.html
2.test_page.cssを読み込み、divが50×300になる。
common.css
div{ height: 100px; weight: 300px; }
test_page.css
div{ height: 50px; }
test_page.html
... <link href="css/common.css" type="test/css" rel="stylesheet" /> <link href="css/test_page.css" type="test/css" rel="stylesheet" /> ... <body> <div>height=50px, width=300pxが適用される</div> </body> ...
コメントをかく