div+css - 其他HTML问题 - disabled属性

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

               

   div+css - 其他HTML问题 - disabled属性

DISABLED Attribute | disabled Property

Sets or retrieves a value that indicates whether the user can interact with the object.
设置或获取用户能否与对象交互的属性值。

   [disabled Property (BUTTON, INPUT type=button, INPUT type=checkbox, ...): - IE标准]

[div+css - 关键词]

div css

   [div+css - 论坛]

http://WebDev.board.newsmth.net/
http://WebGeeks.board.newsmth.net/
http://bbs.pku.edu.cn/, homepage看版
http://forum.csdn.net/SList/HTMLCSS/
http://groups.google.com/group/alt.html
http://groups.google.com/group/comp.infosystems.www.authoring.html
http://groups.google.com/group/comp.infosystems.www.authoring.stylesheets

   [div+css - 工具]

   Internet Explorer Developer Toolbar, http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en

   The W3C Markup Validation Service:, http://validator.w3.org/

   微软印刷技术 - 自由字体信息, TrueType, OpenType, ClearType:, http://www.microsoft.com/typography/default.mspx

   微软印刷技术 - WEFT 3网页嵌入字体3, http://www.microsoft.com/typography/WEFT.mspx

   

   微软印刷技术 - WEFT 3 - 网页嵌入字体3 - 下载, http://www.microsoft.com/typography/web/embedding/weft3/download.aspx

   微软印刷技术 - WEFT 3 - 网页嵌入字体3 - 向导, http://www.microsoft.com/typography/web/embedding/weft3/wizard.aspx

微 软印刷技术 - WEFT 3网页嵌入字体3 - Wizard向导 - Create font objects创建字体对象, http://www.microsoft.com/typography/web/embedding/weft3/wizard.aspx#create

   微 软印刷技术 - WEFT 3网页嵌入字体3 - Wizard向导 - Fonts to embed待嵌入字体, http://www.microsoft.com/typography/web/embedding/weft3/wizard.aspx#embed

   [div+css - 常见问题]

较验div+css格式, http://validator.w3.org/
  div+css的margin缩写方式
  div+css的padding缩写方式
  链接的:link,:visited,:hover,:active四种状态

   div+css使用backgroundRepeat样式设置背景图片的显示方式, http://msdn2.microsoft.com/en-us/library/ms530721.aspx

   page-break-before设置打印分布符

   url()指示符, http://www.w3.org/TR/CSS21/syndata.html#value-def-uri

   !important规则, http://www.w3.org/TR/CSS21/cascade.html#important-rules

   table中直接输入的文字和其他标记设置不同的颜色

   CSS标准中级联的文档, http://www.w3.org/TR/CSS21/cascade.html#cascade

   [div+css - Firefox和IE浏览器兼容问题]

水平居中,Firefox使用margin-left: auto; margin-right: auto; IE6 使用text-align: center;
  垂直居中,Firefox中使用display: table-cell; vertical-align: middle;可以实现div垂直居中,而IE6中则需要借助IE6中css的特点实现垂直居中。
  !important标记,Firefox支持!important标记,IE6忽略!important标记,!important需要放在前面才能起作用
  手形鼠标指针,使用cursor: pointer;
  padding的尺寸,在Firefox中padding是计算在width之外的,而IE6是计算在width之内的
  margin的尺寸,在IE6中带有float样式的元素的margin尺寸计算有误,需要借助padding和!important标记实现兼容

   使用word-wrap设置自动折行, 仅对IE有效

   <li style="overflow:hidden">在Firefox下会丢失左侧的圆点

   Internet Explorer的CSS参考资料, http://msdn2.microsoft.com/en-us/library/ms531209.aspx

   用CSS实现cellSpacing属性效果, border-spacing: 10px; border-spacing: expression(this.cellSpacing=10);

   padding-right在IE6下导致抖动

   [div+css - CSS标准]

   Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification:级联样式表第2级第1次修改(CSS 2.1)规范, http://www.w3.org/TR/CSS21/

   4.3.2 Lengths长度, http://www.w3.org/TR/CSS21/syndata.html#length-units

5.8.3 Class selectors - Class选择器 - CSS标准文档, http://www.w3.org/TR/CSS21/selector.html#class-html

class属性 - IE文档, http://msdn2.microsoft.com/en-us/library/ms533560.aspx

  

  

8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin' - 8.3边距属性, http://www.w3.org/TR/CSS21/box.html#margin-properties

   

   8.5 Border properties边框属性, http://www.w3.org/TR/CSS21/box.html#border-properties

   

   9.5 Floats浮动, http://www.w3.org/TR/CSS21/visuren.html#floats

   background-image背景图片, http://www.w3.org/TR/CSS21/colors.html#propdef-background-image

   17.6.2 The collapsing border model压缩边框模型, http://www.w3.org/TR/CSS21/tables.html#collapsing-borders

   

   border-collapse压缩边框 - IE文档, http://msdn2.microsoft.com/en-us/library/ms533513.aspx

  

  

  

   [div+css - XHTML标准]

   5.6. Table Modules - Table模块, http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#sec_5.6.

   [div+css - 其他HTML问题]

   使用OPTGROUP对SELECT中的OPTION分组

   nowrap标记设置不自动折行, http://www.w3.org/TR/1998/REC-html40-19980424/struct/tables.html#adef-nowrap

   leftmargin设置页面左边距, topmargin设置页面上边距

   disabled属性, http://msdn2.microsoft.com/en-us/library/ms533732.aspx

About Font Embedding:关于字体嵌入, http://msdn2.microsoft.com/en-us/library/ms533034.aspx

Vector Markup Language (VML):, http://msdn2.microsoft.com/en-us/library/bb264280.aspx

           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow
这里写图片描述
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,让我们来一步步实现这个功能。 首先,我们需要安装 Element UI,可以通过 npm 安装: ``` npm install element-ui --save ``` 然后在 main.js 中引入并使用: ```js import Vue from 'vue' import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' Vue.use(ElementUI) ``` 接下来,我们来实现时间线组件。可以在组件中使用 el-timeline 和 el-timeline-item 组件,代码如下: ```html <template> <el-timeline> <el-timeline-item v-for="(item,index) in list" :key="index" :timestamp="item.time">{{ item.content }}</el-timeline-item> </el-timeline> </template> ``` 其中,list 是传入组件的数据,包含每个时间点的内容和时间信息。 接着,我们来实现自动滚动功能。可以通过监听 el-timeline 的 scroll 事件,将 el-timeline 的 scrollTop 设置为最大值,让其自动滚动到底部。代码如下: ```html <template> <el-timeline ref="timeline" @scroll="handleScroll"> <el-timeline-item v-for="(item,index) in list" :key="index" :timestamp="item.time">{{ item.content }}</el-timeline-item> </el-timeline> </template> <script> export default { methods: { handleScroll() { const timelineEl = this.$refs.timeline.$el timelineEl.scrollTop = timelineEl.scrollHeight } } } </script> ``` 然后,我们来实现无限滚动和动态加载功能。可以使用 v-infinite-scroll 插件,通过监听 el-timeline 的滚动事件,在滚动到底部时触发加载更多数据的方法。代码如下: ```html <template> <el-timeline ref="timeline" @scroll="handleScroll" v-infinite-scroll="loadMore" infinite-scroll-disabled="loading" infinite-scroll-distance="10"> <el-timeline-item v-for="(item,index) in list" :key="index" :timestamp="item.time">{{ item.content }}</el-timeline-item> <div v-if="loading">正在加载...</div> </el-timeline> </template> <script> import { InfiniteScroll } from 'element-ui' export default { directives: { InfiniteScroll }, data() { return { list: [], // 数据列表 loading: false // 是否正在加载 } }, methods: { // 加载数据 loadMore() { if (this.loading) { return } this.loading = true // 模拟异步加载数据 setTimeout(() => { const newData = [{ time: '2021-08-01', content: '新的内容' }] this.list = this.list.concat(newData) this.loading = false }, 1000) }, // 滚动事件 handleScroll() { const timelineEl = this.$refs.timeline.$el if (timelineEl.scrollTop === 0) { this.loadMore() } } } } </script> ``` 在上面的代码中,我们使用了 element-ui 中的 InfiniteScroll 指令来实现无限滚动功能。同时,我们在 el-timeline 中添加了 infinite-scroll-disabled 和 infinite-scroll-distance 属性,分别用于控制是否禁用无限滚动和触发加载更多数据的距离。 现在我们已经完成了 element-ui 的时间线组件 + 自动滚动 + v-infinite-scroll 无限滚动 + 动态加载功能的实现。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值