如何将单个链接按钮分为多个部分. [英] How to divide the single link button into multiple divisions.

查看:121
本文介绍了如何将单个链接按钮分为多个部分.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的项目中,我正在听取医生的意见(例如他的工作时间(例如:9:30 AM至6:00 PM)).现在,我将工作时间划分为9个时间段,从而将工作时间保存到数据库中(用于从9:30 AM,10:30 AM,12:00 PM等患者处进行预约).现在,我在约会页面上显示了时间段(它显示为 9:30 AM,10:30 AM,12:00 PM ,但是在这里,所有时间段均显示单个链接按钮,如果用户单击约会的链接按钮,则约会在所有时间都是固定的(因为有单个链接按钮).在此,我希望链接按钮显示为( 9:30 AM 10:30 AM 12:00 PM (将其划分为多个位置进行约会).请为此提供帮助.

Hi,

In my project I am taking a input from a doctor (like his working time (eg: 9:30 AM to 6:00 PM)). Now I save the working time into the database by divide the time into 9 slots(for taking appointment from the patients like 9:30 AM, 10:30 AM, 12:00 PM etc..). Now I am displaying the time slots in the appointments page (It displaying like 9:30 AM, 10:30 AM, 12:00 PM, but here the single link button is displaying for all the time slots, if the user clicks on the link button for the appointment, the appointment is fixed for all the times (Because of the single link button). Here I want the link button to display like (9:30 AM, 10:30 AM, 12:00 PM by divide it into multiple slots for the appointment). Please help me out regarding this.

推荐答案

这是一个错误的问题提问和获得帮助的惊人例子,您面临一个非常简单的问题:如何创建以某些布局彼此相邻排列的一些可单击元素,每个元素都提供一个一个单独的链接,而不是仅仅解释所需的行为,而是以一个您脑海中有些奇怪的想法开始了这个问题(此外,给它加上了标题).
如果您对如何实现某种效果有疑问,请不要试图将注意力集中在如何实现它上.难怪您得到的第一个答案是您不能",这是绝对正确的.结果,在非常简单的情况下您没有得到任何帮助.

不过,解决方案非常简单:您所有的广告位都应该是单独的元素.哪些元素-可能有所不同.几乎任何东西都可以带有链接.您要做的事情就是冲破敞开的门.正确的方法不是分割所有内容,而是将元素组合在一起.不要忘记,对于正确的布局,您应该使用样式(CSS),以将功能与渲染隔离.

—SA
This is a striking example of wrong approach to asking questions and getting help. You face quite a simple problem: how to create some clickable elements arranged next to each other in certain layout, each providing a separate link. Instead of just explaining of the required behavior, you start the question (moreover, title it) with some weird idea you had in your mind.

If you have a question on how to achieve some effect, don''t try to focus on your idea how to do it. No wonder the first answer you got was "you cannot", and this is absolutely correct. As a result, you did not get any help in a very simple situation.

The solution is very simple though: all your slots should be separate elements. Which elements — may vary. Almost anything can carry a link. What you do is called breaking through the open door. The right approach is not dividing anything, but putting elements together. Don''t forget that for proper layout you should use styles (CSS), to isolate functionality from rendering.

—SA


这篇关于如何将单个链接按钮分为多个部分.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆