如何使我的网站的边角可点击? [英] How to make my website's sides and corners clickable ?

查看:70
本文介绍了如何使我的网站的边角可点击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使我的网站的侧面可点击,这将使用户能够被定向到另一个网站,这个优势将有助于使用网站的边角(例如:营销)....

我可以使用级联样式表吗?

i尝试多做一次,我在不同的网站上搜索了很多次,然后我决定在这里问你那个精彩的网站...

所以,你的回复将不胜感激......

How to make the sides of my website clickable , which will enable users to be directed to another website , this advantage will be helpful in using the website's sides and corners in ( eg : marketing ) ....
can i use the cascading style sheets ???
i tried to do that more one a time , i have searched many times about that on different websites , then i decided to ask you here on that wonderful website ...
So , your response will be appreciated ...

推荐答案

一个网站没有角落或双方,但每个网页都有。页面上的所有内容都是可点击的(毕竟,谁可以阻止人们点击鼠标按钮?:-)),唯一的问题是你如何处理它。要做出响应点击的内容,您需要使用一些DOM元素占用此区域,例如 div 。测试它:

A Web site does not have "corners" or "sides", but each Web page does. And everything on a page is clickable (after all, who can prevent one to click on a mouse button? :-)), the only problem is how you handle it. To make something responding to a click, you need to occupy this area with some DOM element, such as div. Test it:
<div onclick="alert('div clicked')">Some content</div>





占据顶部区域和侧面相当容易,但是难以放置始终位于底部的东西,因为页面高度会根据其内容而增长。您可以找到许多布局示例(是的,应该始终使用CSS),显示您可以使用这种方式的侧栏,请参阅: http:// bit。 ly / 15GXMpO [ ^ ]。



然而,它看起来并不是一个好主意。首先,在你的问题表达中,有些东西告诉我们,由于某些原因,你认为你网站的那些方面并没有用于某些有用的内容,而你想要使用它。真的是这样吗?你为什么要这样?如果是这样,它看起来很荒谬:因为你不知道如何用内容填充你的页面并且只想使用中心,同时你想要使用未使用的边。你明白了吗?顺便说一句,广告和其他页面导航的其他情况根本不需要点击处理;为此,有一个元素(< a> )。



实际上,所有这些3列(或其他柱状)设计都是Web的真正垃圾,非常流行和丑陋。人们真的不会按设计使用这些方面。如果您真的希望自己的一方脱颖而出并为用户做得更好,请尝试做一些与众不同的事情。特别是,尝试采用液体,流体和弹性设计。请参阅我过去的回答:

获取屏幕分辨率 [ ^ ]。



-SA



It is fairly easy to occupy top area and sides, but difficult to put something which is always at the bottom, because page height grows depending on its content. You can find many layout samples (yes, CSS should always be used) showing side columns which you can use this way, please see: http://bit.ly/15GXMpO[^].

However, it does not look as a good idea. First of all, something in your formulation of your question tells us that, by some reason, you consider that those "sides" of your site are not used for some useful content, and you want to use it. Is it really so? Why would you want it? If this is so, it looks ridiculous: as you did not know how to fill your page with content and want to use only the center, at the same time, you want to use unused "sides". Do you see the point? And, by the way, advertizement and other cases of navigation to other pages does not need click handling at all; for this purpose, there is an anchor element (<a>).

In fact, all those 3-column (or other columnar) design is the real trash of the Web, very popular and ugly. People really don't use those sides "by design". If you really want your side to stand out and be better for your users, try to do something different. In particular, try to embrace liquid, fluid and elastic design. Please see my past answer:
To Get Screen resolution[^].

—SA


这篇关于如何使我的网站的边角可点击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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