它看起来像firefox和铬默认文本输入到一个fieldset集中,但默认它离开?我怎样才能使所有的文本框输入左对齐?我怎样才能让IE,Firefox,Chrome对齐输入文本框?
0
A
回答
3
使用浏览器重置。将以下内容粘贴为FIRST css,因此请将其放在一个名为reset.css的文件中,并将其包含在头部的顶部,或将其粘贴到任何其他css之前。
(从http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/)
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}
body {
line-height: 1;
color: black;
background: white;
}
ol, ul {
list-style: none;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: separate;
border-spacing: 0;
}
caption, th, td {
text-align: left;
font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: "";
}
blockquote, q {
quotes: "" "";
}
0
我不是很肯定在这里,但CSS是不是JavaScript更相似的方式进行解释。试试CSS。
相关问题
- 1. C#窗体窗体 - 我怎样才能让整数被输入到文本框?
- 2. 我怎样才能在Firefox
- 3. 我怎样才能中心对齐文本
- 4. 我怎样才能让
- 5. Magento菜单:我怎样才能让它左对齐?
- 6. 我怎样才能让ToolStripDropDownButton对齐到StatusStrip的右边?
- 7. 我怎样才能让最后两项在底部对齐?
- 8. 我怎样才能让一个跨度文本溢出,像输入
- 9. 我怎样才能在GTK中从Glade获得文本输入?
- 10. 我怎样才能让这样的
- 11. 我怎样才能让输入按钮提交表格
- 12. 我怎样才能让Python向后打印输入的消息?
- 13. 我怎样才能让AngularJS绑定一个fancybox对话框?
- 14. 我怎样才能让网站链接在警告对话框
- 15. 我怎样才能让自定义对话框angeled边缘
- 16. 我怎样才能让页面在Chrome和IE中显示相同?
- 17. ul li漂浮之后,我怎样才能让文字对齐中心?
- 18. 我怎样才能改变IE
- 19. jQuery:我怎样才能同时验证复选框和输入文本?
- 20. 我怎样才能让contenteditable文字框消失?
- 21. 我怎样才能获得文本QTableWidgetItem
- 22. 我怎样才能发送文本?
- 23. 我怎样才能使文本框时,复选框是选中
- 24. 怎样才能让android中
- 25. 我怎样才能让文本到语音朗读外语?
- 26. 我怎样才能让这个文本div中心?
- 27. 我怎样才能让在Plone
- 28. 我怎样才能让在ActiveReports中
- 29. 我怎样才能让这个更好
- 30. 我怎样才能让它干?
你应该发布一些代码或链接到一个例子,以便我们可以看到你的问题。我不记得之前默认居中对齐的文本字段。 – 2011-02-07 04:03:58