zoukankan      html  css  js  c++  java
  • js基本题 Crazy

    1,input 都有哪些

    在表单中input是拥有类型最多的元素,分别有:text、password、radio、checkbox、file、buttonimage、submit、resethidden 等。
    <input type="submit" name="button" id="button" value="提交" />
    <input type="button" name="button2" id="button2" value="提交" />
    <input type="reset" name="button3" id="button3" value="重置" />
    <input type="image" src="image.jpg" name="button4" id="button4" value="提交" />
    <input type="hidden" name="button5" id="button5" value="隐藏的" />
     

    2,getelementbyid

    语法:

      obj= document . getElementById ( sID )

      参数:

      sID : 必选项。字符串(String)。

          返回值:

      obj: 对象(object)。

    3,CSS选择符有哪些

    (1).通配选择符

    (2).类型选择符

    (3).属性选择符

    (4).子对象选择符

    (5).ID选择符

    (6).类选择符

    4,_self,_blank

    _blank:打开一个新窗体

    _self:在本页打开,此为默认值

    _parent:在父窗体中打开

    _top:在上层窗体中打开

    _search:同时打开搜索窗口

    5,标准盒子,IE盒子

    IE 盒子模型的范围也包括 margin、border、padding、content,和标准 W3C 盒子模型不同的是:IE 盒子模型的 content 部分包含了 border 和 pading。

    6,行内元素有哪些?块级元素

    块级元素

      
    <address> information on author
    <blockquote> long quotation
    <button> push button
    <caption> table caption
    <dd> definition description
    <del> deleted text
    <div> generic language/style container
    <dl> definition list
    <dt> definition term
    <fieldset> form control group
    <form> interactive form
    <h1> heading
    <h2> heading
    <h3> heading
    <h4> heading
    <h5> heading
    <h6> heading
    <hr> horizontal rule
    <iframe> inline subwindow
    <ins> inserted text
    <legend> fieldset legend
    <li> list item
    <map> client-side image map
    <noframes> alternate content container for non frame-based rendering
    <noscript> alternate content container for non script-based rendering
    <object> generic embedded object
    <ol> ordered list
    <p> paragraph
    <pre> preformatted text
    <table> table
    <tbody> table body
    <td> table data cell
    <tfoot> table footer
    <th> table header cell
    <thead> table header
    <tr> table row
    <ul> unordered list

     行内元素

      
    <a> anchor
    <abbr> abbreviated form
    <acronym> acronym
    <b> bold text style
    <bdo> I18N BiDi over-ride
    <big> large text style
    <br> forced line break
    <button> push button
    <cite> citation
    <code> computer code fragment
    <del> deleted text
    <dfn> instance definition
    <em> emphasis
    <i> italic text style
    <iframe> inline subwindow
    <img> Embedded image
    <input> form control
    <ins> inserted text
    <kbd> text to be entered by the user
    <label> form field label text
    <map> client-side image map
    <object> generic embedded object
    <q> short inline quotation
    <samp> sample program output, scripts, etc.
    <select> option selector
    <small> small text style
    <span> generic language/style container
    <strong> strong emphasis
    <sub> subscript
    <sup> superscript
    <textarea> multi-line text field
    <tt> teletype or monospaced text style
    <var> instance of a variable or program argument

    7,PV多大

    PV(page view)即页面浏览量,或点击量,通常是衡量一个网络新闻频道或网站甚至一条网络新闻的主要指标。

    8,JS在页面的位置

    可以写在head上,也可以写在body里。

    9,JS压缩(- 下篇研究)

    10,调试JS

    11,器兼容问题如何解决(各种浏览器,各种内核)

    12,IE6识别(_)

    13,node.js

  • 相关阅读:
    tp5.1 多级控制器
    JS中三个点(...)是什么鬼?
    vue reqwest与fetch的使用
    new Vue({ render: h => h(App), }).$mount('#app')到底什么意思
    ant design vue 表格和国际化的使用
    JAVA日报
    JAVA日报
    JAVA日报
    JAVA日报
    JAVA日报
  • 原文地址:https://www.cnblogs.com/flyscan/p/2555071.html
Copyright © 2011-2022 走看看