<div ID="welcomename"> <h1>Welcome! What's your name?</h1> <input type="text" name="name" placeholder="Your name here!" ID="name"/> <input type="button" onclick="clicked();" value="I'm ready!"/></div><br>
这非常完美,但我有理由,我需要< br>在div’welcomename’里面.当我这样做时,它不起作用.
其他代码:
<div ID="hIDdendiv" > <h1 ID="welcomehowareyou">How are you today,?</h1> <form ID="welcomehowareyou2" method="post"> <select name="mood" onchange="popup(this.options.selectedindex)"> <option value="" Disabled selected>How are you?</option> <option>I'm doing great,thanks!</option> <option>I'm fine,but Could be better</option> <option>I feel absolutely terrible today.</option> <!--<input type="submit" value="Done!"/>--> </form> <p></p></div>解决方法 请在这里查看小提琴 – http://jsfiddle.net/ghxce8dr/
它工作正常.我添加了< p>< / p>对于这两个div.
<div ID="welcomename"> <h1>Welcome! What's your name?</h1> <input type="text" name="name" placeholder="Your name here!" ID="name"/> <input type="button" onclick="clicked();" value="I'm ready!"/></div><p></p>Text After First Break<div ID="hIDdendiv"> <h1 ID="welcomehowareyou">How are you today,?</h1> <select name="mood" onchange="popup(this.options.selectedindex)"> <option value="" Disabled selected>How are you?</option> <option>I'm doing great,but Could be better</option> <option>I feel absolutely terrible today.</option></select> <!--<input type="submit" value="Done!"/>--> <p></p> Text After Second Break</div>
希望这会帮助你.
总结以上是内存溢出为你收集整理的html – 在div标签内添加标签失败全部内容,希望文章能够帮你解决html – 在div标签内添加标签失败所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)