为什么我的页面在运行我的网站时显示不同而不是jsfiddle?

时间:2013-05-26 14:29:22

标签: asp.net html5 razor jsfiddle

我的HTML:

<section class="featured">
<div class="content-wrapper">
 <h1>Hey! This is private!!!</h1>
    <form action="" method="POST">
        <fieldset>
            <legend>(Not really) Opt In or Out</legend>
            <input type="checkbox" id="selectTwitter" name="selectTwitter">I'm Twitterpated!</input>
            <br />
            <input type="checkbox" id="selectBingSearch" name="selectBingSearch">Bing Search</input>
            <br />
            <input type="checkbox" id="selectDuckDuckGoSearch" name="selectDuckDuckGoSearch">Duck Duck Go Search</input>
            <br />
            <input type="checkbox" id="selectYouTube" name="selectYouTube">You Tuber!</input>
            <br />
            <input type="checkbox" id="selectFlickr" name="selectFlickr">Flickr</input>
            <br />
            <input type="checkbox" id="selectWikipedia" name="selectWikipedia">Wikipedia</input>
            <br />
            <input type="checkbox" id="selectAmazon" name="selectAmazon">amazon</input>
            <br />
            <input type="checkbox" id="selectFlickr" name="selectFlickr">Fakebook</input>
            <br />
            <input type="submit" id="btnSubit" name="btnSubmit" value="Save Config changes</input><br />
            </fieldset>
        </form>
    </div>
</section>

...按照我在jsfiddle(http://jsfiddle.net/CTyVk/

的预期显示

但是当我运行我的网站时,它看起来像是这样:

form and fieldset behaving badly

有什么问题?

2 个答案:

答案 0 :(得分:2)

您未在<input>

中关闭<input type="submit" id="btnSubit" name="btnSubmit" value="Save Config changes</input><br /> ..

答案 1 :(得分:2)

您在提交按钮代码中遗漏了">。尝试:

            <input type="submit" id="btnSubit" name="btnSubmit" value="Save Config changes"></input>