zoukankan      html  css  js  c++  java
  • 做bbs论坛项目的收获(1)

    1. 当两张表出现关联的时候,关联的外键,千万不能是汉字,千万不能使汉字,因为这个问题,直接导致项目进行不下去。。。。。

    顺便记录一下知识点(一)

    当用frameset设置网页的结构的时候

    eg:

    <iframe  frameborder="no" src="../palindex/DynamicImg" style="height:205px;45%;float:left;" scrolling="no"></iframe>
    <iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=7" style="225px; height:90px; float:right;margin-right:60px;margin-top:50px;" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe> //获取当地的天气
    <iframe name="left_show" frameborder="no" allowtransparency="true" src="../palindex/index?name=@(ViewBag.s)" style="height:425px;22%;float:left" scrolling="no" ></iframe>
    <iframe name="main_show" frameborder="no" scrolling="no" src="../classinfo/getallclass?userId=@(ViewBag.userId)" style="height:425px;78%;float:right"></iframe>

    这里如果直接 用iframe里面的src链接会发现打开的页面是显示在当前的页面,如果想要跳出这个frameset开出一片新的网页,就在需要新打开的页面

    的<head></head>标签里面加入一个<base>标签

    (1).<base targe="_blank">//在新窗口打开页面

     (2) .<base target="_parent">//在同一页面打开

  • 相关阅读:
    npm install报错Error: ENOENT
    hibernate hql
    mysql授权
    撤销git reset soft head操作
    nodejs&npm等概念梳理
    Java类中中文问题
    采用MANIFEST.MF之jar报错ClassNotFoundException解法
    EChart和G2比较
    牛客OI测试赛1
    Codeforces Round #340 (Div.2)
  • 原文地址:https://www.cnblogs.com/sunzgod/p/4086925.html
Copyright © 2011-2022 走看看