首页 > 网站 > WEB开发 > 正文

CSS JavaScript php的书写规则

2024-04-27 14:01:53
字体:
来源:转载
供稿:网友

1. 标签<>内的多个属性之间,只要空一隔,不需要 逗号

   <a href="brand_me.html" target="browser_page">

2. CSS :选择器内的属性的多个值,也不要用符号隔开,只要空一隔
   background: #ccc url(pattern.fif) repeat-x;


3. javaScript语句的写法,下面是一些例子:
    ◇ window.open("some_url","window_name", "location=no,status=no");
    ◇ var width= PRompt("How wide do you want the grid?(1-10 is good)","10");
    ◇ <a href="#" onMouSEOver="temp=image1;image1=image2;image2=image3;image3=temp;
window.document.the_image.src=image1;"
onclick="parent.control_frame.document.brandme_img.src=image1;"><img src="..."></a>

4. 对图片链接,表达是否一样:
   CSS:          background: #ccc url(pattern.fif) repeat-x;
   HTML、JS:  <img src="image/monkey.gif" name="brandme_img">


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表