新手编码问题 [英] Newbie coding concerns

查看:66
本文介绍了新手编码问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始编码之旅并在Photoshop上设计了我的所有网页,并将其导入Dreamweaver。切了所有'可点击'的作品。我的问题如下:



- 如何创建适合任何计算机屏幕尺寸的自适应设计?对于暂时使这款移动设备具有适应性,我并不过分感到困惑。



- 我在第一页上有一个注册框,但此时它只是一个图形,因此不允许点击或个人选项要输入的详细信息。我如何让它像常规注册页面一样工作 - 就像在Facebook上一样?此外,所有信息都存储在哪里?我是否必须创建某种数据库?如果是这样,怎么样?



- 最后,如果我想让每个用户的名字和迷你照片在登录后显示在导航栏的右侧,我该怎么做?



最后,要创建一个社交网络我应该使用什么? PHP? Java的? HTML5?



我的尝试:



我试过了看一下在线教程,其中大多数似乎只专注于使背景图像适应性强。我尝试在整个网站上使用类似的原则,将其左侧定位,使高度和宽度为100%,但没有区别。

I have just started my coding journey and have designed all my website pages on Photoshop and have imported this into Dreamweaver. Have sliced all the 'clickable' pieces as well. My questions are as follows:

- How do I create an adaptable design that fits to any computer screen size? I'm not overly fussed about making this mobile adaptable for the time being.

- I have a signup box on the first page, however, at this point it appears as just a graphic and hence does not allow for options to be clicked or personal details to be inputed. How do I go about making it work like a regular sign up page - like on Facebook? Also, where would all the info be stored? Do I have to create a database of some kind? if so, how?

- Lastly, if I wanted every user's name and mini-photo to show up on the right of the nav bar once they are logged in, how would I do that?

Lastly, to create a social network what should I be using? PHP? Java? HTML5?

What I have tried:

I've tried to look at online tutorials and most of them seem to only be focussed on making the background image adaptable. I tried using a similar principle on the whole website by positioning it left, making the height and width 100% but it isn't making a difference.

推荐答案

这是快速回答论坛的一个大清单,并不是真的可以全面回答。有很多互联网网站都有关于网站建设的教程;你应该去学习他们的一些教程。 www.asp.net [ ^ ]通常是一个很好的起点。
That is a big list for a Quick Answers forum, and not really possible to answer comprehensively. There are many internet sites with tutorials on website building; you should go and study some of their tutorials. www.asp.net[^] is usually a good starting point.


我讨厌这样说,但你的方向错了。

您首先要了解您的网站应该是什么样子的图片,然后尝试使用该图片成为网站 - 它在现实世界中的效果不同。

正常 网站,它们是HTML控件的集合(与客户端或浏览器方面的javascript代码绑定在一起)和PHP,VB或C#代码,它们背后是服务器上运行的所有代码。你不能只是抓住几个文本框的图片并神奇地把它变成一个登录系统,你需要两个文本框,一个登录按钮,服务器上的代码来处理它,哈希密码,查找用户在数据库中,检查密码哈希匹配,然后将其登录或不作为结果。

我认为在你能够得到你想要生产的任何地方之前,你将不得不学习很多东西!

从这里开始: https://msdn.microsoft.com/en-us/library/k4cbh4dh.aspx?f=255&MSPPError=-2147217396 [ ^ ]并查看它的作用。
I hate to say this, but you're going the wrong way.
You are starting with a picture of what your site should look like, and trying to use that picture to "be" the site - it doesn't work like that in the real world.
In "normal" websites, they are a collection of HTML controls (bound together with javascript code for the client or browser side of things) and PHP, VB, or C# code behind all that running on the server. You can't just grab a picture of a couple of text boxes and magically turn that into a login system, you need two textboxes, a "login" button, code on the server to process it all, hash the password, look up the user in a DB, check the password hash matches and either log him in or not as a result.
I think that before you can get anywhere near what you want to produce, you are going to have to learn a whole lot of stuff!
Start here: https://msdn.microsoft.com/en-us/library/k4cbh4dh.aspx?f=255&MSPPError=-2147217396[^] and see what it does.


Quote:

最后,创建一个社交网络

Lastly, to create a social network

你需要扎实的经验来创建一些东西e / strong。

You will need solid experience to create something responsive/robust.

引用:

我应该使用什么? PHP? Java的? HTML5?

what should I be using? PHP? Java? HTML5?



-HTML5是强制性的,因为它是网站上每个页面的基础,但基本上,HTML是静态的。

-Javascript用于客户端,它允许在HTML上添加动态部分。

-PHP用于服务器端,它允许在HTML上添加动态部分。

-JavaScript and PHP只允许在HTML上添加动态部分。

-SQL也是必需的。它是在服务器端管理数据库。

经验:你没有将社交网络编程为第一个或第二个项目。


-HTML5 is mandatory as it is the foundation of every page on a site, but basically, HTML is static.
-Javascript is used on client side, it allow to add dynamic parts on the HTML.
-PHP is used on server side, it allow to add dynamic parts on the HTML.
-JavaScript and PHP allow much more than just adding dynamic parts on HTML.
-SQL will be needed too. it is to manage databases on server side.
Experience: you don't program a social network as first or second project.


这篇关于新手编码问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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