大家好,在这里作为网站新手想必很多人都喜欢网页设计吧。我身边的很多朋友都是因为一开始被网页优美的图案和绚丽的效果而选择了网站制作方向,说实在的网页设计的确吸引着大多数人的眼球。呵呵,闲话不多说,我在这里就为大家分享一下我在[url=http://www.ithuhang.cn]北京做网站[/url]时用到的一些网页设计技巧,童鞋们 值得收藏哦!

控制横向和纵向滚动条的显隐?---------</iframe>设为首页:---------
  文字或图片弹出指定大小的窗口

  在body中加入

  <scriptlanguage="JavaScript"type="text/JavaScript">

  functionMM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features);}

</script>

弹出代码

  <ahref="#"target="_self"onClick="MM_openBrWindow  (windows01.htm,,width=550,height=380)"width="550"height="380"border="0">图片或文字</a>

---------------------------------------------------------

  flash按钮加链接

  on(press){

  getURL("");

  }

  ----------------------------------------------------------

  跳转页面代码

  <metahttp-equiv="refresh"content="5;url=http://www.makewing.com">

  ---------------------------------------------------------------

  细线分隔线

  <hrnoshadesize=0color=#C0C0C0>

  ------------------------------------------------------------------

  网页中的自动换行

  <tdstyle="word-break:break-all">就搞定了。

  完整的是

  style="table-layout:fixed;WORD-BREAK:break-all;WORD-WRAP:break-word"

  ------------------------------------------------------------------

  消除ie6自动出现的图像工具栏,设置GALLERYIMG属性为false或no.

  <IMGSRC="mypicture.jpg"HEIGHT="100px"WIDTH="100px"GALLERYIMG="no">

  --------------------------------------------------------------------

  禁止页面正文内容被选取

<bodyoncontextmenu="returnfalse"ondragstart="returnfalse"onselectstart="returnfalse"

onselect="document.selection.empty()"oncopy="document.selection.empty()"onbeforecopy="return false"onmouseup="document.selection.empty()">

  ------------------------------------------------------------------


  图片表单按钮

<formid="form1"name="form1"method="post"action="">

<imgsrc="login.gif"width="62"height="22"onclick="document.form1.submit()"/>

</form>

------------------------------------------------------------------

  左右阴影背景的CSS定义方法

body{

text-align:center;

background-repeat:repeat-y;

background-position:center;

background-image:url(../images/bg.jpg);

}

差不多就只有这些了。呵呵,希望能为我的同行们在以后的网页设计中所用到!多多支持哦