html - Flat ui nav bar not rendering properly -


शामिल सीएसएस फाइलें:

  http://designmodo.github.io/Flat- UI / CSS / flat-ui.css http://designmodo.github.io/Flat-UI/css/demo.css http://designmodo.github.io/Flat-UI/bootstrap/css/bootstrap.css < / कोड>  

कोड:

  & lt; body & gt; & Lt; nav class = "navbar navbar-inverse" & gt; & Lt; div class = "navbar-header" & gt; & Lt; एक वर्ग = "नवबार-ब्रांड" href = "#" & gt; ब्राइट फ़ोलियो & lt; / a & gt; & Lt; / div & gt; & Lt; div वर्ग = "पतन नवबार-पतन" आईडी = "नवबार-पतन -01" & gt; & Lt; ul class = "nav navbar-nav" & gt; & Lt; li & gt; & lt; a href = "# संपर्क मॉडेल" डेटा-टॉगल = "मोडल" & gt; संपर्क & lt; / a & gt; & lt; / li & gt; & Lt; / ul & gt; & Lt; / div & gt; & Lt;! - /.navbar- -collapse- & gt; & Lt; / नव & gt; & Lt; / body & gt;   

मुझे नव बार के ऊपर और ऊपर अजीब जगह मिल रही है

 यहां छवि विवरण दर्ज करें

एक मार्जिन है nav के आस पास क्योंकि आपने हमें CSS आदि के लिंक दिए हैं। मैं यह नहीं देख सकता कि यह कहां है। लेकिन इस डेमो में आप देख सकते हैं कि मार्जिन समस्या है।

सीएसएस: <पूर्व> nav {मार्जिन: 0! महत्वपूर्ण; }

यह वह चीज़ है जिसे आप उपयोग कर सकते हैं लेकिन मैं ! महत्वपूर्ण तो आप इसका इस्तेमाल कर सकते हैं, या सीएसएस फाइल में जा सकते हैं और पता लगा सकते हैं कि nav को मार्जिन सेट किया जा रहा है और इसे हटा दें।

इस तरह यह मार्जिन (मेरे फिक्स के बिना) के साथ दिखता है:



Comments

Popular posts from this blog

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -