对齐 div 内的项目?
我试图远离表格,因为我被告知它们只能用于表格数据。但是,我对如何实现此功能感到困惑。我的导航栏有一个搜索按钮、注册链接、登录链接和两个分隔线。如何像与表格一样对齐 div 中的每个项目?请原谅我对CSS的新手=P
I am trying to stay away from tables because I am told they are to be used for tabular data only. However, I am confused as to how to implement this functionality. My navigation bar has a search button, register link, login link, and two dividers. How would one align each item within the div much like one can with tables? Please excuse my newbieness to CSS =P
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
虽然我还没有测试过它,但这应该会给你一些你正在寻找的东西。对上面的代码进行实验,以根据您的要求进行微调。是的,不需要一直避免桌子。要显示表格数据,表格是最佳选择
Although I have not tested it, this should give you something you are looking for. Experiment on the above code to fine tune to your requirements. And yeah tables need not be avoided all the time. For displaying tabular data, tables are the best option
如果您是新手,请尝试这个工具。
http://accessify.com/tools-and-wizards/开发人员工具/list-o-matic/
If you are a newbie, try this tool.
http://accessify.com/tools-and-wizards/developer-tools/list-o-matic/