会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
华儿E
博客园
首页
新随笔
联系
订阅
管理
2019年11月18日
js
摘要: 1.DOM对象控制HTML详解 document.getElementsByName();//获取namedocument.getElementsByTagName();//获取元素getAttribute() //获取元素属性 对象.getAttribute()2.js浏览器对象——window对
阅读全文
posted @ 2019-11-18 22:11 华儿E
阅读(158)
评论(0)
推荐(0)
2019年11月17日
js
摘要: 1.jsDOM操作CSS 语法:document.getElementById(id).style.property = new style .html <body> <div class="div" id="div"> hello </div> <button onclick="ddmo()">按
阅读全文
posted @ 2019-11-17 22:54 华儿E
阅读(122)
评论(0)
推荐(0)
2019年11月16日
js基础
摘要: 1.使用<script>标签 输出: document.write("<h1>标签h1</h1>") //可以嵌套标签 <script> document.getElementById("pid").innerHTML="hello"; </script> 2.语法和注释 js语句向浏览器发出命令
阅读全文
posted @ 2019-11-16 21:24 华儿E
阅读(108)
评论(0)
推荐(0)
2019年11月14日
css定位
摘要: 1.css定位:改变元素在页面的位置 属性: position :static(偏移量不起效果),relative,absolute,fixed(固定元素位置) z-index:1,2,3(前后位置) 2.浮动: 属性: float:left,right,none,inherit(从父级继承属性)
阅读全文
posted @ 2019-11-14 16:44 华儿E
阅读(124)
评论(0)
推荐(0)
2019年11月13日
前端-css
摘要: css样式 1.css字体 font-size 字体大小 font-family 字体系列 font-style 字体风格 font-weight 字体粗细 自定义字体类型: @font-face { font-family:myfont; src: url();} 2.css链接 (1)四种状态:
阅读全文
posted @ 2019-11-13 20:36 华儿E
阅读(100)
评论(0)
推荐(0)
2019年11月12日
前端-css
摘要: 一 css基础 1.派生选择器:已经定义好的样式不会被覆盖 css写法 例子:p strong{} 2.id选择器:以“#”定义 html中<p id="pid"></p> css中 #pid{ color: red; } 3.两者结合: <p id="pid">hello<a href="http
阅读全文
posted @ 2019-11-12 21:52 华儿E
阅读(92)
评论(0)
推荐(0)
公告