code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
// 间距基础倍数 $uni-space-root: 2; // 边框半径默认值 $uni-radius-root:5px; // 主色 $uni-primary: #2979ff; // 辅助色 $uni-success: #4cd964; // 警告色 $uni-warning: #f0ad4e; // 错误色 $uni-error: #dd524d; // 描述色 $uni-info: #909399; // 中性色 $uni-main-color: #303133; $uni-base-color: #606266; $uni-secondary-color: #909399; $uni-extra-color: #C0C4CC; // 背景色 $uni-bg-color: #f5f5f5; // 边框颜色 $uni-border-1: #DCDFE6; $uni-border-2: #E4E7ED; $uni-border-3: #EBEEF5; $uni-border-4: #F2F6FC; // 常规色 $uni-black: #000000; $uni-white: #ffffff; $uni-transparent: rgba($color: #000000, $alpha: 0);
2202_75391616/ui
uni_modules/uni-scss/theme.scss
SCSS
unknown
641
@import './styles/setting/_variables.scss'; // 间距基础倍数 $uni-space-root: 2; // 边框半径默认值 $uni-radius-root:5px; // 主色 $uni-primary: #2979ff; $uni-primary-disable:mix(#fff,$uni-primary,50%); $uni-primary-light: mix(#fff,$uni-primary,80%); // 辅助色 // 除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。 $uni-success: #18bc37; $uni-success-disable:mix(#fff,$uni-success,50%); $uni-success-light: mix(#fff,$uni-success,80%); $uni-warning: #f3a73f; $uni-warning-disable:mix(#fff,$uni-warning,50%); $uni-warning-light: mix(#fff,$uni-warning,80%); $uni-error: #e43d33; $uni-error-disable:mix(#fff,$uni-error,50%); $uni-error-light: mix(#fff,$uni-error,80%); $uni-info: #8f939c; $uni-info-disable:mix(#fff,$uni-info,50%); $uni-info-light: mix(#fff,$uni-info,80%); // 中性色 // 中性色用于文本、背景和边框颜色。通过运用不同的中性色,来表现层次结构。 $uni-main-color: #3a3a3a; // 主要文字 $uni-base-color: #6a6a6a; // 常规文字 $uni-secondary-color: #909399; // 次要文字 $uni-extra-color: #c7c7c7; // 辅助说明 // 边框颜色 $uni-border-1: #F0F0F0; $uni-border-2: #EDEDED; $uni-border-3: #DCDCDC; $uni-border-4: #B9B9B9; // 常规色 $uni-black: #000000; $uni-white: #ffffff; $uni-transparent: rgba($color: #000000, $alpha: 0); // 背景色 $uni-bg-color: #f7f7f7; /* 水平间距 */ $uni-spacing-sm: 8px; $uni-spacing-base: 15px; $uni-spacing-lg: 30px; // 阴影 $uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5); $uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2); $uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5); // 蒙版 $uni-mask: rgba($color: #000000, $alpha: 0.4);
2202_75391616/ui
uni_modules/uni-scss/variables.scss
SCSS
unknown
1,764
import en from './en.json' import zhHans from './zh-Hans.json' import zhHant from './zh-Hant.json' export default { en, 'zh-Hans': zhHans, 'zh-Hant': zhHant }
2202_75391616/ui
uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js
JavaScript
unknown
162
<template> <view class="uni-searchbar"> <view :style="{borderRadius:radius+'px',backgroundColor: bgColor}" class="uni-searchbar__box" @click="searchClick"> <view class="uni-searchbar__box-icon-search"> <slot name="searchIcon"> <uni-icons color="#c0c4cc" size="18" type="search" /> </slot> </view> <input v-if="show || searchVal" :focus="showSync" :disabled="readonly" :placeholder="placeholderText" :maxlength="maxlength" class="uni-searchbar__box-search-input" confirm-type="search" type="text" v-model="searchVal" :style="{color:textColor}" @confirm="confirm" @blur="blur" @focus="emitFocus"/> <text v-else class="uni-searchbar__text-placeholder">{{ placeholder }}</text> <view v-if="show && (clearButton==='always'||clearButton==='auto'&&searchVal!=='') &&!readonly" class="uni-searchbar__box-icon-clear" @click="clear"> <slot name="clearIcon"> <uni-icons color="#c0c4cc" size="20" type="clear" /> </slot> </view> </view> <text @click="cancel" class="uni-searchbar__cancel" v-if="cancelButton ==='always' || show && cancelButton ==='auto'">{{cancelTextI18n}}</text> </view> </template> <script> import { initVueI18n } from '@dcloudio/uni-i18n' import messages from './i18n/index.js' const { t } = initVueI18n(messages) /** * SearchBar 搜索栏 * @description 搜索栏组件,通常用于搜索商品、文章等 * @tutorial https://ext.dcloud.net.cn/plugin?id=866 * @property {Number} radius 搜索栏圆角 * @property {Number} maxlength 输入最大长度 * @property {String} placeholder 搜索栏Placeholder * @property {String} clearButton = [always|auto|none] 是否显示清除按钮 * @value always 一直显示 * @value auto 输入框不为空时显示 * @value none 一直不显示 * @property {String} cancelButton = [always|auto|none] 是否显示取消按钮 * @value always 一直显示 * @value auto 输入框不为空时显示 * @value none 一直不显示 * @property {String} cancelText 取消按钮的文字 * @property {String} bgColor 输入框背景颜色 * @property {String} textColor 输入文字颜色 * @property {Boolean} focus 是否自动聚焦 * @property {Boolean} readonly 组件只读,不能有任何操作,只做展示 * @event {Function} confirm uniSearchBar 的输入框 confirm 事件,返回参数为uniSearchBar的value,e={value:Number} * @event {Function} input uniSearchBar 的 value 改变时触发事件,返回参数为uniSearchBar的value,e=value * @event {Function} cancel 点击取消按钮时触发事件,返回参数为uniSearchBar的value,e={value:Number} * @event {Function} clear 点击清除按钮时触发事件,返回参数为uniSearchBar的value,e={value:Number} * @event {Function} blur input失去焦点时触发事件,返回参数为uniSearchBar的value,e={value:Number} */ export default { name: "UniSearchBar", emits: ['input', 'update:modelValue', 'clear', 'cancel', 'confirm', 'blur', 'focus'], props: { placeholder: { type: String, default: "" }, radius: { type: [Number, String], default: 5 }, clearButton: { type: String, default: "auto" }, cancelButton: { type: String, default: "auto" }, cancelText: { type: String, default: "" }, bgColor: { type: String, default: "#F8F8F8" }, textColor: { type: String, default: "#000000" }, maxlength: { type: [Number, String], default: 100 }, value: { type: [Number, String], default: "" }, modelValue: { type: [Number, String], default: "" }, focus: { type: Boolean, default: false }, readonly: { type: Boolean, default: false } }, data() { return { show: false, showSync: false, searchVal: '' } }, computed: { cancelTextI18n() { return this.cancelText || t("uni-search-bar.cancel") }, placeholderText() { return this.placeholder || t("uni-search-bar.placeholder") } }, watch: { // #ifndef VUE3 value: { immediate: true, handler(newVal) { this.searchVal = newVal if (newVal) { this.show = true } } }, // #endif // #ifdef VUE3 modelValue: { immediate: true, handler(newVal) { this.searchVal = newVal if (newVal) { this.show = true } } }, // #endif focus: { immediate: true, handler(newVal) { if (newVal) { if(this.readonly) return this.show = true; this.$nextTick(() => { this.showSync = true }) } } }, searchVal(newVal, oldVal) { this.$emit("input", newVal) // #ifdef VUE3 this.$emit("update:modelValue", newVal) // #endif } }, methods: { searchClick() { if(this.readonly) return if (this.show) { return } this.show = true; this.$nextTick(() => { this.showSync = true }) }, clear() { this.searchVal = "" this.$nextTick(() => { this.$emit("clear", { value: "" }) }) }, cancel() { if(this.readonly) return this.$emit("cancel", { value: this.searchVal }); this.searchVal = "" this.show = false this.showSync = false // #ifndef APP-PLUS uni.hideKeyboard() // #endif // #ifdef APP-PLUS plus.key.hideSoftKeybord() // #endif }, confirm() { // #ifndef APP-PLUS uni.hideKeyboard(); // #endif // #ifdef APP-PLUS plus.key.hideSoftKeybord() // #endif this.$emit("confirm", { value: this.searchVal }) }, blur() { // #ifndef APP-PLUS uni.hideKeyboard(); // #endif // #ifdef APP-PLUS plus.key.hideSoftKeybord() // #endif this.$emit("blur", { value: this.searchVal }) }, emitFocus(e) { this.$emit("focus", e.detail) } } }; </script> <style lang="scss"> $uni-searchbar-height: 36px; .uni-searchbar { /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: row; position: relative; padding: 10px; // background-color: #fff; } .uni-searchbar__box { /* #ifndef APP-NVUE */ display: flex; box-sizing: border-box; justify-content: left; /* #endif */ overflow: hidden; position: relative; flex: 1; flex-direction: row; align-items: center; height: $uni-searchbar-height; padding: 5px 8px 5px 0px; } .uni-searchbar__box-icon-search { /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: row; // width: 32px; padding: 0 8px; justify-content: center; align-items: center; color: #B3B3B3; } .uni-searchbar__box-search-input { flex: 1; font-size: 14px; color: #333; margin-left: 5px; margin-top: 1px; /* #ifndef APP-NVUE */ background-color: inherit; /* #endif */ } .uni-searchbar__box-icon-clear { align-items: center; line-height: 24px; padding-left: 8px; /* #ifdef H5 */ cursor: pointer; /* #endif */ } .uni-searchbar__text-placeholder { font-size: 14px; color: #B3B3B3; margin-left: 5px; text-align: left; } .uni-searchbar__cancel { padding-left: 10px; line-height: $uni-searchbar-height; font-size: 14px; color: #333333; /* #ifdef H5 */ cursor: pointer; /* #endif */ } </style>
2202_75391616/ui
uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue
Vue
unknown
7,304
<template> <view class="uni-section"> <view class="uni-section-header" @click="onClick"> <view class="uni-section-header__decoration" v-if="type" :class="type" /> <slot v-else name="decoration"></slot> <view class="uni-section-header__content"> <text :style="{'font-size':titleFontSize,'color':titleColor}" class="uni-section__content-title" :class="{'distraction':!subTitle}">{{ title }}</text> <text v-if="subTitle" :style="{'font-size':subTitleFontSize,'color':subTitleColor}" class="uni-section-header__content-sub">{{ subTitle }}</text> </view> <view class="uni-section-header__slot-right"> <slot name="right"></slot> </view> </view> <view class="uni-section-content" :style="{padding: _padding}"> <slot /> </view> </view> </template> <script> /** * Section 标题栏 * @description 标题栏 * @property {String} type = [line|circle|square] 标题装饰类型 * @value line 竖线 * @value circle 圆形 * @value square 正方形 * @property {String} title 主标题 * @property {String} titleFontSize 主标题字体大小 * @property {String} titleColor 主标题字体颜色 * @property {String} subTitle 副标题 * @property {String} subTitleFontSize 副标题字体大小 * @property {String} subTitleColor 副标题字体颜色 * @property {String} padding 默认插槽 padding */ export default { name: 'UniSection', emits:['click'], props: { type: { type: String, default: '' }, title: { type: String, required: true, default: '' }, titleFontSize: { type: String, default: '14px' }, titleColor:{ type: String, default: '#333' }, subTitle: { type: String, default: '' }, subTitleFontSize: { type: String, default: '12px' }, subTitleColor: { type: String, default: '#999' }, padding: { type: [Boolean, String], default: false } }, computed:{ _padding(){ if(typeof this.padding === 'string'){ return this.padding } return this.padding?'10px':'' } }, watch: { title(newVal) { if (uni.report && newVal !== '') { uni.report('title', newVal) } } }, methods: { onClick() { this.$emit('click') } } } </script> <style lang="scss" > $uni-primary: #2979ff !default; .uni-section { background-color: #fff; .uni-section-header { position: relative; /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: row; align-items: center; padding: 12px 10px; font-weight: normal; &__decoration{ margin-right: 6px; background-color: $uni-primary; &.line { width: 4px; height: 12px; border-radius: 10px; } &.circle { width: 8px; height: 8px; border-top-right-radius: 50px; border-top-left-radius: 50px; border-bottom-left-radius: 50px; border-bottom-right-radius: 50px; } &.square { width: 8px; height: 8px; } } &__content { /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: column; flex: 1; color: #333; .distraction { flex-direction: row; align-items: center; } &-sub { margin-top: 2px; } } &__slot-right{ font-size: 14px; } } .uni-section-content{ font-size: 14px; } } </style>
2202_75391616/ui
uni_modules/uni-section/components/uni-section/uni-section.vue
Vue
unknown
3,700
<template> <view :class="[styleType === 'text'?'segmented-control--text' : 'segmented-control--button' ]" :style="{ borderColor: styleType === 'text' ? '' : activeColor }" class="segmented-control"> <view v-for="(item, index) in values" :class="[styleType === 'text' ? '' : 'segmented-control__item--button', index === 0 && styleType === 'button' ? 'segmented-control__item--button--first' : '', index === values.length - 1 && styleType === 'button' ? 'segmented-control__item--button--last':'']" :key="index" :style="{backgroundColor: index === currentIndex && styleType === 'button' ? activeColor : styleType === 'button' ?inActiveColor:'transparent', borderColor: index === currentIndex && styleType === 'text' || styleType === 'button' ? activeColor : inActiveColor}" class="segmented-control__item" @click="_onClick(index)"> <view> <text :style="{color:index === currentIndex? styleType === 'text'? activeColor: '#fff': styleType === 'text'? '#000': activeColor}" class="segmented-control__text" :class="styleType === 'text' && index === currentIndex ? 'segmented-control__item--text': ''">{{ item }}</text> </view> </view> </view> </template> <script> /** * SegmentedControl 分段器 * @description 用作不同视图的显示 * @tutorial https://ext.dcloud.net.cn/plugin?id=54 * @property {Number} current 当前选中的tab索引值,从0计数 * @property {String} styleType = [button|text] 分段器样式类型 * @value button 按钮类型 * @value text 文字类型 * @property {String} activeColor 选中的标签背景色与边框颜色 * @property {String} inActiveColor 未选中的标签背景色与边框颜色 * @property {Array} values 选项数组 * @event {Function} clickItem 组件触发点击事件时触发,e={currentIndex} */ export default { name: 'UniSegmentedControl', emits: ['clickItem'], props: { current: { type: Number, default: 0 }, values: { type: Array, default () { return [] } }, activeColor: { type: String, default: '#2979FF' }, inActiveColor: { type: String, default: 'transparent' }, styleType: { type: String, default: 'button' } }, data() { return { currentIndex: 0 } }, watch: { current(val) { if (val !== this.currentIndex) { this.currentIndex = val } } }, computed: {}, created() { this.currentIndex = this.current }, methods: { _onClick(index) { if (this.currentIndex !== index) { this.currentIndex = index this.$emit('clickItem', { currentIndex: index }) } } } } </script> <style lang="scss" scoped> .segmented-control { /* #ifndef APP-NVUE */ display: flex; box-sizing: border-box; /* #endif */ flex-direction: row; height: 36px; overflow: hidden; /* #ifdef H5 */ cursor: pointer; /* #endif */ } .segmented-control__item { /* #ifndef APP-NVUE */ display: inline-flex; box-sizing: border-box; /* #endif */ position: relative; flex: 1; justify-content: center; align-items: center; } .segmented-control__item--button { border-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-right-width: 1px; border-left-width: 0; } .segmented-control__item--button--first { border-left-width: 1px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; } .segmented-control__item--button--last { border-top-right-radius: 5px; border-bottom-right-radius: 5px; } .segmented-control__item--text { border-bottom-style: solid; border-bottom-width: 2px; padding: 6px 0; } .segmented-control__text { font-size: 14px; line-height: 20px; text-align: center; } </style>
2202_75391616/ui
uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.vue
Vue
unknown
3,768
<template> <view class="uni-steps"> <view :class="[direction==='column'?'uni-steps__column':'uni-steps__row']"> <view :class="[direction==='column'?'uni-steps__column-text-container':'uni-steps__row-text-container']"> <view v-for="(item,index) in options" :key="index" :class="[direction==='column'?'uni-steps__column-text':'uni-steps__row-text']"> <text :style="{color:index === active?activeColor:deactiveColor}" :class="[direction==='column'?'uni-steps__column-title':'uni-steps__row-title']">{{item.title}}</text> <text :style="{color: deactiveColor}" :class="[direction==='column'?'uni-steps__column-desc':'uni-steps__row-desc']">{{item.desc}}</text> </view> </view> <view :class="[direction==='column'?'uni-steps__column-container':'uni-steps__row-container']"> <view :class="[direction==='column'?'uni-steps__column-line-item':'uni-steps__row-line-item']" v-for="(item,index) in options" :key="index" :style="{height: direction === 'column'?heightArr[index]+'px':'14px'}"> <view :class="[direction==='column'?'uni-steps__column-line':'uni-steps__row-line',direction==='column'?'uni-steps__column-line--before':'uni-steps__row-line--before']" :style="{backgroundColor:index<=active&&index!==0?activeColor:index===0?'transparent':deactiveColor}"> </view> <view :class="[direction==='column'?'uni-steps__column-check':'uni-steps__row-check']" v-if="index === active"> <uni-icons :color="activeColor" :type="activeIcon" size="14" /> </view> <view v-else :class="[direction==='column'?'uni-steps__column-circle':'uni-steps__row-circle']" :style="{backgroundColor:index<active?activeColor:deactiveColor}" /> <view :class="[direction==='column'?'uni-steps__column-line':'uni-steps__row-line',direction==='column'?'uni-steps__column-line--after':'uni-steps__row-line--after']" :style="{backgroundColor:index<active&&index!==options.length-1?activeColor:index===options.length-1?'transparent':deactiveColor}" /> </view> </view> </view> </view> </template> <script> /** * Steps 步骤条 * @description 评分组件 * @tutorial https://ext.dcloud.net.cn/plugin?id=34 * @property {Number} active 当前步骤 * @property {String} direction = [row|column] 当前步骤 * @value row 横向 * @value column 纵向 * @property {String} activeColor 选中状态的颜色 * @property {Array} options 数据源,格式为:[{title:'xxx',desc:'xxx'},{title:'xxx',desc:'xxx'}] */ export default { name: 'UniSteps', props: { direction: { // 排列方向 row column type: String, default: 'row' }, activeColor: { // 激活状态颜色 type: String, default: '#2979FF' }, deactiveColor: { // 未激活状态颜色 type: String, default: '#B7BDC6' }, active: { // 当前步骤 type: Number, default: 0 }, activeIcon: { // 当前步骤 type: String, default: 'checkbox-filled' }, options: { type: Array, default () { return [] } } // 数据 }, data() { return { heightArr: [], } }, mounted() { //根据内容设置步骤条的长度 if (this.direction === 'column') { let that = this; //只能用类选择器,用id选择器所获取的元素信息不准确 uni.createSelectorQuery().in(this).selectAll('.uni-steps__column-text').boundingClientRect(data => { that.heightArr = data.map(item => item.height + 1); }).exec() } }, } </script> <style lang="scss"> $uni-primary: #2979ff !default; $uni-border-color: #EDEDED; .uni-steps { /* #ifndef APP-NVUE */ display: flex; width: 100%; /* #endif */ /* #ifdef APP-NVUE */ flex: 1; /* #endif */ flex-direction: column; } .uni-steps__row { /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: column; } .uni-steps__column { /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: row-reverse; } .uni-steps__row-text-container { /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: row; align-items: flex-end; margin-bottom: 8px; } .uni-steps__column-text-container { /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: column; flex: 1; } .uni-steps__row-text { /* #ifndef APP-NVUE */ display: inline-flex; /* #endif */ flex: 1; flex-direction: column; } .uni-steps__column-text { padding: 6px 0px; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: $uni-border-color; /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: column; } .uni-steps__row-title { font-size: 14px; line-height: 16px; text-align: center; } .uni-steps__column-title { font-size: 14px; text-align: left; line-height: 18px; } .uni-steps__row-desc { font-size: 12px; line-height: 14px; text-align: center; } .uni-steps__column-desc { font-size: 12px; text-align: left; line-height: 18px; } .uni-steps__row-container { /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: row; } .uni-steps__column-container { /* #ifndef APP-NVUE */ display: inline-flex; /* #endif */ width: 30px; flex-direction: column; } .uni-steps__row-line-item { /* #ifndef APP-NVUE */ display: inline-flex; /* #endif */ flex-direction: row; flex: 1; height: 14px; line-height: 14px; align-items: center; justify-content: center; } .uni-steps__column-line-item { /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: column; align-items: center; justify-content: center; } .uni-steps__row-line { flex: 1; height: 1px; background-color: #B7BDC6; } .uni-steps__column-line { width: 1px; background-color: #B7BDC6; } .uni-steps__row-line--after { transform: translateX(1px); } .uni-steps__column-line--after { flex: 1; transform: translate(0px, 1px); } .uni-steps__row-line--before { transform: translateX(-1px); } .uni-steps__column-line--before { height: 6px; transform: translate(0px, -13px); } .uni-steps__row-circle { width: 5px; height: 5px; border-radius: 50%; background-color: #B7BDC6; margin: 0px 3px; } .uni-steps__column-circle { width: 5px; height: 5px; border-radius: 50%; background-color: #B7BDC6; margin: 4px 0px 5px 0px; } .uni-steps__row-check { margin: 0px 6px; } .uni-steps__column-check { height: 14px; line-height: 14px; margin: 2px 0px; } </style>
2202_75391616/ui
uni_modules/uni-steps/components/uni-steps/uni-steps.vue
Vue
unknown
6,568
<template> <view> <slot></slot> </view> </template> <script> /** * SwipeAction 滑动操作 * @description 通过滑动触发选项的容器 * @tutorial https://ext.dcloud.net.cn/plugin?id=181 */ export default { name:"uniSwipeAction", data() { return {}; }, created() { this.children = []; }, methods: { // 公开给用户使用,重制组件样式 resize(){ // wxs 会自己计算组件大小,所以无需执行下面代码 // #ifndef APP-VUE || H5 || MP-WEIXIN this.children.forEach(vm=>{ vm.init() }) // #endif }, // 公开给用户使用,关闭全部 已经打开的组件 closeAll(){ this.children.forEach(vm=>{ // #ifdef APP-VUE || H5 || MP-WEIXIN vm.is_show = 'none' // #endif // #ifndef APP-VUE || H5 || MP-WEIXIN vm.close() // #endif }) }, closeOther(vm) { if (this.openItem && this.openItem !== vm) { // #ifdef APP-VUE || H5 || MP-WEIXIN this.openItem.is_show = 'none' // #endif // #ifndef APP-VUE || H5 || MP-WEIXIN this.openItem.close() // #endif } // 记录上一个打开的 swipe-action-item ,用于 auto-close this.openItem = vm } } }; </script> <style></style>
2202_75391616/ui
uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue
Vue
unknown
1,256
let bindIngXMixins = {} // #ifdef APP-NVUE const BindingX = uni.requireNativePlugin('bindingx'); const dom = uni.requireNativePlugin('dom'); const animation = uni.requireNativePlugin('animation'); bindIngXMixins = { data() { return {} }, watch: { show(newVal) { if (this.autoClose) return if (this.stop) return this.stop = true if (newVal) { this.open(newVal) } else { this.close() } }, leftOptions() { this.getSelectorQuery() this.init() }, rightOptions(newVal) { this.init() } }, created() { this.swipeaction = this.getSwipeAction() if (this.swipeaction && Array.isArray(this.swipeaction.children)) { this.swipeaction.children.push(this) } }, mounted() { this.box = this.getEl(this.$refs['selector-box--hock']) this.selector = this.getEl(this.$refs['selector-content--hock']); this.leftButton = this.getEl(this.$refs['selector-left-button--hock']); this.rightButton = this.getEl(this.$refs['selector-right-button--hock']); this.init() }, // beforeDestroy() { // this.swipeaction.children.forEach((item, index) => { // if (item === this) { // this.swipeaction.children.splice(index, 1) // } // }) // }, methods: { init() { this.$nextTick(() => { this.x = 0 this.button = { show: false } setTimeout(() => { this.getSelectorQuery() }, 200) }) }, onClick(index, item, position) { this.$emit('click', { content: item, index, position }) }, touchstart(e) { // fix by mehaotian 禁止滑动 if (this.disabled) return // 每次只触发一次,避免多次监听造成闪烁 if (this.stop) return this.stop = true if (this.autoClose && this.swipeaction) { this.swipeaction.closeOther(this) } const leftWidth = this.button.left.width const rightWidth = this.button.right.width let expression = this.range(this.x, -rightWidth, leftWidth) let leftExpression = this.range(this.x - leftWidth, -leftWidth, 0) let rightExpression = this.range(this.x + rightWidth, 0, rightWidth) this.eventpan = BindingX.bind({ anchor: this.box, eventType: 'pan', props: [{ element: this.selector, property: 'transform.translateX', expression }, { element: this.leftButton, property: 'transform.translateX', expression: leftExpression }, { element: this.rightButton, property: 'transform.translateX', expression: rightExpression }, ] }, (e) => { // nope if (e.state === 'end') { this.x = e.deltaX + this.x; this.isclick = true this.bindTiming(e.deltaX) } }); }, touchend(e) { if (this.isopen !== 'none' && !this.isclick) { this.open('none') } }, bindTiming(x) { const left = this.x const leftWidth = this.button.left.width const rightWidth = this.button.right.width const threshold = this.threshold if (!this.isopen || this.isopen === 'none') { if (left > threshold) { this.open('left') } else if (left < -threshold) { this.open('right') } else { this.open('none') } } else { if ((x > -leftWidth && x < 0) || x > rightWidth) { if ((x > -threshold && x < 0) || (x - rightWidth > threshold)) { this.open('left') } else { this.open('none') } } else { if ((x < threshold && x > 0) || (x + leftWidth < -threshold)) { this.open('right') } else { this.open('none') } } } }, /** * 移动范围 * @param {Object} num * @param {Object} mix * @param {Object} max */ range(num, mix, max) { return `min(max(x+${num}, ${mix}), ${max})` }, /** * 开启swipe */ open(type) { this.animation(type) }, /** * 关闭swipe */ close() { this.animation('none') }, /** * 开启关闭动画 * @param {Object} type */ animation(type) { const time = 300 const leftWidth = this.button.left.width const rightWidth = this.button.right.width if (this.eventpan && this.eventpan.token) { BindingX.unbind({ token: this.eventpan.token, eventType: 'pan' }) } switch (type) { case 'left': Promise.all([ this.move(this.selector, leftWidth), this.move(this.leftButton, 0), this.move(this.rightButton, rightWidth * 2) ]).then(() => { this.setEmit(leftWidth, type) }) break case 'right': Promise.all([ this.move(this.selector, -rightWidth), this.move(this.leftButton, -leftWidth * 2), this.move(this.rightButton, 0) ]).then(() => { this.setEmit(-rightWidth, type) }) break default: Promise.all([ this.move(this.selector, 0), this.move(this.leftButton, -leftWidth), this.move(this.rightButton, rightWidth) ]).then(() => { this.setEmit(0, type) }) } }, setEmit(x, type) { const leftWidth = this.button.left.width const rightWidth = this.button.right.width this.isopen = this.isopen || 'none' this.stop = false this.isclick = false // 只有状态不一致才会返回结果 if (this.isopen !== type && this.x !== x) { if (type === 'left' && leftWidth > 0) { this.$emit('change', 'left') } if (type === 'right' && rightWidth > 0) { this.$emit('change', 'right') } if (type === 'none') { this.$emit('change', 'none') } } this.x = x this.isopen = type }, move(ref, value) { return new Promise((resolve, reject) => { animation.transition(ref, { styles: { transform: `translateX(${value})`, }, duration: 150, //ms timingFunction: 'linear', needLayout: false, delay: 0 //ms }, function(res) { resolve(res) }) }) }, /** * 获取ref * @param {Object} el */ getEl(el) { return el.ref }, /** * 获取节点信息 */ getSelectorQuery() { Promise.all([ this.getDom('left'), this.getDom('right'), ]).then((data) => { let show = 'none' if (this.autoClose) { show = 'none' } else { show = this.show } if (show === 'none') { // this.close() } else { this.open(show) } }) }, getDom(str) { return new Promise((resolve, reject) => { dom.getComponentRect(this.$refs[`selector-${str}-button--hock`], (data) => { if (data) { this.button[str] = data.size resolve(data) } else { reject() } }) }) } } } // #endif export default bindIngXMixins
2202_75391616/ui
uni_modules/uni-swipe-action/components/uni-swipe-action-item/bindingx.js
JavaScript
unknown
6,533
export function isPC() { var userAgentInfo = navigator.userAgent; var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; var flag = true; for (let v = 0; v < Agents.length - 1; v++) { if (userAgentInfo.indexOf(Agents[v]) > 0) { flag = false; break; } } return flag; }
2202_75391616/ui
uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js
JavaScript
unknown
311
export default { data() { return { x: 0, transition: false, width: 0, viewWidth: 0, swipeShow: 0 } }, watch: { show(newVal) { if (this.autoClose) return if (newVal && newVal !== 'none') { this.transition = true this.open(newVal) } else { this.close() } } }, created() { this.swipeaction = this.getSwipeAction() if (this.swipeaction && Array.isArray(this.swipeaction.children)) { this.swipeaction.children.push(this) } }, mounted() { this.isopen = false setTimeout(() => { this.getQuerySelect() }, 50) }, methods: { appTouchStart(e) { const { clientX } = e.changedTouches[0] this.clientX = clientX this.timestamp = new Date().getTime() }, appTouchEnd(e, index, item, position) { const { clientX } = e.changedTouches[0] // fixed by xxxx 模拟点击事件,解决 ios 13 点击区域错位的问题 let diff = Math.abs(this.clientX - clientX) let time = (new Date().getTime()) - this.timestamp if (diff < 40 && time < 300) { this.$emit('click', { content: item, index, position }) } }, /** * 移动触发 * @param {Object} e */ onChange(e) { this.moveX = e.detail.x this.isclose = false }, touchstart(e) { this.transition = false this.isclose = true if (this.autoClose && this.swipeaction) { this.swipeaction.closeOther(this) } }, touchmove(e) {}, touchend(e) { // 0的位置什么都不执行 if (this.isclose && this.isopen === 'none') return if (this.isclose && this.isopen !== 'none') { this.transition = true this.close() } else { this.move(this.moveX + this.leftWidth) } }, /** * 移动 * @param {Object} moveX */ move(moveX) { // 打开关闭的处理逻辑不太一样 this.transition = true // 未打开状态 if (!this.isopen || this.isopen === 'none') { if (moveX > this.threshold) { this.open('left') } else if (moveX < -this.threshold) { this.open('right') } else { this.close() } } else { if (moveX < 0 && moveX < this.rightWidth) { const rightX = this.rightWidth + moveX if (rightX < this.threshold) { this.open('right') } else { this.close() } } else if (moveX > 0 && moveX < this.leftWidth) { const leftX = this.leftWidth - moveX if (leftX < this.threshold) { this.open('left') } else { this.close() } } } }, /** * 打开 */ open(type) { this.x = this.moveX this.animation(type) }, /** * 关闭 */ close() { this.x = this.moveX // TODO 解决 x 值不更新的问题,所以会多触发一次 nextTick ,待优化 this.$nextTick(() => { this.x = -this.leftWidth if (this.isopen !== 'none') { this.$emit('change', 'none') } this.isopen = 'none' }) }, /** * 执行结束动画 * @param {Object} type */ animation(type) { this.$nextTick(() => { if (type === 'left') { this.x = 0 } else { this.x = -this.rightWidth - this.leftWidth } if (this.isopen !== type) { this.$emit('change', type) } this.isopen = type }) }, getSlide(x) {}, getQuerySelect() { const query = uni.createSelectorQuery().in(this); query.selectAll('.movable-view--hock').boundingClientRect(data => { this.leftWidth = data[1].width this.rightWidth = data[2].width this.width = data[0].width this.viewWidth = this.width + this.rightWidth + this.leftWidth if (this.leftWidth === 0) { // TODO 疑似bug ,初始化的时候如果x 是0,会导致移动位置错误,所以让元素超出一点 this.x = -0.1 } else { this.x = -this.leftWidth } this.moveX = this.x this.$nextTick(() => { this.swipeShow = 1 }) if (!this.buttonWidth) { this.disabledView = true } if (this.autoClose) return if (this.show !== 'none') { this.transition = true this.open(this.shows) } }).exec(); } } }
2202_75391616/ui
uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpalipay.js
JavaScript
unknown
4,065
let otherMixins = {} // #ifndef APP-PLUS|| MP-WEIXIN || H5 const MIN_DISTANCE = 10; otherMixins = { data() { // TODO 随机生生元素ID,解决百度小程序获取同一个元素位置信息的bug const elClass = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}` return { uniShow: false, left: 0, buttonShow: 'none', ani: false, moveLeft: '', elClass } }, watch: { show(newVal) { if (this.autoClose) return this.openState(newVal) }, left() { this.moveLeft = `translateX(${this.left}px)` }, buttonShow(newVal) { if (this.autoClose) return this.openState(newVal) }, leftOptions() { this.init() }, rightOptions() { this.init() } }, mounted() { this.swipeaction = this.getSwipeAction() if (this.swipeaction && Array.isArray(this.swipeaction.children)) { this.swipeaction.children.push(this) } this.init() }, methods: { init() { clearTimeout(this.timer) this.timer = setTimeout(() => { this.getSelectorQuery() }, 100) // 移动距离 this.left = 0 this.x = 0 }, closeSwipe(e) { if (this.autoClose && this.swipeaction) { this.swipeaction.closeOther(this) } }, appTouchStart(e) { const { clientX } = e.changedTouches[0] this.clientX = clientX this.timestamp = new Date().getTime() }, appTouchEnd(e, index, item, position) { const { clientX } = e.changedTouches[0] // fixed by xxxx 模拟点击事件,解决 ios 13 点击区域错位的问题 let diff = Math.abs(this.clientX - clientX) let time = (new Date().getTime()) - this.timestamp if (diff < 40 && time < 300) { this.$emit('click', { content: item, index, position }) } }, touchstart(e) { if (this.disabled) return this.ani = false this.x = this.left || 0 this.stopTouchStart(e) this.autoClose && this.closeSwipe() }, touchmove(e) { if (this.disabled) return // 是否可以滑动页面 this.stopTouchMove(e); if (this.direction !== 'horizontal') { return; } this.move(this.x + this.deltaX) return false }, touchend() { if (this.disabled) return this.moveDirection(this.left) }, /** * 设置移动距离 * @param {Object} value */ move(value) { value = value || 0 const leftWidth = this.leftWidth const rightWidth = this.rightWidth // 获取可滑动范围 this.left = this.range(value, -rightWidth, leftWidth); }, /** * 获取范围 * @param {Object} num * @param {Object} min * @param {Object} max */ range(num, min, max) { return Math.min(Math.max(num, min), max); }, /** * 移动方向判断 * @param {Object} left * @param {Object} value */ moveDirection(left) { const threshold = this.threshold const isopen = this.isopen || 'none' const leftWidth = this.leftWidth const rightWidth = this.rightWidth if (this.deltaX === 0) { this.openState('none') return } if ((isopen === 'none' && rightWidth > 0 && -left > threshold) || (isopen !== 'none' && rightWidth > 0 && rightWidth + left < threshold)) { // right this.openState('right') } else if ((isopen === 'none' && leftWidth > 0 && left > threshold) || (isopen !== 'none' && leftWidth > 0 && leftWidth - left < threshold)) { // left this.openState('left') } else { // default this.openState('none') } }, /** * 开启状态 * @param {Boolean} type */ openState(type) { const leftWidth = this.leftWidth const rightWidth = this.rightWidth let left = '' this.isopen = this.isopen ? this.isopen : 'none' switch (type) { case "left": left = leftWidth break case "right": left = -rightWidth break default: left = 0 } if (this.isopen !== type) { this.throttle = true this.$emit('change', type) } this.isopen = type // 添加动画类 this.ani = true this.$nextTick(() => { this.move(left) }) // 设置最终移动位置,理论上只要进入到这个函数,肯定是要打开的 }, close() { this.openState('none') }, getDirection(x, y) { if (x > y && x > MIN_DISTANCE) { return 'horizontal'; } if (y > x && y > MIN_DISTANCE) { return 'vertical'; } return ''; }, /** * 重置滑动状态 * @param {Object} event */ resetTouchStatus() { this.direction = ''; this.deltaX = 0; this.deltaY = 0; this.offsetX = 0; this.offsetY = 0; }, /** * 设置滑动开始位置 * @param {Object} event */ stopTouchStart(event) { this.resetTouchStatus(); const touch = event.touches[0]; this.startX = touch.clientX; this.startY = touch.clientY; }, /** * 滑动中,是否禁止打开 * @param {Object} event */ stopTouchMove(event) { const touch = event.touches[0]; this.deltaX = touch.clientX - this.startX; this.deltaY = touch.clientY - this.startY; this.offsetX = Math.abs(this.deltaX); this.offsetY = Math.abs(this.deltaY); this.direction = this.direction || this.getDirection(this.offsetX, this.offsetY); }, getSelectorQuery() { const views = uni.createSelectorQuery().in(this) views .selectAll('.' + this.elClass) .boundingClientRect(data => { if (data.length === 0) return let show = 'none' if (this.autoClose) { show = 'none' } else { show = this.show } this.leftWidth = data[0].width || 0 this.rightWidth = data[1].width || 0 this.buttonShow = show }) .exec() } } } // #endif export default otherMixins
2202_75391616/ui
uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js
JavaScript
unknown
5,635
let mpMixins = {} let is_pc = null // #ifdef H5 import { isPC } from "./isPC" is_pc = isPC() // #endif // #ifdef APP-VUE|| MP-WEIXIN || H5 mpMixins = { data() { return { is_show: 'none' } }, watch: { show(newVal) { this.is_show = this.show } }, created() { this.swipeaction = this.getSwipeAction() if (this.swipeaction && Array.isArray(this.swipeaction.children)) { this.swipeaction.children.push(this) } }, mounted() { this.is_show = this.show }, methods: { // wxs 中调用 closeSwipe(e) { if (this.autoClose && this.swipeaction) { this.swipeaction.closeOther(this) } }, change(e) { this.$emit('change', e.open) if (this.is_show !== e.open) { this.is_show = e.open } }, appTouchStart(e) { if (is_pc) return const { clientX } = e.changedTouches[0] this.clientX = clientX this.timestamp = new Date().getTime() }, appTouchEnd(e, index, item, position) { if (is_pc) return const { clientX } = e.changedTouches[0] // fixed by xxxx 模拟点击事件,解决 ios 13 点击区域错位的问题 let diff = Math.abs(this.clientX - clientX) let time = (new Date().getTime()) - this.timestamp if (diff < 40 && time < 300) { this.$emit('click', { content: item, index, position }) } }, onClickForPC(index, item, position) { if (!is_pc) return // #ifdef H5 this.$emit('click', { content: item, index, position }) // #endif } } } // #endif export default mpMixins
2202_75391616/ui
uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js
JavaScript
unknown
1,536
const MIN_DISTANCE = 10; export default { showWatch(newVal, oldVal, ownerInstance, instance, self) { var state = self.state var $el = ownerInstance.$el || ownerInstance.$vm && ownerInstance.$vm.$el if (!$el) return this.getDom(instance, ownerInstance, self) if (newVal && newVal !== 'none') { this.openState(newVal, instance, ownerInstance, self) return } if (state.left) { this.openState('none', instance, ownerInstance, self) } this.resetTouchStatus(instance, self) }, /** * 开始触摸操作 * @param {Object} e * @param {Object} ins */ touchstart(e, ownerInstance, self) { let instance = e.instance; let disabled = instance.getDataset().disabled let state = self.state; this.getDom(instance, ownerInstance, self) // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 disabled = this.getDisabledType(disabled) if (disabled) return // 开始触摸时移除动画类 instance.requestAnimationFrame(function() { instance.removeClass('ani'); ownerInstance.callMethod('closeSwipe'); }) // 记录上次的位置 state.x = state.left || 0 // 计算滑动开始位置 this.stopTouchStart(e, ownerInstance, self) }, /** * 开始滑动操作 * @param {Object} e * @param {Object} ownerInstance */ touchmove(e, ownerInstance, self) { let instance = e.instance; // 删除之后已经那不到实例了 if (!instance) return; let disabled = instance.getDataset().disabled let state = self.state // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 disabled = this.getDisabledType(disabled) if (disabled) return // 是否可以滑动页面 this.stopTouchMove(e, self); if (state.direction !== 'horizontal') { return; } if (e.preventDefault) { // 阻止页面滚动 e.preventDefault() } let x = state.x + state.deltaX this.move(x, instance, ownerInstance, self) }, /** * 结束触摸操作 * @param {Object} e * @param {Object} ownerInstance */ touchend(e, ownerInstance, self) { let instance = e.instance; let disabled = instance.getDataset().disabled let state = self.state // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 disabled = this.getDisabledType(disabled) if (disabled) return // 滑动过程中触摸结束,通过阙值判断是开启还是关闭 // fixed by mehaotian 定时器解决点击按钮,touchend 触发比 click 事件时机早的问题 ,主要是 ios13 this.moveDirection(state.left, instance, ownerInstance, self) }, /** * 设置移动距离 * @param {Object} value * @param {Object} instance * @param {Object} ownerInstance */ move(value, instance, ownerInstance, self) { value = value || 0 let state = self.state let leftWidth = state.leftWidth let rightWidth = state.rightWidth // 获取可滑动范围 state.left = this.range(value, -rightWidth, leftWidth); instance.requestAnimationFrame(function() { instance.setStyle({ transform: 'translateX(' + state.left + 'px)', '-webkit-transform': 'translateX(' + state.left + 'px)' }) }) }, /** * 获取元素信息 * @param {Object} instance * @param {Object} ownerInstance */ getDom(instance, ownerInstance, self) { var state = self.state var $el = ownerInstance.$el || ownerInstance.$vm && ownerInstance.$vm.$el var leftDom = $el.querySelector('.button-group--left') var rightDom = $el.querySelector('.button-group--right') state.leftWidth = leftDom.offsetWidth || 0 state.rightWidth = rightDom.offsetWidth || 0 state.threshold = instance.getDataset().threshold }, getDisabledType(value) { return (typeof(value) === 'string' ? JSON.parse(value) : value) || false; }, /** * 获取范围 * @param {Object} num * @param {Object} min * @param {Object} max */ range(num, min, max) { return Math.min(Math.max(num, min), max); }, /** * 移动方向判断 * @param {Object} left * @param {Object} value * @param {Object} ownerInstance * @param {Object} ins */ moveDirection(left, ins, ownerInstance, self) { var state = self.state var threshold = state.threshold var position = state.position var isopen = state.isopen || 'none' var leftWidth = state.leftWidth var rightWidth = state.rightWidth if (state.deltaX === 0) { this.openState('none', ins, ownerInstance, self) return } if ((isopen === 'none' && rightWidth > 0 && -left > threshold) || (isopen !== 'none' && rightWidth > 0 && rightWidth + left < threshold)) { // right this.openState('right', ins, ownerInstance, self) } else if ((isopen === 'none' && leftWidth > 0 && left > threshold) || (isopen !== 'none' && leftWidth > 0 && leftWidth - left < threshold)) { // left this.openState('left', ins, ownerInstance, self) } else { // default this.openState('none', ins, ownerInstance, self) } }, /** * 开启状态 * @param {Boolean} type * @param {Object} ins * @param {Object} ownerInstance */ openState(type, ins, ownerInstance, self) { let state = self.state let leftWidth = state.leftWidth let rightWidth = state.rightWidth let left = '' state.isopen = state.isopen ? state.isopen : 'none' switch (type) { case "left": left = leftWidth break case "right": left = -rightWidth break default: left = 0 } // && !state.throttle if (state.isopen !== type) { state.throttle = true ownerInstance.callMethod('change', { open: type }) } state.isopen = type // 添加动画类 ins.requestAnimationFrame(() => { ins.addClass('ani'); this.move(left, ins, ownerInstance, self) }) }, getDirection(x, y) { if (x > y && x > MIN_DISTANCE) { return 'horizontal'; } if (y > x && y > MIN_DISTANCE) { return 'vertical'; } return ''; }, /** * 重置滑动状态 * @param {Object} event */ resetTouchStatus(instance, self) { let state = self.state; state.direction = ''; state.deltaX = 0; state.deltaY = 0; state.offsetX = 0; state.offsetY = 0; }, /** * 设置滑动开始位置 * @param {Object} event */ stopTouchStart(event, ownerInstance, self) { let instance = event.instance; let state = self.state this.resetTouchStatus(instance, self); var touch = event.touches[0]; state.startX = touch.clientX; state.startY = touch.clientY; }, /** * 滑动中,是否禁止打开 * @param {Object} event */ stopTouchMove(event, self) { let instance = event.instance; let state = self.state; let touch = event.touches[0]; state.deltaX = touch.clientX - state.startX; state.deltaY = touch.clientY - state.startY; state.offsetY = Math.abs(state.deltaY); state.offsetX = Math.abs(state.deltaX); state.direction = state.direction || this.getDirection(state.offsetX, state.offsetY); } }
2202_75391616/ui
uni_modules/uni-swipe-action/components/uni-swipe-action-item/render.js
JavaScript
unknown
6,990
<template> <!-- 在微信小程序 app vue端 h5 使用wxs 实现--> <!-- #ifdef APP-VUE || MP-WEIXIN || H5 --> <view class="uni-swipe"> <!-- #ifdef MP-WEIXIN || VUE3 --> <view class="uni-swipe_box" :change:prop="wxsswipe.showWatch" :prop="is_show" :data-threshold="threshold" :data-disabled="disabled" @touchstart="wxsswipe.touchstart" @touchmove="wxsswipe.touchmove" @touchend="wxsswipe.touchend"> <!-- #endif --> <!-- #ifndef MP-WEIXIN || VUE3 --> <view class="uni-swipe_box" :change:prop="renderswipe.showWatch" :prop="is_show" :data-threshold="threshold" :data-disabled="disabled+''" @touchstart="renderswipe.touchstart" @touchmove="renderswipe.touchmove" @touchend="renderswipe.touchend"> <!-- #endif --> <!-- 在微信小程序 app vue端 h5 使用wxs 实现--> <view class="uni-swipe_button-group button-group--left"> <slot name="left"> <view v-for="(item,index) in leftOptions" :key="index" :style="{ backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD' }" class="uni-swipe_button button-hock" @touchstart.stop="appTouchStart" @touchend.stop="appTouchEnd($event,index,item,'left')" @click.stop="onClickForPC(index,item,'left')"> <text class="uni-swipe_button-text" :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'}">{{ item.text }}</text> </view> </slot> </view> <view class="uni-swipe_text--center"> <slot></slot> </view> <view class="uni-swipe_button-group button-group--right"> <slot name="right"> <view v-for="(item,index) in rightOptions" :key="index" :style="{ backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD' }" class="uni-swipe_button button-hock" @touchstart.stop="appTouchStart" @touchend.stop="appTouchEnd($event,index,item,'right')" @click.stop="onClickForPC(index,item,'right')"><text class="uni-swipe_button-text" :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'}">{{ item.text }}</text> </view> </slot> </view> </view> </view> <!-- #endif --> <!-- app nvue端 使用 bindingx --> <!-- #ifdef APP-NVUE --> <view ref="selector-box--hock" class="uni-swipe" @horizontalpan="touchstart" @touchend="touchend"> <view ref='selector-left-button--hock' class="uni-swipe_button-group button-group--left"> <slot name="left"> <view v-for="(item,index) in leftOptions" :key="index" :style="{ backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD' }" class="uni-swipe_button button-hock" @click.stop="onClick(index,item,'left')"> <text class="uni-swipe_button-text" :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF', fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'}"> {{ item.text }} </text> </view> </slot> </view> <view ref='selector-right-button--hock' class="uni-swipe_button-group button-group--right"> <slot name="right"> <view v-for="(item,index) in rightOptions" :key="index" :style="{ backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD' }" class="uni-swipe_button button-hock" @click.stop="onClick(index,item,'right')"><text class="uni-swipe_button-text" :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'}">{{ item.text }}</text> </view> </slot> </view> <view ref='selector-content--hock' class="uni-swipe_box"> <slot></slot> </view> </view> <!-- #endif --> <!-- 其他平台使用 js ,长列表性能可能会有影响--> <!-- #ifdef MP-ALIPAY || MP-BAIDU || MP-TOUTIAO || MP-QQ --> <view class="uni-swipe"> <view class="uni-swipe_box" @touchstart="touchstart" @touchmove="touchmove" @touchend="touchend" :style="{transform:moveLeft}" :class="{ani:ani}"> <view class="uni-swipe_button-group button-group--left" :class="[elClass]"> <slot name="left"> <view v-for="(item,index) in leftOptions" :key="index" :style="{ backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD', fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px' }" class="uni-swipe_button button-hock" @touchstart.stop="appTouchStart" @touchend.stop="appTouchEnd($event,index,item,'left')"><text class="uni-swipe_button-text" :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',}">{{ item.text }}</text> </view> </slot> </view> <slot></slot> <view class="uni-swipe_button-group button-group--right" :class="[elClass]"> <slot name="right"> <view v-for="(item,index) in rightOptions" :key="index" :style="{ backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD', fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px' }" @touchstart.stop="appTouchStart" @touchend.stop="appTouchEnd($event,index,item,'right')" class="uni-swipe_button button-hock"><text class="uni-swipe_button-text" :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',}">{{ item.text }}</text> </view> </slot> </view> </view> </view> <!-- #endif --> </template> <script src="./wx.wxs" module="wxsswipe" lang="wxs"></script> <script module="renderswipe" lang="renderjs"> import render from './render.js' export default { mounted(e, ins, owner) { this.state = {} }, methods: { showWatch(newVal, oldVal, ownerInstance, instance) { render.showWatch(newVal, oldVal, ownerInstance, instance, this) }, touchstart(e, ownerInstance) { render.touchstart(e, ownerInstance, this) }, touchmove(e, ownerInstance) { render.touchmove(e, ownerInstance, this) }, touchend(e, ownerInstance) { render.touchend(e, ownerInstance, this) } } } </script> <script> import mpwxs from './mpwxs' import bindingx from './bindingx.js' import mpother from './mpother' /** * SwipeActionItem 滑动操作子组件 * @description 通过滑动触发选项的容器 * @tutorial https://ext.dcloud.net.cn/plugin?id=181 * @property {Boolean} show = [left|right|none] 开启关闭组件,auto-close = false 时生效 * @property {Boolean} disabled = [true|false] 是否禁止滑动 * @property {Boolean} autoClose = [true|false] 滑动打开当前组件,是否关闭其他组件 * @property {Number} threshold 滑动缺省值 * @property {Array} leftOptions 左侧选项内容及样式 * @property {Array} rightOptions 右侧选项内容及样式 * @event {Function} click 点击选项按钮时触发事件,e = {content,index} ,content(点击内容)、index(下标) * @event {Function} change 组件打开或关闭时触发,left\right\none */ export default { mixins: [mpwxs, bindingx, mpother], emits: ['click', 'change'], props: { // 控制开关 show: { type: String, default: 'none' }, // 禁用 disabled: { type: Boolean, default: false }, // 是否自动关闭 autoClose: { type: Boolean, default: true }, // 滑动缺省距离 threshold: { type: Number, default: 20 }, // 左侧按钮内容 leftOptions: { type: Array, default () { return [] } }, // 右侧按钮内容 rightOptions: { type: Array, default () { return [] } } }, // #ifndef VUE3 // TODO vue2 destroyed() { if (this.__isUnmounted) return this.uninstall() }, // #endif // #ifdef VUE3 // TODO vue3 unmounted() { this.__isUnmounted = true this.uninstall() }, // #endif methods: { uninstall() { if (this.swipeaction) { this.swipeaction.children.forEach((item, index) => { if (item === this) { this.swipeaction.children.splice(index, 1) } }) } }, /** * 获取父元素实例 */ getSwipeAction(name = 'uniSwipeAction') { let parent = this.$parent; let parentName = parent.$options.name; while (parentName !== name) { parent = parent.$parent; if (!parent) return false; parentName = parent.$options.name; } return parent; } } } </script> <style lang="scss"> .uni-swipe { position: relative; /* #ifndef APP-NVUE */ overflow: hidden; /* #endif */ } .uni-swipe_box { /* #ifndef APP-NVUE */ display: flex; flex-shrink: 0; // touch-action: none; /* #endif */ position: relative; } .uni-swipe_content { // border: 1px red solid; } .uni-swipe_text--center { width: 100%; /* #ifndef APP-NVUE */ cursor: grab; /* #endif */ } .uni-swipe_button-group { /* #ifndef APP-NVUE */ box-sizing: border-box; display: flex; /* #endif */ flex-direction: row; position: absolute; top: 0; bottom: 0; /* #ifdef H5 */ cursor: pointer; /* #endif */ } .button-group--left { left: 0; transform: translateX(-100%) } .button-group--right { right: 0; transform: translateX(100%) } .uni-swipe_button { /* #ifdef APP-NVUE */ flex: 1; /* #endif */ /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; } .uni-swipe_button-text { /* #ifndef APP-NVUE */ flex-shrink: 0; /* #endif */ font-size: 14px; } .ani { transition-property: transform; transition-duration: 0.3s; transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1); } /* #ifdef MP-ALIPAY */ .movable-area { /* width: 100%; */ height: 45px; } .movable-view { display: flex; /* justify-content: center; */ position: relative; flex: 1; height: 45px; z-index: 2; } .movable-view-button { display: flex; flex-shrink: 0; flex-direction: row; height: 100%; background: #C0C0C0; } /* .transition { transition: all 0.3s; } */ .movable-view-box { flex-shrink: 0; height: 100%; background-color: #fff; } /* #endif */ </style>
2202_75391616/ui
uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue
Vue
unknown
10,479
<template> <view class="uni-swiper__warp"> <slot /> <view v-if="mode === 'default'" :style="{'bottom':dots.bottom + 'px'}" class="uni-swiper__dots-box" key='default'> <view v-for="(item,index) in info" @click="clickItem(index)" :style="{ 'width': (index === current? dots.width*2:dots.width ) + 'px','height':dots.width/2 +'px' ,'background-color':index !== current?dots.backgroundColor:dots.selectedBackgroundColor,'border-radius':'0px'}" :key="index" class="uni-swiper__dots-item uni-swiper__dots-bar" /> </view> <view v-if="mode === 'dot'" :style="{'bottom':dots.bottom + 'px'}" class="uni-swiper__dots-box" key='dot'> <view v-for="(item,index) in info" @click="clickItem(index)" :style="{ 'width': dots.width + 'px','height':dots.height +'px' ,'background-color':index !== current?dots.backgroundColor:dots.selectedBackgroundColor,'border':index !==current ? dots.border:dots.selectedBorder}" :key="index" class="uni-swiper__dots-item" /> </view> <view v-if="mode === 'round'" :style="{'bottom':dots.bottom + 'px'}" class="uni-swiper__dots-box" key='round'> <view v-for="(item,index) in info" @click="clickItem(index)" :class="[index === current&&'uni-swiper__dots-long']" :style="{ 'width':(index === current? dots.width*3:dots.width ) + 'px','height':dots.height +'px' ,'background-color':index !== current?dots.backgroundColor:dots.selectedBackgroundColor,'border':index !==current ? dots.border:dots.selectedBorder}" :key="index" class="uni-swiper__dots-item " /> </view> <view v-if="mode === 'nav'" key='nav' :style="{'background-color':dotsStyles.backgroundColor,'bottom':'0'}" class="uni-swiper__dots-box uni-swiper__dots-nav"> <text :style="{'color':dotsStyles.color}" class="uni-swiper__dots-nav-item">{{ (current+1)+"/"+info.length +' ' +info[current][field] }}</text> </view> <view v-if="mode === 'indexes'" key='indexes' :style="{'bottom':dots.bottom + 'px'}" class="uni-swiper__dots-box"> <view v-for="(item,index) in info" @click="clickItem(index)" :style="{ 'width':dots.width + 'px','height':dots.height +'px' ,'color':index === current?dots.selectedColor:dots.color,'background-color':index !== current?dots.backgroundColor:dots.selectedBackgroundColor,'border':index !==current ? dots.border:dots.selectedBorder}" :key="index" class="uni-swiper__dots-item uni-swiper__dots-indexes"><text class="uni-swiper__dots-indexes-text">{{ index+1 }}</text></view> </view> </view> </template> <script> /** * SwiperDod 轮播图指示点 * @description 自定义轮播图指示点 * @tutorial https://ext.dcloud.net.cn/plugin?id=284 * @property {Number} current 当前指示点索引,必须是通过 `swiper` 的 `change` 事件获取到的 `e.detail.current` * @property {String} mode = [default|round|nav|indexes] 指示点的类型 * @value defualt 默认指示点 * @value round 圆形指示点 * @value nav 条形指示点 * @value indexes 索引指示点 * @property {String} field mode 为 nav 时,显示的内容字段(mode = nav 时必填) * @property {String} info 轮播图的数据,通过数组长度决定指示点个数 * @property {Object} dotsStyles 指示点样式 * @event {Function} clickItem 组件触发点击事件时触发,e={currentIndex} */ export default { name: 'UniSwiperDot', emits:['clickItem'], props: { info: { type: Array, default () { return [] } }, current: { type: Number, default: 0 }, dotsStyles: { type: Object, default () { return {} } }, // 类型 :default(默认) indexes long nav mode: { type: String, default: 'default' }, // 只在 nav 模式下生效,变量名称 field: { type: String, default: '' } }, data() { return { dots: { width: 6, height: 6, bottom: 10, color: '#fff', backgroundColor: 'rgba(0, 0, 0, .3)', border: '1px rgba(0, 0, 0, .3) solid', selectedBackgroundColor: '#333', selectedBorder: '1px rgba(0, 0, 0, .9) solid' } } }, watch: { dotsStyles(newVal) { this.dots = Object.assign(this.dots, this.dotsStyles) }, mode(newVal) { if (newVal === 'indexes') { this.dots.width = 14 this.dots.height = 14 } else { this.dots.width = 6 this.dots.height = 6 } } }, created() { if (this.mode === 'indexes') { this.dots.width = 12 this.dots.height = 12 } this.dots = Object.assign(this.dots, this.dotsStyles) }, methods: { clickItem(index) { this.$emit('clickItem', index) } } } </script> <style lang="scss" scoped> .uni-swiper__warp { /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex: 1; flex-direction: column; position: relative; overflow: hidden; } .uni-swiper__dots-box { position: absolute; bottom: 10px; left: 0; right: 0; /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex: 1; flex-direction: row; justify-content: center; align-items: center; } .uni-swiper__dots-item { width: 8px; border-radius: 100px; margin-left: 6px; background-color: rgba(0, 0, 0, 0.4); /* #ifndef APP-NVUE */ cursor: pointer; /* #endif */ /* #ifdef H5 */ // border-width: 5px 0; // border-style: solid; // border-color: transparent; // background-clip: padding-box; /* #endif */ // transition: width 0.2s linear; 不要取消注释,不然会不能变色 } .uni-swiper__dots-item:first-child { margin: 0; } .uni-swiper__dots-default { border-radius: 100px; } .uni-swiper__dots-long { border-radius: 50px; } .uni-swiper__dots-bar { border-radius: 50px; } .uni-swiper__dots-nav { bottom: 0px; // height: 26px; padding: 8px 0; /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex: 1; flex-direction: row; justify-content: flex-start; align-items: center; background-color: rgba(0, 0, 0, 0.2); } .uni-swiper__dots-nav-item { /* overflow: hidden; text-overflow: ellipsis; white-space: nowrap; */ font-size: 14px; color: #fff; margin: 0 15px; } .uni-swiper__dots-indexes { /* #ifndef APP-NVUE */ display: flex; /* #endif */ // flex: 1; justify-content: center; align-items: center; } .uni-swiper__dots-indexes-text { color: #fff; font-size: 12px; line-height: 14px; } </style>
2202_75391616/ui
uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot.vue
Vue
unknown
6,379
<template> <view class="uni-table-scroll" :class="{ 'table--border': border, 'border-none': !noData }"> <!-- #ifdef H5 --> <table class="uni-table" border="0" cellpadding="0" cellspacing="0" :class="{ 'table--stripe': stripe }" :style="{ 'min-width': minWidth + 'px' }"> <slot></slot> <tr v-if="noData" class="uni-table-loading"> <td class="uni-table-text" :class="{ 'empty-border': border }">{{ emptyText }}</td> </tr> <view v-if="loading" class="uni-table-mask" :class="{ 'empty-border': border }"><div class="uni-table--loader"></div></view> </table> <!-- #endif --> <!-- #ifndef H5 --> <view class="uni-table" :style="{ 'min-width': minWidth + 'px' }" :class="{ 'table--stripe': stripe }"> <slot></slot> <view v-if="noData" class="uni-table-loading"> <view class="uni-table-text" :class="{ 'empty-border': border }">{{ emptyText }}</view> </view> <view v-if="loading" class="uni-table-mask" :class="{ 'empty-border': border }"><div class="uni-table--loader"></div></view> </view> <!-- #endif --> </view> </template> <script> /** * Table 表格 * @description 用于展示多条结构类似的数据 * @tutorial https://ext.dcloud.net.cn/plugin?id=3270 * @property {Boolean} border 是否带有纵向边框 * @property {Boolean} stripe 是否显示斑马线 * @property {Boolean} type 是否开启多选 * @property {String} emptyText 空数据时显示的文本内容 * @property {Boolean} loading 显示加载中 * @event {Function} selection-change 开启多选时,当选择项发生变化时会触发该事件 */ export default { name: 'uniTable', options: { virtualHost: true }, emits:['selection-change'], props: { data: { type: Array, default() { return [] } }, // 是否有竖线 border: { type: Boolean, default: false }, // 是否显示斑马线 stripe: { type: Boolean, default: false }, // 多选 type: { type: String, default: '' }, // 没有更多数据 emptyText: { type: String, default: '没有更多数据' }, loading: { type: Boolean, default: false }, rowKey: { type: String, default: '' } }, data() { return { noData: true, minWidth: 0, multiTableHeads: [] } }, watch: { loading(val) {}, data(newVal) { let theadChildren = this.theadChildren let rowspan = 1 if (this.theadChildren) { rowspan = this.theadChildren.rowspan } // this.trChildren.length - rowspan this.noData = false // this.noData = newVal.length === 0 } }, created() { // 定义tr的实例数组 this.trChildren = [] this.thChildren = [] this.theadChildren = null this.backData = [] this.backIndexData = [] }, methods: { isNodata() { let theadChildren = this.theadChildren let rowspan = 1 if (this.theadChildren) { rowspan = this.theadChildren.rowspan } this.noData = this.trChildren.length - rowspan <= 0 }, /** * 选中所有 */ selectionAll() { let startIndex = 1 let theadChildren = this.theadChildren if (!this.theadChildren) { theadChildren = this.trChildren[0] } else { startIndex = theadChildren.rowspan - 1 } let isHaveData = this.data && this.data.length > 0 theadChildren.checked = true theadChildren.indeterminate = false this.trChildren.forEach((item, index) => { if (!item.disabled) { item.checked = true if (isHaveData && item.keyValue) { const row = this.data.find(v => v[this.rowKey] === item.keyValue) if (!this.backData.find(v => v[this.rowKey] === row[this.rowKey])) { this.backData.push(row) } } if (index > (startIndex - 1) && this.backIndexData.indexOf(index - startIndex) === -1) { this.backIndexData.push(index - startIndex) } } }) // this.backData = JSON.parse(JSON.stringify(this.data)) this.$emit('selection-change', { detail: { value: this.backData, index: this.backIndexData } }) }, /** * 用于多选表格,切换某一行的选中状态,如果使用了第二个参数,则是设置这一行选中与否(selected 为 true 则选中) */ toggleRowSelection(row, selected) { // if (!this.theadChildren) return row = [].concat(row) this.trChildren.forEach((item, index) => { // if (item.keyValue) { const select = row.findIndex(v => { // if (typeof v === 'number') { return v === index - 1 } else { return v[this.rowKey] === item.keyValue } }) let ischeck = item.checked if (select !== -1) { if (typeof selected === 'boolean') { item.checked = selected } else { item.checked = !item.checked } if (ischeck !== item.checked) { this.check(item.rowData||item, item.checked, item.rowData?item.keyValue:null, true) } } // } }) this.$emit('selection-change', { detail: { value: this.backData, index:this.backIndexData } }) }, /** * 用于多选表格,清空用户的选择 */ clearSelection() { let theadChildren = this.theadChildren if (!this.theadChildren) { theadChildren = this.trChildren[0] } // if (!this.theadChildren) return theadChildren.checked = false theadChildren.indeterminate = false this.trChildren.forEach(item => { // if (item.keyValue) { item.checked = false // } }) this.backData = [] this.backIndexData = [] this.$emit('selection-change', { detail: { value: [], index: [] } }) }, /** * 用于多选表格,切换所有行的选中状态 */ toggleAllSelection() { let list = [] let startIndex = 1 let theadChildren = this.theadChildren if (!this.theadChildren) { theadChildren = this.trChildren[0] } else { startIndex = theadChildren.rowspan - 1 } this.trChildren.forEach((item, index) => { if (!item.disabled) { if (index > (startIndex - 1) ) { list.push(index-startIndex) } } }) this.toggleRowSelection(list) }, /** * 选中\取消选中 * @param {Object} child * @param {Object} check * @param {Object} rowValue */ check(child, check, keyValue, emit) { let theadChildren = this.theadChildren if (!this.theadChildren) { theadChildren = this.trChildren[0] } let childDomIndex = this.trChildren.findIndex((item, index) => child === item) if(childDomIndex < 0){ childDomIndex = this.data.findIndex(v=>v[this.rowKey] === keyValue) + 1 } const dataLen = this.trChildren.filter(v => !v.disabled && v.keyValue).length if (childDomIndex === 0) { check ? this.selectionAll() : this.clearSelection() return } if (check) { if (keyValue) { this.backData.push(child) } this.backIndexData.push(childDomIndex - 1) } else { const index = this.backData.findIndex(v => v[this.rowKey] === keyValue) const idx = this.backIndexData.findIndex(item => item === childDomIndex - 1) if (keyValue) { this.backData.splice(index, 1) } this.backIndexData.splice(idx, 1) } const domCheckAll = this.trChildren.find((item, index) => index > 0 && !item.checked && !item.disabled) if (!domCheckAll) { theadChildren.indeterminate = false theadChildren.checked = true } else { theadChildren.indeterminate = true theadChildren.checked = false } if (this.backIndexData.length === 0) { theadChildren.indeterminate = false } if (!emit) { this.$emit('selection-change', { detail: { value: this.backData, index: this.backIndexData } }) } } } } </script> <style lang="scss"> $border-color: #ebeef5; .uni-table-scroll { width: 100%; /* #ifndef APP-NVUE */ overflow-x: auto; /* #endif */ } .uni-table { position: relative; width: 100%; border-radius: 5px; // box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.1); background-color: #fff; /* #ifndef APP-NVUE */ box-sizing: border-box; display: table; overflow-x: auto; ::v-deep .uni-table-tr:nth-child(n + 2) { &:hover { background-color: #f5f7fa; } } ::v-deep .uni-table-thead { .uni-table-tr { // background-color: #f5f7fa; &:hover { background-color:#fafafa; } } } /* #endif */ } .table--border { border: 1px $border-color solid; border-right: none; } .border-none { /* #ifndef APP-NVUE */ border-bottom: none; /* #endif */ } .table--stripe { /* #ifndef APP-NVUE */ ::v-deep .uni-table-tr:nth-child(2n + 3) { background-color: #fafafa; } /* #endif */ } /* 表格加载、无数据样式 */ .uni-table-loading { position: relative; /* #ifndef APP-NVUE */ display: table-row; /* #endif */ height: 50px; line-height: 50px; overflow: hidden; box-sizing: border-box; } .empty-border { border-right: 1px $border-color solid; } .uni-table-text { position: absolute; right: 0; left: 0; text-align: center; font-size: 14px; color: #999; } .uni-table-mask { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background-color: rgba(255, 255, 255, 0.8); z-index: 99; /* #ifndef APP-NVUE */ display: flex; margin: auto; transition: all 0.5s; /* #endif */ justify-content: center; align-items: center; } .uni-table--loader { width: 30px; height: 30px; border: 2px solid #aaa; // border-bottom-color: transparent; border-radius: 50%; /* #ifndef APP-NVUE */ animation: 2s uni-table--loader linear infinite; /* #endif */ position: relative; } @keyframes uni-table--loader { 0% { transform: rotate(360deg); } 10% { border-left-color: transparent; } 20% { border-bottom-color: transparent; } 30% { border-right-color: transparent; } 40% { border-top-color: transparent; } 50% { transform: rotate(0deg); } 60% { border-top-color: transparent; } 70% { border-left-color: transparent; } 80% { border-bottom-color: transparent; } 90% { border-right-color: transparent; } 100% { transform: rotate(-360deg); } } </style>
2202_75391616/ui
uni_modules/uni-table/components/uni-table/uni-table.vue
Vue
unknown
10,031
<template> <!-- #ifdef H5 --> <tbody> <slot></slot> </tbody> <!-- #endif --> <!-- #ifndef H5 --> <view><slot></slot></view> <!-- #endif --> </template> <script> export default { name: 'uniBody', options: { virtualHost: true }, data() { return { } }, created() {}, methods: {} } </script> <style> </style>
2202_75391616/ui
uni_modules/uni-table/components/uni-tbody/uni-tbody.vue
Vue
unknown
333
<template> <!-- #ifdef H5 --> <td class="uni-table-td" :rowspan="rowspan" :colspan="colspan" :class="{'table--border':border}" :style="{width:width + 'px','text-align':align}"> <slot></slot> </td> <!-- #endif --> <!-- #ifndef H5 --> <!-- :class="{'table--border':border}" --> <view class="uni-table-td" :class="{'table--border':border}" :style="{width:width + 'px','text-align':align}"> <slot></slot> </view> <!-- #endif --> </template> <script> /** * Td 单元格 * @description 表格中的标准单元格组件 * @tutorial https://ext.dcloud.net.cn/plugin?id=3270 * @property {Number} align = [left|center|right] 单元格对齐方式 */ export default { name: 'uniTd', options: { virtualHost: true }, props: { width: { type: [String, Number], default: '' }, align: { type: String, default: 'left' }, rowspan: { type: [Number,String], default: 1 }, colspan: { type: [Number,String], default: 1 } }, data() { return { border: false }; }, created() { this.root = this.getTable() this.border = this.root.border }, methods: { /** * 获取父元素实例 */ getTable() { let parent = this.$parent; let parentName = parent.$options.name; while (parentName !== 'uniTable') { parent = parent.$parent; if (!parent) return false; parentName = parent.$options.name; } return parent; }, } } </script> <style lang="scss"> $border-color:#EBEEF5; .uni-table-td { display: table-cell; padding: 8px 10px; font-size: 14px; border-bottom: 1px $border-color solid; font-weight: 400; color: #606266; line-height: 23px; box-sizing: border-box; } .table--border { border-right: 1px $border-color solid; } </style>
2202_75391616/ui
uni_modules/uni-table/components/uni-td/uni-td.vue
Vue
unknown
1,801
<template> <view class="uni-filter-dropdown"> <view class="dropdown-btn" @click="onDropdown"> <view class="icon-select" :class="{active: canReset}" v-if="isSelect || isRange"></view> <view class="icon-search" :class="{active: canReset}" v-if="isSearch"> <view class="icon-search-0"></view> <view class="icon-search-1"></view> </view> <view class="icon-calendar" :class="{active: canReset}" v-if="isDate"> <view class="icon-calendar-0"></view> <view class="icon-calendar-1"></view> </view> </view> <view class="uni-dropdown-cover" v-if="isOpened" @click="handleClose"></view> <view class="dropdown-popup dropdown-popup-right" v-if="isOpened" @click.stop> <!-- select--> <view v-if="isSelect" class="list"> <label class="flex-r a-i-c list-item" v-for="(item,index) in dataList" :key="index" @click="onItemClick($event, index)"> <check-box class="check" :checked="item.checked" /> <view class="checklist-content"> <text class="checklist-text" :style="item.styleIconText">{{item[map.text]}}</text> </view> </label> </view> <view v-if="isSelect" class="flex-r opera-area"> <view class="flex-f btn btn-default" :class="{disable: !canReset}" @click="handleSelectReset"> {{resource.reset}}</view> <view class="flex-f btn btn-submit" @click="handleSelectSubmit">{{resource.submit}}</view> </view> <!-- search --> <view v-if="isSearch" class="search-area"> <input class="search-input" v-model="filterValue" /> </view> <view v-if="isSearch" class="flex-r opera-area"> <view class="flex-f btn btn-submit" @click="handleSearchSubmit">{{resource.search}}</view> <view class="flex-f btn btn-default" :class="{disable: !canReset}" @click="handleSearchReset"> {{resource.reset}}</view> </view> <!-- range --> <view v-if="isRange"> <view class="input-label">{{resource.gt}}</view> <input class="input" v-model="gtValue" /> <view class="input-label">{{resource.lt}}</view> <input class="input" v-model="ltValue" /> </view> <view v-if="isRange" class="flex-r opera-area"> <view class="flex-f btn btn-default" :class="{disable: !canReset}" @click="handleRangeReset"> {{resource.reset}}</view> <view class="flex-f btn btn-submit" @click="handleRangeSubmit">{{resource.submit}}</view> </view> <!-- date --> <view v-if="isDate"> <uni-datetime-picker ref="datetimepicker" :value="dateRange" type="datetimerange" return-type="timestamp" @change="datetimechange" @maskClick="timepickerclose"> <view></view> </uni-datetime-picker> </view> </view> </view> </template> <script> import checkBox from '../uni-tr/table-checkbox.vue' const resource = { "reset": "重置", "search": "搜索", "submit": "确定", "filter": "筛选", "gt": "大于等于", "lt": "小于等于", "date": "日期范围" } const DropdownType = { Select: "select", Search: "search", Range: "range", Date: "date", Timestamp: "timestamp" } export default { name: 'FilterDropdown', emits:['change'], components: { checkBox }, options: { virtualHost: true }, props: { filterType: { type: String, default: DropdownType.Select }, filterData: { type: Array, default () { return [] } }, mode: { type: String, default: 'default' }, map: { type: Object, default () { return { text: 'text', value: 'value' } } }, filterDefaultValue: { type: [Array,String], default () { return "" } } }, computed: { canReset() { if (this.isSearch) { return this.filterValue.length > 0 } if (this.isSelect) { return this.checkedValues.length > 0 } if (this.isRange) { return (this.gtValue.length > 0 && this.ltValue.length > 0) } if (this.isDate) { return this.dateSelect.length > 0 } return false }, isSelect() { return this.filterType === DropdownType.Select }, isSearch() { return this.filterType === DropdownType.Search }, isRange() { return this.filterType === DropdownType.Range }, isDate() { return (this.filterType === DropdownType.Date || this.filterType === DropdownType.Timestamp) } }, watch: { filterData(newVal) { this._copyFilters() }, indeterminate(newVal) { this.isIndeterminate = newVal } }, data() { return { resource, enabled: true, isOpened: false, dataList: [], filterValue: this.filterDefaultValue, checkedValues: [], gtValue: '', ltValue: '', dateRange: [], dateSelect: [] }; }, created() { this._copyFilters() }, methods: { _copyFilters() { let dl = JSON.parse(JSON.stringify(this.filterData)) for (let i = 0; i < dl.length; i++) { if (dl[i].checked === undefined) { dl[i].checked = false } } this.dataList = dl }, openPopup() { this.isOpened = true if (this.isDate) { this.$nextTick(() => { if (!this.dateRange.length) { this.resetDate() } this.$refs.datetimepicker.show() }) } }, closePopup() { this.isOpened = false }, handleClose(e) { this.closePopup() }, resetDate() { let date = new Date() let dateText = date.toISOString().split('T')[0] this.dateRange = [dateText + ' 0:00:00', dateText + ' 23:59:59'] }, onDropdown(e) { this.openPopup() }, onItemClick(e, index) { let items = this.dataList let listItem = items[index] if (listItem.checked === undefined) { items[index].checked = true } else { items[index].checked = !listItem.checked } let checkvalues = [] for (let i = 0; i < items.length; i++) { const item = items[i] if (item.checked) { checkvalues.push(item.value) } } this.checkedValues = checkvalues }, datetimechange(e) { this.closePopup() this.dateRange = e this.dateSelect = e this.$emit('change', { filterType: this.filterType, filter: e }) }, timepickerclose(e) { this.closePopup() }, handleSelectSubmit() { this.closePopup() this.$emit('change', { filterType: this.filterType, filter: this.checkedValues }) }, handleSelectReset() { if (!this.canReset) { return; } var items = this.dataList for (let i = 0; i < items.length; i++) { let item = items[i] this.$set(item, 'checked', false) } this.checkedValues = [] this.handleSelectSubmit() }, handleSearchSubmit() { this.closePopup() this.$emit('change', { filterType: this.filterType, filter: this.filterValue }) }, handleSearchReset() { if (!this.canReset) { return; } this.filterValue = '' this.handleSearchSubmit() }, handleRangeSubmit(isReset) { this.closePopup() this.$emit('change', { filterType: this.filterType, filter: isReset === true ? [] : [parseInt(this.gtValue), parseInt(this.ltValue)] }) }, handleRangeReset() { if (!this.canReset) { return; } this.gtValue = '' this.ltValue = '' this.handleRangeSubmit(true) } } } </script> <style lang="scss"> $uni-primary: #1890ff !default; .flex-r { display: flex; flex-direction: row; } .flex-f { flex: 1; } .a-i-c { align-items: center; } .j-c-c { justify-content: center; } .icon-select { width: 14px; height: 16px; border: solid 6px transparent; border-top: solid 6px #ddd; border-bottom: none; background-color: #ddd; background-clip: content-box; box-sizing: border-box; } .icon-select.active { background-color: $uni-primary; border-top-color: $uni-primary; } .icon-search { width: 12px; height: 16px; position: relative; } .icon-search-0 { border: 2px solid #ddd; border-radius: 8px; width: 7px; height: 7px; } .icon-search-1 { position: absolute; top: 8px; right: 0; width: 1px; height: 7px; background-color: #ddd; transform: rotate(-45deg); } .icon-search.active .icon-search-0 { border-color: $uni-primary; } .icon-search.active .icon-search-1 { background-color: $uni-primary; } .icon-calendar { color: #ddd; width: 14px; height: 16px; } .icon-calendar-0 { height: 4px; margin-top: 3px; margin-bottom: 1px; background-color: #ddd; border-radius: 2px 2px 1px 1px; position: relative; } .icon-calendar-0:before, .icon-calendar-0:after { content: ''; position: absolute; top: -3px; width: 4px; height: 3px; border-radius: 1px; background-color: #ddd; } .icon-calendar-0:before { left: 2px; } .icon-calendar-0:after { right: 2px; } .icon-calendar-1 { height: 9px; background-color: #ddd; border-radius: 1px 1px 2px 2px; } .icon-calendar.active { color: $uni-primary; } .icon-calendar.active .icon-calendar-0, .icon-calendar.active .icon-calendar-1, .icon-calendar.active .icon-calendar-0:before, .icon-calendar.active .icon-calendar-0:after { background-color: $uni-primary; } .uni-filter-dropdown { position: relative; font-weight: normal; } .dropdown-popup { position: absolute; top: 100%; background-color: #fff; box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d; min-width: 150px; z-index: 1000; } .dropdown-popup-left { left: 0; } .dropdown-popup-right { right: 0; } .uni-dropdown-cover { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background-color: transparent; z-index: 100; } .list { margin-top: 5px; margin-bottom: 5px; } .list-item { padding: 5px 10px; text-align: left; } .list-item:hover { background-color: #f0f0f0; } .check { margin-right: 5px; } .search-area { padding: 10px; } .search-input { font-size: 12px; border: 1px solid #f0f0f0; border-radius: 3px; padding: 2px 5px; min-width: 150px; text-align: left; } .input-label { margin: 10px 10px 5px 10px; text-align: left; } .input { font-size: 12px; border: 1px solid #f0f0f0; border-radius: 3px; margin: 10px; padding: 2px 5px; min-width: 150px; text-align: left; } .opera-area { cursor: default; border-top: 1px solid #ddd; padding: 5px; } .opera-area .btn { font-size: 12px; border-radius: 3px; margin: 5px; padding: 4px 4px; } .btn-default { border: 1px solid #ddd; } .btn-default.disable { border-color: transparent; } .btn-submit { background-color: $uni-primary; color: #ffffff; } </style>
2202_75391616/ui
uni_modules/uni-table/components/uni-th/filter-dropdown.vue
Vue
unknown
10,617
<template> <!-- #ifdef H5 --> <th :rowspan="rowspan" :colspan="colspan" class="uni-table-th" :class="{ 'table--border': border }" :style="{ width: customWidth + 'px', 'text-align': align }"> <view class="uni-table-th-row"> <view class="uni-table-th-content" :style="{ 'justify-content': contentAlign }" @click="sort"> <slot></slot> <view v-if="sortable" class="arrow-box"> <text class="arrow up" :class="{ active: ascending }" @click.stop="ascendingFn"></text> <text class="arrow down" :class="{ active: descending }" @click.stop="descendingFn"></text> </view> </view> <dropdown v-if="filterType || filterData.length" :filterDefaultValue="filterDefaultValue" :filterData="filterData" :filterType="filterType" @change="ondropdown"></dropdown> </view> </th> <!-- #endif --> <!-- #ifndef H5 --> <view class="uni-table-th" :class="{ 'table--border': border }" :style="{ width: customWidth + 'px', 'text-align': align }"><slot></slot></view> <!-- #endif --> </template> <script> // #ifdef H5 import dropdown from './filter-dropdown.vue' // #endif /** * Th 表头 * @description 表格内的表头单元格组件 * @tutorial https://ext.dcloud.net.cn/plugin?id=3270 * @property {Number | String} width 单元格宽度(支持纯数字、携带单位px或rpx) * @property {Boolean} sortable 是否启用排序 * @property {Number} align = [left|center|right] 单元格对齐方式 * @value left 单元格文字左侧对齐 * @value center 单元格文字居中 * @value right 单元格文字右侧对齐 * @property {Array} filterData 筛选数据 * @property {String} filterType [search|select] 筛选类型 * @value search 关键字搜素 * @value select 条件选择 * @event {Function} sort-change 排序触发事件 */ export default { name: 'uniTh', options: { virtualHost: true }, components: { // #ifdef H5 dropdown // #endif }, emits:['sort-change','filter-change'], props: { width: { type: [String, Number], default: '' }, align: { type: String, default: 'left' }, rowspan: { type: [Number, String], default: 1 }, colspan: { type: [Number, String], default: 1 }, sortable: { type: Boolean, default: false }, filterType: { type: String, default: "" }, filterData: { type: Array, default () { return [] } }, filterDefaultValue: { type: [Array,String], default () { return "" } } }, data() { return { border: false, ascending: false, descending: false } }, computed: { // 根据props中的width属性 自动匹配当前th的宽度(px) customWidth(){ if(typeof this.width === 'number'){ return this.width } else if(typeof this.width === 'string') { let regexHaveUnitPx = new RegExp(/^[1-9][0-9]*px$/g) let regexHaveUnitRpx = new RegExp(/^[1-9][0-9]*rpx$/g) let regexHaveNotUnit = new RegExp(/^[1-9][0-9]*$/g) if (this.width.match(regexHaveUnitPx) !== null) { // 携带了 px return this.width.replace('px', '') } else if (this.width.match(regexHaveUnitRpx) !== null) { // 携带了 rpx let numberRpx = Number(this.width.replace('rpx', '')) let widthCoe = uni.getSystemInfoSync().screenWidth / 750 return Math.round(numberRpx * widthCoe) } else if (this.width.match(regexHaveNotUnit) !== null) { // 未携带 rpx或px 的纯数字 String return this.width } else { // 不符合格式 return '' } } else { return '' } }, contentAlign() { let align = 'left' switch (this.align) { case 'left': align = 'flex-start' break case 'center': align = 'center' break case 'right': align = 'flex-end' break } return align } }, created() { this.root = this.getTable('uniTable') this.rootTr = this.getTable('uniTr') this.rootTr.minWidthUpdate(this.customWidth ? this.customWidth : 140) this.border = this.root.border this.root.thChildren.push(this) }, methods: { sort() { if (!this.sortable) return this.clearOther() if (!this.ascending && !this.descending) { this.ascending = true this.$emit('sort-change', { order: 'ascending' }) return } if (this.ascending && !this.descending) { this.ascending = false this.descending = true this.$emit('sort-change', { order: 'descending' }) return } if (!this.ascending && this.descending) { this.ascending = false this.descending = false this.$emit('sort-change', { order: null }) } }, ascendingFn() { this.clearOther() this.ascending = !this.ascending this.descending = false this.$emit('sort-change', { order: this.ascending ? 'ascending' : null }) }, descendingFn() { this.clearOther() this.descending = !this.descending this.ascending = false this.$emit('sort-change', { order: this.descending ? 'descending' : null }) }, clearOther() { this.root.thChildren.map(item => { if (item !== this) { item.ascending = false item.descending = false } return item }) }, ondropdown(e) { this.$emit("filter-change", e) }, /** * 获取父元素实例 */ getTable(name) { let parent = this.$parent let parentName = parent.$options.name while (parentName !== name) { parent = parent.$parent if (!parent) return false parentName = parent.$options.name } return parent } } } </script> <style lang="scss"> $border-color: #ebeef5; $uni-primary: #007aff !default; .uni-table-th { padding: 12px 10px; /* #ifndef APP-NVUE */ display: table-cell; box-sizing: border-box; /* #endif */ font-size: 14px; font-weight: bold; color: #909399; border-bottom: 1px $border-color solid; } .uni-table-th-row { /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: row; } .table--border { border-right: 1px $border-color solid; } .uni-table-th-content { display: flex; align-items: center; flex: 1; } .arrow-box { } .arrow { display: block; position: relative; width: 10px; height: 8px; // border: 1px red solid; left: 5px; overflow: hidden; cursor: pointer; } .down { top: 3px; ::after { content: ''; width: 8px; height: 8px; position: absolute; left: 2px; top: -5px; transform: rotate(45deg); background-color: #ccc; } &.active { ::after { background-color: $uni-primary; } } } .up { ::after { content: ''; width: 8px; height: 8px; position: absolute; left: 2px; top: 5px; transform: rotate(45deg); background-color: #ccc; } &.active { ::after { background-color: $uni-primary; } } } </style>
2202_75391616/ui
uni_modules/uni-table/components/uni-th/uni-th.vue
Vue
unknown
6,627
<template> <!-- #ifdef H5 --> <thead class="uni-table-thead"> <tr class="uni-table-tr"> <th :rowspan="rowspan" colspan="1" class="checkbox" :class="{ 'tr-table--border': border }"> <table-checkbox :indeterminate="indeterminate" :checked="checked" @checkboxSelected="checkboxSelected"></table-checkbox> </th> </tr> <slot></slot> </thead> <!-- #endif --> <!-- #ifndef H5 --> <view class="uni-table-thead"> <slot></slot> </view> <!-- #endif --> </template> <script> import tableCheckbox from '../uni-tr/table-checkbox.vue' export default { name: 'uniThead', components: { tableCheckbox }, options: { // #ifdef MP-TOUTIAO virtualHost: false, // #endif // #ifndef MP-TOUTIAO virtualHost: true // #endif }, data() { return { border: false, selection: false, rowspan: 1, indeterminate: false, checked: false } }, created() { this.root = this.getTable() // #ifdef H5 this.root.theadChildren = this // #endif this.border = this.root.border this.selection = this.root.type }, methods: { init(self) { this.rowspan++ }, checkboxSelected(e) { this.indeterminate = false const backIndexData = this.root.backIndexData const data = this.root.trChildren.filter(v => !v.disabled && v.keyValue) if (backIndexData.length === data.length) { this.checked = false this.root.clearSelection() } else { this.checked = true this.root.selectionAll() } }, /** * 获取父元素实例 */ getTable(name = 'uniTable') { let parent = this.$parent let parentName = parent.$options.name while (parentName !== name) { parent = parent.$parent if (!parent) return false parentName = parent.$options.name } return parent } } } </script> <style lang="scss"> $border-color: #ebeef5; .uni-table-thead { display: table-header-group; } .uni-table-tr { /* #ifndef APP-NVUE */ display: table-row; transition: all 0.3s; box-sizing: border-box; /* #endif */ border: 1px red solid; background-color: #fafafa; } .checkbox { padding: 0 8px; width: 26px; padding-left: 12px; /* #ifndef APP-NVUE */ display: table-cell; vertical-align: middle; /* #endif */ color: #333; font-weight: 500; border-bottom: 1px $border-color solid; font-size: 14px; // text-align: center; } .tr-table--border { border-right: 1px $border-color solid; } /* #ifndef APP-NVUE */ .uni-table-tr { ::v-deep .uni-table-th { &.table--border:last-child { // border-right: none; } } ::v-deep .uni-table-td { &.table--border:last-child { // border-right: none; } } } /* #endif */ </style>
2202_75391616/ui
uni_modules/uni-table/components/uni-thead/uni-thead.vue
Vue
unknown
2,728
<template> <view class="uni-table-checkbox" @click="selected"> <view v-if="!indeterminate" class="checkbox__inner" :class="{'is-checked':isChecked,'is-disable':isDisabled}"> <view class="checkbox__inner-icon"></view> </view> <view v-else class="checkbox__inner checkbox--indeterminate"> <view class="checkbox__inner-icon"></view> </view> </view> </template> <script> export default { name: 'TableCheckbox', emits:['checkboxSelected'], props: { indeterminate: { type: Boolean, default: false }, checked: { type: [Boolean,String], default: false }, disabled: { type: Boolean, default: false }, index: { type: Number, default: -1 }, cellData: { type: Object, default () { return {} } } }, watch:{ checked(newVal){ if(typeof this.checked === 'boolean'){ this.isChecked = newVal }else{ this.isChecked = true } }, indeterminate(newVal){ this.isIndeterminate = newVal } }, data() { return { isChecked: false, isDisabled: false, isIndeterminate:false } }, created() { if(typeof this.checked === 'boolean'){ this.isChecked = this.checked } this.isDisabled = this.disabled }, methods: { selected() { if (this.isDisabled) return this.isIndeterminate = false this.isChecked = !this.isChecked this.$emit('checkboxSelected', { checked: this.isChecked, data: this.cellData }) } } } </script> <style lang="scss"> $uni-primary: #007aff !default; $border-color: #DCDFE6; $disable:0.4; .uni-table-checkbox { display: flex; flex-direction: row; align-items: center; justify-content: center; position: relative; margin: 5px 0; cursor: pointer; // 多选样式 .checkbox__inner { /* #ifndef APP-NVUE */ flex-shrink: 0; box-sizing: border-box; /* #endif */ position: relative; width: 16px; height: 16px; border: 1px solid $border-color; border-radius: 2px; background-color: #fff; z-index: 1; .checkbox__inner-icon { position: absolute; /* #ifdef APP-NVUE */ top: 2px; /* #endif */ /* #ifndef APP-NVUE */ top: 2px; /* #endif */ left: 5px; height: 7px; width: 3px; border: 1px solid #fff; border-left: 0; border-top: 0; opacity: 0; transform-origin: center; transform: rotate(45deg); box-sizing: content-box; } &.checkbox--indeterminate { border-color: $uni-primary; background-color: $uni-primary; .checkbox__inner-icon { position: absolute; opacity: 1; transform: rotate(0deg); height: 2px; top: 0; bottom: 0; margin: auto; left: 0px; right: 0px; bottom: 0; width: auto; border: none; border-radius: 2px; transform: scale(0.5); background-color: #fff; } } &:hover{ border-color: $uni-primary; } // 禁用 &.is-disable { /* #ifdef H5 */ cursor: not-allowed; /* #endif */ background-color: #F2F6FC; border-color: $border-color; } // 选中 &.is-checked { border-color: $uni-primary; background-color: $uni-primary; .checkbox__inner-icon { opacity: 1; transform: rotate(45deg); } // 选中禁用 &.is-disable { opacity: $disable; } } } } </style>
2202_75391616/ui
uni_modules/uni-table/components/uni-tr/table-checkbox.vue
Vue
unknown
3,382
<template> <!-- #ifdef H5 --> <tr class="uni-table-tr"> <th v-if="selection === 'selection' && ishead" class="checkbox" :class="{ 'tr-table--border': border }"> <table-checkbox :checked="checked" :indeterminate="indeterminate" :disabled="disabled" @checkboxSelected="checkboxSelected"></table-checkbox> </th> <slot></slot> <!-- <uni-th class="th-fixed">123</uni-th> --> </tr> <!-- #endif --> <!-- #ifndef H5 --> <view class="uni-table-tr"> <view v-if="selection === 'selection' " class="checkbox" :class="{ 'tr-table--border': border }"> <table-checkbox :checked="checked" :indeterminate="indeterminate" :disabled="disabled" @checkboxSelected="checkboxSelected"></table-checkbox> </view> <slot></slot> </view> <!-- #endif --> </template> <script> import tableCheckbox from './table-checkbox.vue' /** * Tr 表格行组件 * @description 表格行组件 仅包含 th,td 组件 * @tutorial https://ext.dcloud.net.cn/plugin?id= */ export default { name: 'uniTr', components: { tableCheckbox }, props: { disabled: { type: Boolean, default: false }, keyValue: { type: [String, Number], default: '' } }, options: { // #ifdef MP-TOUTIAO virtualHost: false, // #endif // #ifndef MP-TOUTIAO virtualHost: true // #endif }, data() { return { value: false, border: false, selection: false, widthThArr: [], ishead: true, checked: false, indeterminate: false } }, created() { this.root = this.getTable() this.head = this.getTable('uniThead') if (this.head) { this.ishead = false this.head.init(this) } this.border = this.root.border this.selection = this.root.type this.root.trChildren.push(this) const rowData = this.root.data.find(v => v[this.root.rowKey] === this.keyValue) if (rowData) { this.rowData = rowData } this.root.isNodata() }, mounted() { if (this.widthThArr.length > 0) { const selectionWidth = this.selection === 'selection' ? 50 : 0 this.root.minWidth = Number(this.widthThArr.reduce((a, b) => Number(a) + Number(b))) + selectionWidth; } }, // #ifndef VUE3 destroyed() { const index = this.root.trChildren.findIndex(i => i === this) this.root.trChildren.splice(index, 1) this.root.isNodata() }, // #endif // #ifdef VUE3 unmounted() { const index = this.root.trChildren.findIndex(i => i === this) this.root.trChildren.splice(index, 1) this.root.isNodata() }, // #endif methods: { minWidthUpdate(width) { this.widthThArr.push(width) if (this.widthThArr.length > 0) { const selectionWidth = this.selection === 'selection' ? 50 : 0; this.root.minWidth = Number(this.widthThArr.reduce((a, b) => Number(a) + Number(b))) + selectionWidth; } }, // 选中 checkboxSelected(e) { let rootData = this.root.data.find(v => v[this.root.rowKey] === this.keyValue) this.checked = e.checked this.root.check(rootData || this, e.checked, rootData ? this.keyValue : null) }, change(e) { this.root.trChildren.forEach(item => { if (item === this) { this.root.check(this, e.detail.value.length > 0 ? true : false) } }) }, /** * 获取父元素实例 */ getTable(name = 'uniTable') { let parent = this.$parent let parentName = parent.$options.name while (parentName !== name) { parent = parent.$parent if (!parent) return false parentName = parent.$options.name } return parent } } } </script> <style lang="scss"> $border-color: #ebeef5; .uni-table-tr { /* #ifndef APP-NVUE */ display: table-row; transition: all 0.3s; box-sizing: border-box; /* #endif */ } .checkbox { padding: 0 8px; width: 26px; padding-left: 12px; /* #ifndef APP-NVUE */ display: table-cell; vertical-align: middle; /* #endif */ color: #333; font-weight: 500; border-bottom: 1px $border-color solid; font-size: 14px; // text-align: center; } .tr-table--border { border-right: 1px $border-color solid; } /* #ifndef APP-NVUE */ .uni-table-tr { ::v-deep .uni-table-th { &.table--border:last-child { // border-right: none; } } ::v-deep .uni-table-td { &.table--border:last-child { // border-right: none; } } } /* #endif */ </style>
2202_75391616/ui
uni_modules/uni-table/components/uni-tr/uni-tr.vue
Vue
unknown
4,344
import en from './en.json' import es from './es.json' import fr from './fr.json' import zhHans from './zh-Hans.json' import zhHant from './zh-Hant.json' export default { en, es, fr, 'zh-Hans': zhHans, 'zh-Hant': zhHant }
2202_75391616/ui
uni_modules/uni-table/i18n/index.js
JavaScript
unknown
226
<template> <text class="uni-tag" v-if="text" :class="classes" :style="customStyle" @click="onClick">{{text}}</text> </template> <script> /** * Tag 标签 * @description 用于展示1个或多个文字标签,可点击切换选中、不选中的状态 * @tutorial https://ext.dcloud.net.cn/plugin?id=35 * @property {String} text 标签内容 * @property {String} size = [default|small|mini] 大小尺寸 * @value default 正常 * @value small 小尺寸 * @value mini 迷你尺寸 * @property {String} type = [default|primary|success|warning|error] 颜色类型 * @value default 灰色 * @value primary 蓝色 * @value success 绿色 * @value warning 黄色 * @value error 红色 * @property {Boolean} disabled = [true|false] 是否为禁用状态 * @property {Boolean} inverted = [true|false] 是否无需背景颜色(空心标签) * @property {Boolean} circle = [true|false] 是否为圆角 * @event {Function} click 点击 Tag 触发事件 */ export default { name: "UniTag", emits: ['click'], props: { type: { // 标签类型default、primary、success、warning、error、royal type: String, default: "default" }, size: { // 标签大小 normal, small type: String, default: "normal" }, // 标签内容 text: { type: String, default: "" }, disabled: { // 是否为禁用状态 type: [Boolean, String], default: false }, inverted: { // 是否为空心 type: [Boolean, String], default: false }, circle: { // 是否为圆角样式 type: [Boolean, String], default: false }, mark: { // 是否为标记样式 type: [Boolean, String], default: false }, customStyle: { type: String, default: '' } }, computed: { classes() { const { type, disabled, inverted, circle, mark, size, isTrue } = this const classArr = [ 'uni-tag--' + type, 'uni-tag--' + size, isTrue(disabled) ? 'uni-tag--disabled' : '', isTrue(inverted) ? 'uni-tag--' + type + '--inverted' : '', isTrue(circle) ? 'uni-tag--circle' : '', isTrue(mark) ? 'uni-tag--mark' : '', // type === 'default' ? 'uni-tag--default' : 'uni-tag-text', isTrue(inverted) ? 'uni-tag--inverted uni-tag-text--' + type : '', size === 'small' ? 'uni-tag-text--small' : '' ] // 返回类的字符串,兼容字节小程序 return classArr.join(' ') } }, methods: { isTrue(value) { return value === true || value === 'true' }, onClick() { if (this.isTrue(this.disabled)) return this.$emit("click"); } } }; </script> <style lang="scss" scoped> $uni-primary: #2979ff !default; $uni-success: #18bc37 !default; $uni-warning: #f3a73f !default; $uni-error: #e43d33 !default; $uni-info: #8f939c !default; $tag-default-pd: 4px 7px; $tag-small-pd: 2px 5px; $tag-mini-pd: 1px 3px; .uni-tag { line-height: 14px; font-size: 12px; font-weight: 200; padding: $tag-default-pd; color: #fff; border-radius: 3px; background-color: $uni-info; border-width: 1px; border-style: solid; border-color: $uni-info; /* #ifdef H5 */ cursor: pointer; /* #endif */ // size attr &--default { font-size: 12px; } &--default--inverted { color: $uni-info; border-color: $uni-info; } &--small { padding: $tag-small-pd; font-size: 12px; border-radius: 2px; } &--mini { padding: $tag-mini-pd; font-size: 12px; border-radius: 2px; } // type attr &--primary { background-color: $uni-primary; border-color: $uni-primary; color: #fff; } &--success { color: #fff; background-color: $uni-success; border-color: $uni-success; } &--warning { color: #fff; background-color: $uni-warning; border-color: $uni-warning; } &--error { color: #fff; background-color: $uni-error; border-color: $uni-error; } &--primary--inverted { color: $uni-primary; border-color: $uni-primary; } &--success--inverted { color: $uni-success; border-color: $uni-success; } &--warning--inverted { color: $uni-warning; border-color: $uni-warning; } &--error--inverted { color: $uni-error; border-color: $uni-error; } &--inverted { background-color: #fff; } // other attr &--circle { border-radius: 15px; } &--mark { border-top-left-radius: 0; border-bottom-left-radius: 0; border-top-right-radius: 15px; border-bottom-right-radius: 15px; } &--disabled { opacity: 0.5; /* #ifdef H5 */ cursor: not-allowed; /* #endif */ } } .uni-tag-text { color: #fff; font-size: 14px; &--primary { color: $uni-primary; } &--success { color: $uni-success; } &--warning { color: $uni-warning; } &--error { color: $uni-error; } &--small { font-size: 12px; } } </style>
2202_75391616/ui
uni_modules/uni-tag/components/uni-tag/uni-tag.vue
Vue
unknown
4,950
<template> <view> 测试插件 </view> </template> <script> export default { data() { return { }; }, onLoad() { let fonts = [] let obj = {} fonts.forEach(v=>{ obj[v.name] = '\\u'+v.unicode }) } } </script> <style> </style>
2202_75391616/ui
uni_modules/uni-test/components/uni-test/uni-test.vue
Vue
unknown
267
<template> <view class="uni-title__box" :style="{'align-items':textAlign}"> <text class="uni-title__base" :class="['uni-'+type]" :style="{'color':color}">{{title}}</text> </view> </template> <script> /** * Title 标题 * @description 标题,通常用于记录页面标题,使用当前组件,uni-app 如果开启统计,将会自动统计页面标题 * @tutorial https://ext.dcloud.net.cn/plugin?id=1066 * @property {String} type = [h1|h2|h3|h4|h5] 标题类型 * @value h1 一级标题 * @value h2 二级标题 * @value h3 三级标题 * @value h4 四级标题 * @value h5 五级标题 * @property {String} title 标题内容 * @property {String} align = [left|center|right] 对齐方式 * @value left 做对齐 * @value center 居中对齐 * @value right 右对齐 * @property {String} color 字体颜色 * @property {Boolean} stat = [true|false] 是否开启统计功能呢,如不填写type值,默认为开启,填写 type 属性,默认为关闭 */ export default { name:"UniTitle", props: { type: { type: String, default: '' }, title: { type: String, default: '' }, align: { type: String, default: 'left' }, color: { type: String, default: '#333333' }, stat: { type: [Boolean, String], default: '' } }, data() { return { }; }, computed: { textAlign() { let align = 'center'; switch (this.align) { case 'left': align = 'flex-start' break; case 'center': align = 'center' break; case 'right': align = 'flex-end' break; } return align } }, watch: { title(newVal) { if (this.isOpenStat()) { // 上报数据 if (uni.report) { uni.report('title', this.title) } } } }, mounted() { if (this.isOpenStat()) { // 上报数据 if (uni.report) { uni.report('title', this.title) } } }, methods: { isOpenStat() { if (this.stat === '') { this.isStat = false } let stat_type = (typeof(this.stat) === 'boolean' && this.stat) || (typeof(this.stat) === 'string' && this.stat !== '') if (this.type === "") { this.isStat = true if (this.stat.toString() === 'false') { this.isStat = false } } if (this.type !== '') { this.isStat = true if (stat_type) { this.isStat = true } else { this.isStat = false } } return this.isStat } } } </script> <style> /* .uni-title { } */ .uni-title__box { /* #ifndef APP-NVUE */ display: flex; /* #endif */ flex-direction: column; align-items: flex-start; justify-content: center; padding: 8px 0; flex: 1; } .uni-title__base { font-size: 15px; color: #333; font-weight: 500; } .uni-h1 { font-size: 20px; color: #333; font-weight: bold; } .uni-h2 { font-size: 18px; color: #333; font-weight: bold; } .uni-h3 { font-size: 16px; color: #333; font-weight: bold; /* font-weight: 400; */ } .uni-h4 { font-size: 14px; color: #333; font-weight: bold; /* font-weight: 300; */ } .uni-h5 { font-size: 12px; color: #333; font-weight: bold; /* font-weight: 200; */ } </style>
2202_75391616/ui
uni_modules/uni-title/components/uni-title/uni-title.vue
Vue
unknown
3,256
<template> <view class="uni-tooltip"> <slot></slot> <view v-if="content || $slots.content" class="uni-tooltip-popup" :style="initPlacement"> <slot name="content"> {{content}} </slot> </view> </view> </template> <script> /** * Tooltip 提示文字 * @description 常用于展示鼠标 hover 时的提示信息。 * @tutorial https://uniapp.dcloud.io/component/uniui/uni-tooltip * @property {String} content 弹出层显示的内容 * @property {String} placement出现位置, 目前支持:left right top bottom */ export default { name: "uni-tooltip", data() { return { }; }, methods: {}, computed: { initPlacement() { let style = {}; switch (this.placement) { case 'left': style = { top: '50%', transform: 'translateY(-50%)', right: '100%', "margin-right": '10rpx', } break; case 'right': style = { top: '50%', transform: 'translateY(-50%)', left: '100%', "margin-left": '10rpx', } break; case 'top': style = { bottom: '100%', transform: 'translateX(-50%)', left: '50%', "margin-bottom": '10rpx', } break; case 'bottom': style = { top: '100%', transform: 'translateX(-50%)', left: '50%', "margin-top": '10rpx', } break; } return Object.entries(style).map(([key, value]) => `${key}: ${value}`).join('; '); } }, props: { content: { type: String, default: '' }, placement: { type: String, default: 'bottom' }, } } </script> <style> .uni-tooltip { position: relative; cursor: pointer; display: inline-block; } .uni-tooltip-popup { z-index: 1; display: none; position: absolute; background-color: #333; border-radius: 8px; color: #fff; font-size: 12px; text-align: left; line-height: 16px; padding: 12px; overflow: auto; } .uni-tooltip:hover .uni-tooltip-popup { display: block; } </style>
2202_75391616/ui
uni_modules/uni-tooltip/components/uni-tooltip/uni-tooltip.vue
Vue
unknown
2,044
// const defaultOption = { // duration: 300, // timingFunction: 'linear', // delay: 0, // transformOrigin: '50% 50% 0' // } // #ifdef APP-NVUE const nvueAnimation = uni.requireNativePlugin('animation') // #endif class MPAnimation { constructor(options, _this) { this.options = options // 在iOS10+QQ小程序平台下,传给原生的对象一定是个普通对象而不是Proxy对象,否则会报parameter should be Object instead of ProxyObject的错误 this.animation = uni.createAnimation({ ...options }) this.currentStepAnimates = {} this.next = 0 this.$ = _this } _nvuePushAnimates(type, args) { let aniObj = this.currentStepAnimates[this.next] let styles = {} if (!aniObj) { styles = { styles: {}, config: {} } } else { styles = aniObj } if (animateTypes1.includes(type)) { if (!styles.styles.transform) { styles.styles.transform = '' } let unit = '' if(type === 'rotate'){ unit = 'deg' } styles.styles.transform += `${type}(${args+unit}) ` } else { styles.styles[type] = `${args}` } this.currentStepAnimates[this.next] = styles } _animateRun(styles = {}, config = {}) { let ref = this.$.$refs['ani'].ref if (!ref) return return new Promise((resolve, reject) => { nvueAnimation.transition(ref, { styles, ...config }, res => { resolve() }) }) } _nvueNextAnimate(animates, step = 0, fn) { let obj = animates[step] if (obj) { let { styles, config } = obj this._animateRun(styles, config).then(() => { step += 1 this._nvueNextAnimate(animates, step, fn) }) } else { this.currentStepAnimates = {} typeof fn === 'function' && fn() this.isEnd = true } } step(config = {}) { // #ifndef APP-NVUE this.animation.step(config) // #endif // #ifdef APP-NVUE this.currentStepAnimates[this.next].config = Object.assign({}, this.options, config) this.currentStepAnimates[this.next].styles.transformOrigin = this.currentStepAnimates[this.next].config.transformOrigin this.next++ // #endif return this } run(fn) { // #ifndef APP-NVUE this.$.animationData = this.animation.export() this.$.timer = setTimeout(() => { typeof fn === 'function' && fn() }, this.$.durationTime) // #endif // #ifdef APP-NVUE this.isEnd = false let ref = this.$.$refs['ani'] && this.$.$refs['ani'].ref if(!ref) return this._nvueNextAnimate(this.currentStepAnimates, 0, fn) this.next = 0 // #endif } } const animateTypes1 = ['matrix', 'matrix3d', 'rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scale3d', 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'translate', 'translate3d', 'translateX', 'translateY', 'translateZ' ] const animateTypes2 = ['opacity', 'backgroundColor'] const animateTypes3 = ['width', 'height', 'left', 'right', 'top', 'bottom'] animateTypes1.concat(animateTypes2, animateTypes3).forEach(type => { MPAnimation.prototype[type] = function(...args) { // #ifndef APP-NVUE this.animation[type](...args) // #endif // #ifdef APP-NVUE this._nvuePushAnimates(type, args) // #endif return this } }) export function createAnimation(option, _this) { if(!_this) return clearTimeout(_this.timer) return new MPAnimation(option, _this) }
2202_75391616/ui
uni_modules/uni-transition/components/uni-transition/createAnimation.js
JavaScript
unknown
3,281
<template> <!-- #ifndef APP-NVUE --> <view v-show="isShow" ref="ani" :animation="animationData" :class="customClass" :style="transformStyles" @click="onClick"><slot></slot></view> <!-- #endif --> <!-- #ifdef APP-NVUE --> <view v-if="isShow" ref="ani" :animation="animationData" :class="customClass" :style="transformStyles" @click="onClick"><slot></slot></view> <!-- #endif --> </template> <script> import { createAnimation } from './createAnimation' /** * Transition 过渡动画 * @description 简单过渡动画组件 * @tutorial https://ext.dcloud.net.cn/plugin?id=985 * @property {Boolean} show = [false|true] 控制组件显示或隐藏 * @property {Array|String} modeClass = [fade|slide-top|slide-right|slide-bottom|slide-left|zoom-in|zoom-out] 过渡动画类型 * @value fade 渐隐渐出过渡 * @value slide-top 由上至下过渡 * @value slide-right 由右至左过渡 * @value slide-bottom 由下至上过渡 * @value slide-left 由左至右过渡 * @value zoom-in 由小到大过渡 * @value zoom-out 由大到小过渡 * @property {Number} duration 过渡动画持续时间 * @property {Object} styles 组件样式,同 css 样式,注意带’-‘连接符的属性需要使用小驼峰写法如:`backgroundColor:red` */ export default { name: 'uniTransition', emits:['click','change'], props: { show: { type: Boolean, default: false }, modeClass: { type: [Array, String], default() { return 'fade' } }, duration: { type: Number, default: 300 }, styles: { type: Object, default() { return {} } }, customClass:{ type: String, default: '' }, onceRender:{ type:Boolean, default:false }, }, data() { return { isShow: false, transform: '', opacity: 1, animationData: {}, durationTime: 300, config: {} } }, watch: { show: { handler(newVal) { if (newVal) { this.open() } else { // 避免上来就执行 close,导致动画错乱 if (this.isShow) { this.close() } } }, immediate: true } }, computed: { // 生成样式数据 stylesObject() { let styles = { ...this.styles, 'transition-duration': this.duration / 1000 + 's' } let transform = '' for (let i in styles) { let line = this.toLine(i) transform += line + ':' + styles[i] + ';' } return transform }, // 初始化动画条件 transformStyles() { return 'transform:' + this.transform + ';' + 'opacity:' + this.opacity + ';' + this.stylesObject } }, created() { // 动画默认配置 this.config = { duration: this.duration, timingFunction: 'ease', transformOrigin: '50% 50%', delay: 0 } this.durationTime = this.duration }, methods: { /** * ref 触发 初始化动画 */ init(obj = {}) { if (obj.duration) { this.durationTime = obj.duration } this.animation = createAnimation(Object.assign(this.config, obj),this) }, /** * 点击组件触发回调 */ onClick() { this.$emit('click', { detail: this.isShow }) }, /** * ref 触发 动画分组 * @param {Object} obj */ step(obj, config = {}) { if (!this.animation) return for (let i in obj) { try { if(typeof obj[i] === 'object'){ this.animation[i](...obj[i]) }else{ this.animation[i](obj[i]) } } catch (e) { console.error(`方法 ${i} 不存在`) } } this.animation.step(config) return this }, /** * ref 触发 执行动画 */ run(fn) { if (!this.animation) return this.animation.run(fn) }, // 开始过度动画 open() { clearTimeout(this.timer) this.transform = '' this.isShow = true let { opacity, transform } = this.styleInit(false) if (typeof opacity !== 'undefined') { this.opacity = opacity } this.transform = transform // 确保动态样式已经生效后,执行动画,如果不加 nextTick ,会导致 wx 动画执行异常 this.$nextTick(() => { // TODO 定时器保证动画完全执行,目前有些问题,后面会取消定时器 this.timer = setTimeout(() => { this.animation = createAnimation(this.config, this) this.tranfromInit(false).step() this.animation.run() this.$emit('change', { detail: this.isShow }) }, 20) }) }, // 关闭过度动画 close(type) { if (!this.animation) return this.tranfromInit(true) .step() .run(() => { this.isShow = false this.animationData = null this.animation = null let { opacity, transform } = this.styleInit(false) this.opacity = opacity || 1 this.transform = transform this.$emit('change', { detail: this.isShow }) }) }, // 处理动画开始前的默认样式 styleInit(type) { let styles = { transform: '' } let buildStyle = (type, mode) => { if (mode === 'fade') { styles.opacity = this.animationType(type)[mode] } else { styles.transform += this.animationType(type)[mode] + ' ' } } if (typeof this.modeClass === 'string') { buildStyle(type, this.modeClass) } else { this.modeClass.forEach(mode => { buildStyle(type, mode) }) } return styles }, // 处理内置组合动画 tranfromInit(type) { let buildTranfrom = (type, mode) => { let aniNum = null if (mode === 'fade') { aniNum = type ? 0 : 1 } else { aniNum = type ? '-100%' : '0' if (mode === 'zoom-in') { aniNum = type ? 0.8 : 1 } if (mode === 'zoom-out') { aniNum = type ? 1.2 : 1 } if (mode === 'slide-right') { aniNum = type ? '100%' : '0' } if (mode === 'slide-bottom') { aniNum = type ? '100%' : '0' } } this.animation[this.animationMode()[mode]](aniNum) } if (typeof this.modeClass === 'string') { buildTranfrom(type, this.modeClass) } else { this.modeClass.forEach(mode => { buildTranfrom(type, mode) }) } return this.animation }, animationType(type) { return { fade: type ? 0 : 1, 'slide-top': `translateY(${type ? '0' : '-100%'})`, 'slide-right': `translateX(${type ? '0' : '100%'})`, 'slide-bottom': `translateY(${type ? '0' : '100%'})`, 'slide-left': `translateX(${type ? '0' : '-100%'})`, 'zoom-in': `scaleX(${type ? 1 : 0.8}) scaleY(${type ? 1 : 0.8})`, 'zoom-out': `scaleX(${type ? 1 : 1.2}) scaleY(${type ? 1 : 1.2})` } }, // 内置动画类型与实际动画对应字典 animationMode() { return { fade: 'opacity', 'slide-top': 'translateY', 'slide-right': 'translateX', 'slide-bottom': 'translateY', 'slide-left': 'translateX', 'zoom-in': 'scale', 'zoom-out': 'scale' } }, // 驼峰转中横线 toLine(name) { return name.replace(/([A-Z])/g, '-$1').toLowerCase() } } } </script> <style></style>
2202_75391616/ui
uni_modules/uni-transition/components/uni-transition/uni-transition.vue
Vue
unknown
6,903
<template> <view>占位组件,请勿使用</view> </template> <script> </script> <style> </style>
2202_75391616/ui
uni_modules/uni-ui/components/uni-ui/uni-ui.vue
Vue
unknown
101
package njust.dzh.ordersystem; import android.content.Context; import androidx.test.platform.app.InstrumentationRegistry; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("njust.dzh.ordersystem", appContext.getPackageName()); } }
2202_75383424/ordersystem
ExampleInstrumentedTest.java
Java
unknown
781
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="keywords" content="文件,文件扩展名,查询,文件扩展,扩展,扩展名,文件名,工具,查询工具,文件扩展名查询工具,扩展名工具,扩展工具"> <title>文件扩展名查询工具</title> <style> body { font-family: 'Segoe UI', sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; background-color: #f5f7fa; } .search-box { margin: 30px 0; position: relative; } input { width: 100%; padding: 12px 20px; border: 2px solid #e1e5eb; border-radius: 8px; font-size: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); } table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.1); } th, td { padding: 15px; text-align: left; border-bottom: 1px solid #f0f0f0; } th { background-color: #4a6fa5; color: white; } tr:hover { background-color: #f8f9fc; } .no-results { text-align: center; padding: 20px; color: #666; } </style> </head> <body> <h2><strong>文件扩展名查询工具</strong></h2> <div class="search-box"> <input type="text" id="searchInput" placeholder="输入扩展名如 .pdf 或 描述关键词"> </div> <table id="extensionTable"> <thead> <tr> <th>扩展名</th> <th>说明</th> </tr> </thead> <tbody id="tableBody"><tr> <td><strong>.A</strong></td> <td>对象代码库文件</td> </tr><tr> <td><strong>.AAM</strong></td> <td>Authorware shocked文件</td> </tr><tr> <td><strong>.AAS</strong></td> <td>Authorware shocked包</td> </tr><tr> <td><strong>.ABF</strong></td> <td>Adobe二进制屏幕字体</td> </tr><tr> <td><strong>.ABK</strong></td> <td>CorelDRAW自动备份文件</td> </tr><tr> <td><strong>.ABS</strong></td> <td>摘要文件</td> </tr><tr> <td><strong>.ACE</strong></td> <td>Ace压缩文件格式文件</td> </tr><tr> <td><strong>.ACM</strong></td> <td>Windows系统目录文件</td> </tr><tr> <td><strong>.ACP</strong></td> <td>Microsoft Office助手预览文件</td> </tr><tr> <td><strong>.ACT</strong></td> <td>Microsoft Office助手文件</td> </tr><tr> <td><strong>.AD</strong></td> <td>After Dark屏幕保护程序</td> </tr><tr> <td><strong>.ADA</strong></td> <td>Ada源文件(非-GNAT)</td> </tr><tr> <td><strong>.ADB</strong></td> <td>Ada源文件主体(GNAT);HP100LX组织者的约定数据库</td> </tr><tr> <td><strong>.ADF</strong></td> <td>Amiga磁盘文件</td> </tr><tr> <td><strong>.ADI</strong></td> <td>AutoCAD设备无关二进制绘图仪格式</td> </tr><tr> <td><strong>.ADM</strong></td> <td>After Dark多模块屏幕保护;Windows NT策略模板</td> </tr><tr> <td><strong>.ADP</strong></td> <td>FaxWork传真调制解调器交互安装文件;Astound Dynamite文件</td> </tr><tr> <td><strong>.ADR</strong></td> <td>After Dark随机屏幕保护;Smart Address的地址簿</td> </tr><tr> <td><strong>.ADS</strong></td> <td>Ada源文件说明书(GNAT)</td> </tr><tr> <td><strong>.AFM</strong></td> <td>Adobe的字体尺度</td> </tr><tr> <td><strong>.AF2/.AF3</strong></td> <td>ABC的FlowChat文件</td> </tr><tr> <td><strong>.AI</strong></td> <td>Adobe Illustrator格式图形</td> </tr><tr> <td><strong>.AIF/.AIFF</strong></td> <td>音频互交换文件</td> </tr><tr> <td><strong>.AIFC</strong></td> <td>压缩AIF文件</td> </tr><tr> <td><strong>.AIM</strong></td> <td>AOL即时信息传送文件</td> </tr><tr> <td><strong>.AIS</strong></td> <td>ACDSee图形序列文件;Velvet Studio设备文件</td> </tr><tr> <td><strong>.AKW</strong></td> <td>RoboHELP的帮助工程中所有A-关键词</td> </tr><tr> <td><strong>.ALB</strong></td> <td>JASC Image Commander相册文件</td> </tr><tr> <td><strong>.ALL</strong></td> <td>艺术与书信库文件</td> </tr><tr> <td><strong>.AMS</strong></td> <td>Velvet Studio音乐模块(MOD)文件;Extreme的Tracker模块文件</td> </tr><tr> <td><strong>.ANC</strong></td> <td>Canon Computer调色板文件</td> </tr><tr> <td><strong>.ANI</strong></td> <td>Windows动画光标文件</td> </tr><tr> <td><strong>.ANS</strong></td> <td>ANSI文本文件</td> </tr><tr> <td><strong>.ANT</strong></td> <td>SimAnt For Windows 保存的游戏文件</td> </tr><tr> <td><strong>.API</strong></td> <td>Adobe Acrobat使用的应用程序设计接口文件</td> </tr><tr> <td><strong>.APS</strong></td> <td>Microsoft Visual C++文件</td> </tr><tr> <td><strong>.APK</strong></td> <td>安卓安装包文件</td> </tr><tr> <td><strong>.ARI</strong></td> <td>Aristotle声音文件</td> </tr><tr> <td><strong>.ARJ</strong></td> <td>Robert Jung ARJ压缩包文件</td> </tr><tr> <td><strong>.ART</strong></td> <td>Xara Studio绘画文件</td> </tr><tr> <td><strong>.ASA</strong></td> <td>Microsoft Visual InterDev文件</td> </tr><tr> <td><strong>.ASC</strong></td> <td>ASCⅡ文本文件;PGP算法加密文件</td> </tr><tr> <td><strong>.ASD</strong></td> <td>Microsoft Word自动保存文件</td> </tr><tr> <td><strong>.ASE</strong></td> <td>Velvet Studio采样文件</td> </tr><tr> <td><strong>.ASF</strong></td> <td>Microsoft高级流媒体格式文件</td> </tr><tr> <td><strong>.ASM</strong></td> <td>汇编语言源文件,Pro/E装配文件</td> </tr><tr> <td><strong>.ASO</strong></td> <td>Astound Dynamite对象文件</td> </tr><tr> <td><strong>.ASP</strong></td> <td>动态网页文件</td> </tr><tr> <td><strong>.ASV</strong></td> <td>DataCAD自动保存文件</td> </tr><tr> <td><strong>.ASX</strong></td> <td>Cheyenne备份脚本文件</td> </tr><tr> <td><strong>.ATW</strong></td> <td>Any Time Deluxe For Windows个人信息管理员文件</td> </tr><tr> <td><strong>.AU</strong></td> <td>Sun/NeXT/DEC/UNIX声音文件</td> </tr><tr> <td><strong>.AVB</strong></td> <td>Computer Associates Inoculan反病毒软件的病毒感染后文件</td> </tr><tr> <td><strong>.AVI</strong></td> <td>Microsoft Audio Video Interleave电影格式</td> </tr><tr> <td><strong>.AVR</strong></td> <td>Audio Visual Research文件格式文件</td> </tr><tr> <td><strong>.AVS</strong></td> <td>应用程序可视化格式</td> </tr><tr> <td><strong>.AWD</strong></td> <td>FaxVien文档</td> </tr><tr> <td><strong>.AWR</strong></td> <td>Telsis数字储存音频文件扩展名格式文件</td> </tr><tr> <td><strong>.Axx</strong></td> <td>ARJ压缩文件的分包序号文件</td> </tr><tr> <td><strong>.A3M/.A4M</strong></td> <td>Authorware Macintosh未打包文件</td> </tr><tr> <td><strong>.A4P</strong></td> <td>Authorware无运行时间的打包文件</td> </tr><tr> <td><strong>.A3W/.A4W/.A5W</strong></td> <td>未打包的Authorware Windows文件</td> </tr><tr> <td><strong>.BAK</strong></td> <td>备份文件</td> </tr><tr> <td><strong>.BAS</strong></td> <td>BASIC源文件</td> </tr><tr> <td><strong>.BAT</strong></td> <td>批处理文件</td> </tr><tr> <td><strong>.BDF</strong></td> <td>West Point Bridger Designer文件</td> </tr><tr> <td><strong>.BGL</strong></td> <td>Microsoft Flight Simulator视景文件</td> </tr><tr> <td><strong>.BI</strong></td> <td>二进制文件</td> </tr><tr> <td><strong>.BIF</strong></td> <td>Group Wise初始化文件</td> </tr><tr> <td><strong>.BIN</strong></td> <td>二进制文件</td> </tr><tr> <td><strong>.BK/BK$</strong></td> <td>备份版本</td> </tr><tr> <td><strong>.BKS</strong></td> <td>IBM BookManager Read书架文件</td> </tr><tr> <td><strong>.BMK</strong></td> <td>书签文件</td> </tr><tr> <td><strong>.BMP</strong></td> <td>Windows或OS/2位图文件</td> </tr><tr> <td><strong>.BOOK</strong></td> <td>Adobe FrameMaker Book文件</td> </tr><tr> <td><strong>.BRX</strong></td> <td>查看多媒体对象目录的文件</td> </tr><tr> <td><strong>.BSP</strong></td> <td>Quake图形文件</td> </tr><tr> <td><strong>.BTM</strong></td> <td>Norton应用程序使用的批处理文件</td> </tr><tr> <td><strong>.BUD</strong></td> <td>Quicken的备份磁盘</td> </tr><tr> <td><strong>.BUN</strong></td> <td>CakeWalk声音捆绑文件</td> </tr><tr> <td><strong>.BW</strong></td> <td>SGI黑白图像文件</td> </tr><tr> <td><strong>.BWV</strong></td> <td>商业波形文件</td> </tr><tr> <td><strong>.C</strong></td> <td>C代码文件</td> </tr><tr> <td><strong>.CAB</strong></td> <td>Microsoft压缩文件</td> </tr><tr> <td><strong>.CAD</strong></td> <td>Softdek的Drafix CAD文件</td> </tr><tr> <td><strong>.CAL</strong></td> <td>CALS压缩位图文件;日历计划表数据文件</td> </tr><tr> <td><strong>.CAP</strong></td> <td>压缩音乐文件格式</td> </tr><tr> <td><strong>.CAS</strong></td> <td>逗号分开的ASCⅡ文件</td> </tr><tr> <td><strong>.CB</strong></td> <td>Microsoft干净引导文件</td> </tr><tr> <td><strong>.CC</strong></td> <td>Visual dBASE用户自定义类文件</td> </tr><tr> <td><strong>.CCB</strong></td> <td>Visual Basic动态按钮配置文件</td> </tr><tr> <td><strong>.CCH</strong></td> <td>Corel图表文件</td> </tr><tr> <td><strong>.CCO</strong></td> <td>CyberChat数据文件</td> </tr><tr> <td><strong>.CCT</strong></td> <td>Macromedia Director Shockwave投影文件</td> </tr><tr> <td><strong>.CDA</strong></td> <td>CD音频轨道文件</td> </tr><tr> <td><strong>.CDF</strong></td> <td>Microsoft频道定义格式文件</td> </tr><tr> <td><strong>.CDI</strong></td> <td>Philip的高密盘交互格式</td> </tr><tr> <td><strong>.CDM</strong></td> <td>Visual dBASE自定义数据模块文件</td> </tr><tr> <td><strong>.CDR</strong></td> <td>CorelDRAW绘图文件</td> </tr><tr> <td><strong>.CDT</strong></td> <td>CorelDRAW模板文件</td> </tr><tr> <td><strong>.CDX</strong></td> <td>CorelDRAW压缩绘图文件</td> </tr><tr> <td><strong>.CFG</strong></td> <td>配置文件</td> </tr><tr> <td><strong>.CGI</strong></td> <td>公共网关接口脚本文件</td> </tr><tr> <td><strong>.CGM</strong></td> <td>计算机图形元文件</td> </tr><tr> <td><strong>.CHK</strong></td> <td>文件碎片</td> </tr><tr> <td><strong>.CHM</strong></td> <td>编译过的HTML文件</td> </tr><tr> <td><strong>.CHR</strong></td> <td>字符集(字体文件)</td> </tr><tr> <td><strong>.CIF</strong></td> <td>Adaptec CD创建器CD映像文件</td> </tr><tr> <td><strong>.CIL</strong></td> <td>Clip Gallery下载包</td> </tr><tr> <td><strong>.CLASS</strong></td> <td>Java类文件</td> </tr><tr> <td><strong>.CLL</strong></td> <td>Crick Software Clicker文件</td> </tr><tr> <td><strong>.CLP</strong></td> <td>Windows剪贴板文件</td> </tr><tr> <td><strong>.CLS</strong></td> <td>Visual Basic类文件</td> </tr><tr> <td><strong>.CMF</strong></td> <td>Corel元文件</td> </tr><tr> <td><strong>.CMV</strong></td> <td>Corel Move动画文件</td> </tr><tr> <td><strong>.CMX</strong></td> <td>Corel Presentation Exchange图像</td> </tr><tr> <td><strong>.CNF</strong></td> <td>配置文件</td> </tr><tr> <td><strong>.CNM</strong></td> <td>Windows应用程序菜单选项和安装文件</td> </tr><tr> <td><strong>.CNT</strong></td> <td>内容文件</td> </tr><tr> <td><strong>.COD</strong></td> <td>可显示机器码/汇编代码文件</td> </tr><tr> <td><strong>.COM</strong></td> <td>命令文件(程序)</td> </tr><tr> <td><strong>.CPL</strong></td> <td>控制面板扩展名,Corel颜色板</td> </tr><tr> <td><strong>.CPO</strong></td> <td>Corel打印存储文件</td> </tr><tr> <td><strong>.CPP</strong></td> <td>C++代码文件</td> </tr><tr> <td><strong>.CPR</strong></td> <td>Corel提供说明书文件</td> </tr><tr> <td><strong>.CPT</strong></td> <td>Corel照片-绘画图像</td> </tr><tr> <td><strong>.CPX</strong></td> <td>Corel Presentation Exchange压缩图形文件</td> </tr><tr> <td><strong>.CRD</strong></td> <td>Windows Cardfile文件</td> </tr><tr> <td><strong>.CRP</strong></td> <td>Corel提供的运行时介绍文件</td> </tr><tr> <td><strong>.CRT</strong></td> <td>认证文件</td> </tr><tr> <td><strong>.CSC</strong></td> <td>Corel脚本文件</td> </tr><tr> <td><strong>.CSP</strong></td> <td>PC Emcee On_Screen图像文件</td> </tr><tr> <td><strong>.CST</strong></td> <td>Macromedia Director Cast文件</td> </tr><tr> <td><strong>.CSV</strong></td> <td>逗号分隔的值文件</td> </tr><tr> <td><strong>.CTL</strong></td> <td>包含控件信息的文件</td> </tr><tr> <td><strong>.CUR</strong></td> <td>Windows光标文件</td> </tr><tr> <td><strong>.CV</strong></td> <td>Corel版本的档案文件</td> </tr><tr> <td><strong>.CXX</strong></td> <td>C++源代码文件</td> </tr><tr> <td><strong>.DAT</strong></td> <td>数据文件</td> </tr><tr> <td><strong>.DB</strong></td> <td>Borland的Paradox 7表文件</td> </tr><tr> <td><strong>.DBC</strong></td> <td>Microsoft Visual FoxPro数据库容器文件</td> </tr><tr> <td><strong>.DBF</strong></td> <td>dBASE文件</td> </tr><tr> <td><strong>.DBX</strong></td> <td>DataBearn图像</td> </tr><tr> <td><strong>.DCM</strong></td> <td>DCM模块格式文件</td> </tr><tr> <td><strong>.DCS</strong></td> <td>桌面颜色分隔文件</td> </tr><tr> <td><strong>.DCT</strong></td> <td>Microsoft Visual FoxPro数据库容器</td> </tr><tr> <td><strong>.DCU</strong></td> <td>Delphi编译单元文件</td> </tr><tr> <td><strong>.DCX</strong></td> <td>Microsoft Visual FoxPro数据库容器</td> </tr><tr> <td><strong>.DEM</strong></td> <td>数字高度模型文件</td> </tr><tr> <td><strong>.DER</strong></td> <td>认证文件</td> </tr><tr> <td><strong>.DEWF</strong></td> <td>Macintosh Sound Cap/Sound Edit录音设备格式文件</td> </tr><tr> <td><strong>.DIB</strong></td> <td>设备无关位图文件</td> </tr><tr> <td><strong>.DIC</strong></td> <td>目录文件</td> </tr><tr> <td><strong>.DIF</strong></td> <td>电子表格文件</td> </tr><tr> <td><strong>.DIG</strong></td> <td>DigiLink格式;Sound DesignerⅠ音频文件</td> </tr><tr> <td><strong>.DIR</strong></td> <td>Macromedia Director文件</td> </tr><tr> <td><strong>.DIZ</strong></td> <td>描述文件</td> </tr><tr> <td><strong>.DLG</strong></td> <td>C++对话框脚本文件</td> </tr><tr> <td><strong>.DLL</strong></td> <td>动态链接库</td> </tr><tr> <td><strong>.DLS</strong></td> <td>可下载声音文件</td> </tr><tr> <td><strong>.DMD</strong></td> <td>Visual dBASE数据模块文件</td> </tr><tr> <td><strong>.DMF</strong></td> <td>X-Trakker音乐模块(MOD)文件</td> </tr><tr> <td><strong>.DOC</strong></td> <td>Word文档</td> </tr><tr> <td><strong>.DOT</strong></td> <td>Microsoft Word文档模板</td> </tr><tr> <td><strong>.DRAW</strong></td> <td>Acorn的基于对象的矢量图像文件</td> </tr><tr> <td><strong>.DRV</strong></td> <td>驱动程序文件</td> </tr><tr> <td><strong>.DRW</strong></td> <td>Micrografx Designer/Draw;Pro/E绘画文件</td> </tr><tr> <td><strong>.DSF</strong></td> <td>Micrografx Designer VFX文件</td> </tr><tr> <td><strong>.DSG</strong></td> <td>DOOM保存的文件</td> </tr><tr> <td><strong>.DSM</strong></td> <td>Dynamic Studio音乐模块(MOD)文件</td> </tr><tr> <td><strong>.DSP</strong></td> <td>Microsoft Developer Studio工程文件</td> </tr><tr> <td><strong>.DSQ</strong></td> <td>Corel QUERY(查询)文件</td> </tr><tr> <td><strong>.DSW</strong></td> <td>Microsoft Developer Studio工作区文件</td> </tr><tr> <td><strong>.DTD</strong></td> <td>SGML文档类型定义(DTD)文件</td> </tr><tr> <td><strong>.DUN</strong></td> <td>Microsoft拔号网络导出文件</td> </tr><tr> <td><strong>.DV</strong></td> <td>数字视频文件(MIME)</td> </tr><tr> <td><strong>.DXF</strong></td> <td>绘图文件格式</td> </tr><tr> <td><strong>.DXR</strong></td> <td>Macromedia Director受保护电影文件</td> </tr><tr> <td><strong>.EDA</strong></td> <td>Ensoniq ASR磁盘映像</td> </tr><tr> <td><strong>.EDD</strong></td> <td>元素定义文档</td> </tr><tr> <td><strong>.EMD</strong></td> <td>ABT扩展模块</td> </tr><tr> <td><strong>.EMF</strong></td> <td>Windows增强元文件</td> </tr><tr> <td><strong>.EML</strong></td> <td>Microsoft Outlook Express邮件消息文件</td> </tr><tr> <td><strong>.EPHTML</strong></td> <td>Perl解释增强HTML文件</td> </tr><tr> <td><strong>.EPS</strong></td> <td>压缩的PostScript图像</td> </tr><tr> <td><strong>.EXE</strong></td> <td>可执行文件(程序)</td> </tr><tr> <td><strong>.FAV</strong></td> <td>Microsoft Outlook导航条</td> </tr><tr> <td><strong>.FAX</strong></td> <td>传真类型图像</td> </tr><tr> <td><strong>.FCD</strong></td> <td>虚拟CD-ROM</td> </tr><tr> <td><strong>.FDF</strong></td> <td>Adobe Acrobat表单文档文件</td> </tr><tr> <td><strong>.FFA/FFL/FFO/FFK</strong></td> <td>Microsoft快速查找文件</td> </tr><tr> <td><strong>.FIF</strong></td> <td>Fractal图像文件</td> </tr><tr> <td><strong>.FLA</strong></td> <td>Macromedia Flash电影文件</td> </tr><tr> <td><strong>.FLC</strong></td> <td>Autodesk FLIC动画文件</td> </tr><tr> <td><strong>.FM</strong></td> <td>Adobe FrameMaker文档文件</td> </tr><tr> <td><strong>.FML</strong></td> <td>文件镜象列表</td> </tr><tr> <td><strong>.FNG</strong></td> <td>字体组文件</td> </tr><tr> <td><strong>.FNK</strong></td> <td>Funk Tracker模块格式</td> </tr><tr> <td><strong>.FON</strong></td> <td>系统字体文件</td> </tr><tr> <td><strong>.FOT</strong></td> <td>字体相关文件</td> </tr><tr> <td><strong>.FRT</strong></td> <td>Microsoft FoxPro报表文件</td> </tr><tr> <td><strong>.FRX</strong></td> <td>Visual Basic表单文本</td> </tr><tr> <td><strong>.FTG</strong></td> <td>全文本搜索组文件</td> </tr><tr> <td><strong>.FTS</strong></td> <td>全文本搜索引文件</td> </tr><tr> <td><strong>.GAL</strong></td> <td>Corel多媒体管理器相集文件</td> </tr><tr> <td><strong>.GDB</strong></td> <td>InterBase数据库文件</td> </tr><tr> <td><strong>.GDM</strong></td> <td>铃声、口哨声和声音板模块格式</td> </tr><tr> <td><strong>.GEM</strong></td> <td>GEM元文件</td> </tr><tr> <td><strong>.GEN</strong></td> <td>Ventura产生的文本文件</td> </tr><tr> <td><strong>.GetRight</strong></td> <td>GetRight未完成的下载文件</td> </tr><tr> <td><strong>.GFI/GFX</strong></td> <td>Genigraphics图形链接表示文件</td> </tr><tr> <td><strong>.GHO</strong></td> <td>Norton克隆磁盘映像</td> </tr><tr> <td><strong>.GIF</strong></td> <td>CompuServe位图文件</td> </tr><tr> <td><strong>.GIM/GIX</strong></td> <td>Genigraphics图形链接介绍文件</td> </tr><tr> <td><strong>.GKH</strong></td> <td>Ensoniq EPS家簇磁盘映像文件</td> </tr><tr> <td><strong>.GKS</strong></td> <td>Gravis Grip Key文档</td> </tr><tr> <td><strong>.GL</strong></td> <td>动画格式文件</td> </tr><tr> <td><strong>.GNA</strong></td> <td>Genigraphics图形链接介绍文件</td> </tr><tr> <td><strong>.GNT</strong></td> <td>生成的代码文件</td> </tr><tr> <td><strong>.GNX</strong></td> <td>Genigraphics图形链接介绍文件</td> </tr><tr> <td><strong>.GRA</strong></td> <td>Microsoft Graph文件</td> </tr><tr> <td><strong>.GRF</strong></td> <td>Grapher图形文件</td> </tr><tr> <td><strong>.GRP</strong></td> <td>程序管理组文件</td> </tr><tr> <td><strong>.GO</strong></td> <td>Go语言源文件</td> </tr><tr> <td><strong>.HCOM</strong></td> <td>声音工具HCOM格式</td> </tr><tr> <td><strong>.HGL</strong></td> <td>HP图形语言绘图文件</td> </tr><tr> <td><strong>.HLP</strong></td> <td>帮助文件</td> </tr><tr> <td><strong>.HPJ</strong></td> <td>Visual Basic帮助工程</td> </tr><tr> <td><strong>.HPP</strong></td> <td>C++程序头文件</td> </tr><tr> <td><strong>.HST</strong></td> <td>历史文件</td> </tr><tr> <td><strong>.HT</strong></td> <td>HyperTerminal</td> </tr><tr> <td><strong>.HTM/HTML</strong></td> <td>超文本文档</td> </tr><tr> <td><strong>.HTT</strong></td> <td>Microsoft超文本模板</td> </tr><tr> <td><strong>.HTX</strong></td> <td>扩展HTML模板</td> </tr><tr> <td><strong>.ICB</strong></td> <td>Targa位图文件</td> </tr><tr> <td><strong>.ICC</strong></td> <td>Kodak打印机格式文件</td> </tr><tr> <td><strong>.ICL</strong></td> <td>图标库文件</td> </tr><tr> <td><strong>.ICM</strong></td> <td>图形颜色匹配配置文件</td> </tr><tr> <td><strong>.ICO</strong></td> <td>Windows图标</td> </tr><tr> <td><strong>.IDD</strong></td> <td>MIDI设备定义</td> </tr><tr> <td><strong>.IDF</strong></td> <td>MIDI设备定义</td> </tr><tr> <td><strong>.IDQ</strong></td> <td>Internet数据查询文件</td> </tr><tr> <td><strong>.IDX</strong></td> <td>数据库索引文件</td> </tr><tr> <td><strong>.IFF</strong></td> <td>交换格式文件</td> </tr><tr> <td><strong>.IGES</strong></td> <td>初始图形交换说明文件</td> </tr><tr> <td><strong>.IGF</strong></td> <td>插入系统元文件</td> </tr><tr> <td><strong>.ILBM</strong></td> <td>位图图形文件</td> </tr><tr> <td><strong>.IMA</strong></td> <td>WinImage磁盘映像文件</td> </tr><tr> <td><strong>.INF</strong></td> <td>信息文件</td> </tr><tr> <td><strong>.INI</strong></td> <td>初始化文件</td> </tr><tr> <td><strong>.INRS</strong></td> <td>INRS远程通信声频</td> </tr><tr> <td><strong>.INS</strong></td> <td>InstallShield安装脚本</td> </tr><tr> <td><strong>.INT</strong></td> <td>中间代码</td> </tr><tr> <td><strong>.IQY</strong></td> <td>Microsoft Internet查询文件</td> </tr><tr> <td><strong>.ISO</strong></td> <td>CD-ROM上的文件</td> </tr><tr> <td><strong>.IST</strong></td> <td>数字跟踪设备文件</td> </tr><tr> <td><strong>.ISU</strong></td> <td>InstallShield卸装脚本</td> </tr><tr> <td><strong>.IWC</strong></td> <td>Install Watch文档</td> </tr><tr> <td><strong>.J62</strong></td> <td>Ricoh照相机格式</td> </tr><tr> <td><strong>.JAR</strong></td> <td>Java档案文件</td> </tr><tr> <td><strong>.JAVA</strong></td> <td>Java源文件</td> </tr><tr> <td><strong>.JBF</strong></td> <td>Paint Shop Pro图像浏览文件</td> </tr><tr> <td><strong>.JFF/.JFIF/.JIF</strong></td> <td>JPEG文件</td> </tr><tr> <td><strong>.JMP</strong></td> <td>SAS的JMPDiscovery表格统计文件</td> </tr><tr> <td><strong>.JPE/.JPEG/.JPG</strong></td> <td>JPEG图形文件</td> </tr><tr> <td><strong>.JS</strong></td> <td>Javascript源文件</td> </tr><tr> <td><strong>.JSP</strong></td> <td>HTML网页</td> </tr><tr> <td><strong>.JTF</strong></td> <td>JPEG位图文件</td> </tr><tr> <td><strong>.K25</strong></td> <td>Kurzweil 2500抽样文件</td> </tr><tr> <td><strong>.KAR</strong></td> <td>卡拉OK MIDI文件</td> </tr><tr> <td><strong>.KDC</strong></td> <td>Kodak光增强器</td> </tr><tr> <td><strong>.KEY</strong></td> <td>DataCAD图标工具条文件</td> </tr><tr> <td><strong>.KFX</strong></td> <td>KoFak Group 4图像文件</td> </tr><tr> <td><strong>.KIZ</strong></td> <td>Kodak数字明信片文件</td> </tr><tr> <td><strong>.KKW</strong></td> <td>RoboHELP帮助工程索引设计器中与主题无关的K开头的所有关键字</td> </tr><tr> <td><strong>.KMP</strong></td> <td>Korg Trinity KeyMap文件</td> </tr><tr> <td><strong>.KQP</strong></td> <td>Konica照相机本地文件</td> </tr><tr> <td><strong>.LAB</strong></td> <td>Visual dBASE标签文件</td> </tr><tr> <td><strong>.LBM</strong></td> <td>Deluxe Paint位图文件</td> </tr><tr> <td><strong>.LBT/.LBX</strong></td> <td>Microsoft FoxPro标签文件</td> </tr><tr> <td><strong>.LDB</strong></td> <td>Microsoft Access加锁文件</td> </tr><tr> <td><strong>.LDL</strong></td> <td>Corel Paradox分发库</td> </tr><tr> <td><strong>.LEG</strong></td> <td>Legacy文档</td> </tr><tr> <td><strong>.LFT</strong></td> <td>3D Studio放样文件</td> </tr><tr> <td><strong>.LGO</strong></td> <td>Paintbrush的徽标文件</td> </tr><tr> <td><strong>.LHA</strong></td> <td>LZH更换文件后缀</td> </tr><tr> <td><strong>.LIB</strong></td> <td>库文件</td> </tr><tr> <td><strong>.LIN</strong></td> <td>DataCAD线型文件</td> </tr><tr> <td><strong>.LIS</strong></td> <td>输出文件</td> </tr><tr> <td><strong>.LLX</strong></td> <td>Laplink交换代理</td> </tr><tr> <td><strong>.LNK</strong></td> <td>Windows快捷方式文件</td> </tr><tr> <td><strong>.LOG</strong></td> <td>日志文件</td> </tr><tr> <td><strong>.LST</strong></td> <td>列表文件</td> </tr><tr> <td><strong>.LU</strong></td> <td>ThoughtWing库单元文件</td> </tr><tr> <td><strong>.LYR</strong></td> <td>DataCAD层文件</td> </tr><tr> <td><strong>.LZH</strong></td> <td>LH ARC压缩档案</td> </tr><tr> <td><strong>.LZS</strong></td> <td>Skyroads数据文件</td> </tr><tr> <td><strong>.M1V</strong></td> <td>MPEG相关文件</td> </tr><tr> <td><strong>.M3U</strong></td> <td>MPEG URL</td> </tr><tr> <td><strong>.MAD</strong></td> <td>Microsoft Access模块文件</td> </tr><tr> <td><strong>.MAF</strong></td> <td>Microsoft Access表单文件</td> </tr><tr> <td><strong>.MAM</strong></td> <td>Microsoft Access宏</td> </tr><tr> <td><strong>.MAP</strong></td> <td>映射文件</td> </tr><tr> <td><strong>.MAQ</strong></td> <td>Microsoft Access查询文件</td> </tr><tr> <td><strong>.MAR</strong></td> <td>Microsoft Access报表文件</td> </tr><tr> <td><strong>.MAT</strong></td> <td>Microsoft Access表</td> </tr><tr> <td><strong>.MB1</strong></td> <td>Apogee Monster Bash数据文件</td> </tr><tr> <td><strong>.MBX</strong></td> <td>Microsoft Outlook保存email格式</td> </tr><tr> <td><strong>.MCR</strong></td> <td>DataCAD键盘宏文件</td> </tr><tr> <td><strong>.MDB</strong></td> <td>Microsoft Access数据库</td> </tr><tr> <td><strong>.MDE</strong></td> <td>Microsoft Access MDE文件</td> </tr><tr> <td><strong>.MDL</strong></td> <td>音乐模块(MOD)文件</td> </tr><tr> <td><strong>.MDN</strong></td> <td>Microsoft Access空数据库模板</td> </tr><tr> <td><strong>.MDW</strong></td> <td>Microsoft Access工作组文件</td> </tr><tr> <td><strong>.MDZ</strong></td> <td>Microsoft Access向导模板文件</td> </tr><tr> <td><strong>.MIC</strong></td> <td>Microsoft Image Composer文件</td> </tr><tr> <td><strong>.MID</strong></td> <td>MIDI音乐</td> </tr><tr> <td><strong>.MIM/.MIME/.MME</strong></td> <td>多用途文件</td> </tr><tr> <td><strong>.MLI</strong></td> <td>3D Studio的材料库格式文件</td> </tr><tr> <td><strong>.MNG</strong></td> <td>多映像网络图形</td> </tr><tr> <td><strong>.MNU</strong></td> <td>菜单文件</td> </tr><tr> <td><strong>.MOD</strong></td> <td>音乐模块文件</td> </tr><tr> <td><strong>.MOV</strong></td> <td>QuickTime电影</td> </tr><tr> <td><strong>.MP2</strong></td> <td>第二层MPEG音频文件</td> </tr><tr> <td><strong>.MP3</strong></td> <td>第三层MPEG音频文件</td> </tr><tr> <td><strong>.MPA</strong></td> <td>MPEG相关文件</td> </tr><tr> <td><strong>.MPE/MPEG/MPG</strong></td> <td>MPEG动画文件</td> </tr><tr> <td><strong>.MPP</strong></td> <td>Microsoft工程文件</td> </tr><tr> <td><strong>.MPR</strong></td> <td>Microsoft FoxPro菜单</td> </tr><tr> <td><strong>.MSG</strong></td> <td>Microsoft邮件消息</td> </tr><tr> <td><strong>.MSI</strong></td> <td>Windows安装文件包</td> </tr><tr> <td><strong>.MSN</strong></td> <td>Microsoft网络文档</td> </tr><tr> <td><strong>.MSP</strong></td> <td>位图文件</td> </tr><tr> <td><strong>.MST</strong></td> <td>Windows安装器传输文件</td> </tr><tr> <td><strong>.MTM</strong></td> <td>Multi跟踪器音乐模块(MOD)文件</td> </tr><tr> <td><strong>.NAN</strong></td> <td>Nanoscope文件</td> </tr><tr> <td><strong>.NAP</strong></td> <td>NAP元文件</td> </tr><tr> <td><strong>.NCB</strong></td> <td>Microsoft Developer Studio文件</td> </tr><tr> <td><strong>.NCD</strong></td> <td>Norton改变目录</td> </tr><tr> <td><strong>.NCF</strong></td> <td>NetWare命令文件</td> </tr><tr> <td><strong>.NFF</strong></td> <td>中性文件格式</td> </tr><tr> <td><strong>.NFT</strong></td> <td>NetObject Fusion模板文件</td> </tr><tr> <td><strong>.NIL</strong></td> <td>Norton光标库文件</td> </tr><tr> <td><strong>.NIST</strong></td> <td>NIST Sphere声音</td> </tr><tr> <td><strong>.NLS</strong></td> <td>国家语言支持文件</td> </tr><tr> <td><strong>.NLU</strong></td> <td>Norton Live Update e-mail触发器文件</td> </tr><tr> <td><strong>.NTX</strong></td> <td>CA-Clipper索引文件</td> </tr><tr> <td><strong>.NWC</strong></td> <td>Noteworthy Composer歌曲文件</td> </tr><tr> <td><strong>.NWS</strong></td> <td>Microsoft Outlook Express新闻消息</td> </tr><tr> <td><strong>.OBJ</strong></td> <td>对象文件</td> </tr><tr> <td><strong>.OCX</strong></td> <td>Microsoft对象链接与嵌入定制控件</td> </tr><tr> <td><strong>.ODS</strong></td> <td>Microsoft Outlook Express邮箱文件</td> </tr><tr> <td><strong>.OFN</strong></td> <td>Microsoft Office FileNew文件</td> </tr><tr> <td><strong>.OFT</strong></td> <td>Microsoft Outlook模板</td> </tr><tr> <td><strong>.OLB</strong></td> <td>OLE对象库</td> </tr><tr> <td><strong>.OLE</strong></td> <td>OLE对象</td> </tr><tr> <td><strong>.OOGL</strong></td> <td>面向对象图形库</td> </tr><tr> <td><strong>.OPO</strong></td> <td>OPL输出可执行文件</td> </tr><tr> <td><strong>.P65</strong></td> <td>PageMaker 6.5文件</td> </tr><tr> <td><strong>.PAB</strong></td> <td>Microsoft个人地址簿</td> </tr><tr> <td><strong>.PART</strong></td> <td>Go!Zilla部分下载文件</td> </tr><tr> <td><strong>.PAS</strong></td> <td>Pascal源代码</td> </tr><tr> <td><strong>.PY</strong></td> <td>Python源代码</td> </tr><tr> <td><strong>.PYC</strong></td> <td>Python字节码文件</td> </tr><tr> <td><strong>.PYW</strong></td> <td>Python图形窗口文件</td> </tr><tr> <td><strong>.PBD</strong></td> <td>PowerBuilder动态库</td> </tr><tr> <td><strong>.PBL</strong></td> <td>PowerBuilder动态库</td> </tr><tr> <td><strong>.PBM</strong></td> <td>可导出位图</td> </tr><tr> <td><strong>.PBR</strong></td> <td>PowerBuilder资源</td> </tr><tr> <td><strong>.PCD</strong></td> <td>Kodak Photo-CD映像</td> </tr><tr> <td><strong>.PCL</strong></td> <td>打印机控制语言文件</td> </tr><tr> <td><strong>.PCM</strong></td> <td>声音文件格式</td> </tr><tr> <td><strong>.PDD</strong></td> <td>图形图像</td> </tr><tr> <td><strong>.PDF</strong></td> <td>Adobe Acrobat可导出文档格式文件</td> </tr><tr> <td><strong>.PFM</strong></td> <td>打印机字体尺度</td> </tr><tr> <td><strong>.PGL</strong></td> <td>HP绘图仪绘图文件</td> </tr><tr> <td><strong>.PGM</strong></td> <td>可输出灰度图</td> </tr><tr> <td><strong>.PH</strong></td> <td>临时文件</td> </tr><tr> <td><strong>.PHP/PHP3</strong></td> <td>包含有PHP脚本的HTML网页</td> </tr><tr> <td><strong>.PHTML</strong></td> <td>包含有PHP脚本的HTML网页</td> </tr><tr> <td><strong>.PIC</strong></td> <td>位图</td> </tr><tr> <td><strong>.PJX/PJT</strong></td> <td>Microsoft Visual FoxPro工程文件</td> </tr><tr> <td><strong>.PKG</strong></td> <td>应用程序扩展</td> </tr><tr> <td><strong>.PNG</strong></td> <td>位图</td> </tr><tr> <td><strong>.POT</strong></td> <td>Microsoft Powerpoint模块</td> </tr><tr> <td><strong>.PPA</strong></td> <td>Microsoft Powerpoint内插器</td> </tr><tr> <td><strong>.PPF</strong></td> <td>Pinnacle程序文件</td> </tr><tr> <td><strong>.PPM</strong></td> <td>位图文件</td> </tr><tr> <td><strong>.PPS</strong></td> <td>Microsoft Powerpoint幻灯片放映文件</td> </tr><tr> <td><strong>.PPT</strong></td> <td>Microsoft Powerpoint演示文稿</td> </tr><tr> <td><strong>.PRF</strong></td> <td>设置文件</td> </tr><tr> <td><strong>.PRG</strong></td> <td>程序源文件</td> </tr><tr> <td><strong>.PRJ</strong></td> <td>3D Studio工程文件</td> </tr><tr> <td><strong>.PRN</strong></td> <td>打印表格</td> </tr><tr> <td><strong>.PRT</strong></td> <td>打印格式化文件</td> </tr><tr> <td><strong>.PSD</strong></td> <td>Adobe photoshop位图文件</td> </tr><tr> <td><strong>.PSP</strong></td> <td>Paint Shop Pro图像文件</td> </tr><tr> <td><strong>.PST</strong></td> <td>Microsoft Outlook个人文件夹文件</td> </tr><tr> <td><strong>.PWZ</strong></td> <td>Microsoft Powerpoint向导</td> </tr><tr> <td><strong>.QIC</strong></td> <td>Microsoft备份文件</td> </tr><tr> <td><strong>.QIF</strong></td> <td>图像文件</td> </tr><tr> <td><strong>.QLB</strong></td> <td>Quick库</td> </tr><tr> <td><strong>.QRY</strong></td> <td>Microsoft查询文件</td> </tr><tr> <td><strong>.QTP</strong></td> <td>QuickTime优先文件</td> </tr><tr> <td><strong>.QTX</strong></td> <td>QuickTime相关图像</td> </tr><tr> <td><strong>.RA</strong></td> <td>RealAudio声音文件</td> </tr><tr> <td><strong>.RAM</strong></td> <td>RealAudio元文件</td> </tr><tr> <td><strong>.RAR</strong></td> <td>RAR压缩档案(Eugene Roshall格式)</td> </tr><tr> <td><strong>.RDF</strong></td> <td>资源描述框架文件(涉及XML和元数据)</td> </tr><tr> <td><strong>.REG</strong></td> <td>注册表文件</td> </tr><tr> <td><strong>.REP</strong></td> <td>Visual dBASE报表文件</td> </tr><tr> <td><strong>.RES</strong></td> <td>Microsoft Visual C++资源文件</td> </tr><tr> <td><strong>.RFT</strong></td> <td>可修订的表单文本(IBM的DCA一部分或文档内容框架结构一部分)</td> </tr><tr> <td><strong>.RGB/.SGI</strong></td> <td>Silicon图形RGB文件</td> </tr><tr> <td><strong>.RM</strong></td> <td>RealAudio视频文件</td> </tr><tr> <td><strong>.RMD</strong></td> <td>Microsoft RegMaid文档</td> </tr><tr> <td><strong>.RPT</strong></td> <td>Microsoft Visual Basic Crystal报表文件</td> </tr><tr> <td><strong>.RTF</strong></td> <td>Rich Text格式文档</td> </tr><tr> <td><strong>.RUL</strong></td> <td>InstallShield使用的扩展名</td> </tr><tr> <td><strong>.RVP</strong></td> <td>Microsoft Scan配置文件(MIME)</td> </tr><tr> <td><strong>.S</strong></td> <td>汇编源代码文件</td> </tr><tr> <td><strong>.SAV</strong></td> <td>游戏保存文件</td> </tr><tr> <td><strong>.SBL</strong></td> <td>Shockwave Flash对象文件</td> </tr><tr> <td><strong>.SCC</strong></td> <td>Microsoft Source Safe文件</td> </tr><tr> <td><strong>.SCF</strong></td> <td>Windows Explorer命令文件</td> </tr><tr> <td><strong>.SCP</strong></td> <td>拨号网络脚本文件</td> </tr><tr> <td><strong>.SCR</strong></td> <td>Windows屏幕保护;传真图像;脚本文件</td> </tr><tr> <td><strong>.SCT</strong></td> <td>SAS目录(DOS);Scitex CT位图;Microsoft FoxPro表单</td> </tr><tr> <td><strong>.SCX</strong></td> <td>Microsoft FoxPro表单文件</td> </tr><tr> <td><strong>.SDT</strong></td> <td>SmartDraw模板</td> </tr><tr> <td><strong>.SDV</strong></td> <td>分号分隔的值文件</td> </tr><tr> <td><strong>.SDX</strong></td> <td>由SDX压缩的MIDI抽样转储标准文件</td> </tr><tr> <td><strong>.SEP</strong></td> <td>标签图像文件格式(TIFF)位图</td> </tr><tr> <td><strong>.SFD</strong></td> <td>SoundStage声音文件数据</td> </tr><tr> <td><strong>.SFI</strong></td> <td>Sound Stage声音文件信息</td> </tr><tr> <td><strong>.SFR</strong></td> <td>Sonic Foundry Sample资源</td> </tr><tr> <td><strong>.SFX</strong></td> <td>RAR自解压文件</td> </tr><tr> <td><strong>.SGML</strong></td> <td>标准通用标签语言</td> </tr><tr> <td><strong>.SHG</strong></td> <td>热点位图</td> </tr><tr> <td><strong>.SHTML</strong></td> <td>含有服务器端包括(SSI)的HTML文件</td> </tr><tr> <td><strong>.SHW</strong></td> <td>Corel Show演示文稿</td> </tr><tr> <td><strong>.SIG</strong></td> <td>符号文件</td> </tr><tr> <td><strong>.SKA</strong></td> <td>PGP秘钥</td> </tr><tr> <td><strong>.SKL</strong></td> <td>Macromedia导演者资源文件</td> </tr><tr> <td><strong>.SL</strong></td> <td>PACT的保存布局扩展名</td> </tr><tr> <td><strong>.SO</strong></td> <td>Linux的共享库</td> </tr><tr> <td><strong>.SPL</strong></td> <td>Shockwave Flash对象;DigiTrakker抽样</td> </tr><tr> <td><strong>.SQC</strong></td> <td>结构化查询语言(SQR)普通代码文件</td> </tr><tr> <td><strong>.SQR</strong></td> <td>结构化查询语言(SQR)程序文件</td> </tr><tr> <td><strong>.STR</strong></td> <td>屏幕保护程序文件</td> </tr><tr> <td><strong>.SWA</strong></td> <td>在Macromedia导演文件(MP3文件)中的Shockwave声音文件</td> </tr><tr> <td><strong>.SWF</strong></td> <td>Shockwave Flash对象</td> </tr><tr> <td><strong>.SYS</strong></td> <td>系统文件</td> </tr><tr> <td><strong>.SYW</strong></td> <td>Yamaha SY系列波形文件</td> </tr><tr> <td><strong>.TAZ</strong></td> <td>UNIX gzip/tape档案</td> </tr><tr> <td><strong>.TGA</strong></td> <td>Targa位图</td> </tr><tr> <td><strong>.THEME</strong></td> <td>Windows桌面主题文件</td> </tr><tr> <td><strong>.THN</strong></td> <td>Graphics WorkShop for Windows速写</td> </tr><tr> <td><strong>.TIF/.TIFF</strong></td> <td>标签图像文件格式(TIFF)位图</td> </tr><tr> <td><strong>.TIG</strong></td> <td>虎形文件,美国政府用于分发地图</td> </tr><tr> <td><strong>.TLB</strong></td> <td>OLE类型库</td> </tr><tr> <td><strong>.TMP</strong></td> <td>Windows临时文件</td> </tr><tr> <td><strong>.TOL</strong></td> <td>Kodak照片增强器</td> </tr><tr> <td><strong>.TPL</strong></td> <td>CakeWalk声音模板文件;DataCAD模板文件</td> </tr><tr> <td><strong>.TRM</strong></td> <td>终端文件</td> </tr><tr> <td><strong>.TRN</strong></td> <td>MKS源完整性工程用法日志文件</td> </tr><tr> <td><strong>.TTF</strong></td> <td>TrueType字体文件</td> </tr><tr> <td><strong>.TXT</strong></td> <td>ASCⅡ文本格式的声音数据</td> </tr><tr> <td><strong>.TXW</strong></td> <td>Yamaha TX16W波形文件</td> </tr><tr> <td><strong>.UDF</strong></td> <td>Windows NT/2000唯一性数据库文件</td> </tr><tr> <td><strong>.ULT</strong></td> <td>Ultra Tracker音乐模块(MOD)文件</td> </tr><tr> <td><strong>.URL</strong></td> <td>Internet快捷方式文件</td> </tr><tr> <td><strong>.USE</strong></td> <td>MKS源完整性文件</td> </tr><tr> <td><strong>.UWF</strong></td> <td>Ultra racker波形文件</td> </tr><tr> <td><strong>.VBP</strong></td> <td>Microsoft Visual Basic工程文件</td> </tr><tr> <td><strong>.VBS</strong></td> <td>Microsoft Visual Basic脚本语言</td> </tr><tr> <td><strong>.VBW</strong></td> <td>Microsoft Visual Basic工作区文件</td> </tr><tr> <td><strong>.VBX</strong></td> <td>Microsoft Visual Basic用户定制控件</td> </tr><tr> <td><strong>.VCT/.VCX</strong></td> <td>Microsoft FoxPro类库</td> </tr><tr> <td><strong>.VDA</strong></td> <td>Targa位图</td> </tr><tr> <td><strong>.VIR</strong></td> <td>Norton Anti-Virus或其他杀毒产品用于标识被病毒感染的文件</td> </tr><tr> <td><strong>.VIV</strong></td> <td>VivoActive Player流视频文件</td> </tr><tr> <td><strong>.VSD</strong></td> <td>Visio绘画文件(流程图或图解)</td> </tr><tr> <td><strong>.VSL</strong></td> <td>下载列表文件(GetRight)</td> </tr><tr> <td><strong>.VSS</strong></td> <td>Visio模板文件</td> </tr><tr> <td><strong>.VST</strong></td> <td>Targa位图</td> </tr><tr> <td><strong>.VSW</strong></td> <td>Visio工作区文件</td> </tr><tr> <td><strong>.VXD</strong></td> <td>Microsoft Windows虚拟设备驱动程序</td> </tr><tr> <td><strong>.VQF</strong></td> <td>Yamaha Sound-VQ文件(可能出现标准)</td> </tr><tr> <td><strong>.W3L</strong></td> <td>W3Launch文件</td> </tr><tr> <td><strong>.WAB</strong></td> <td>Microsoft Outlook文件</td> </tr><tr> <td><strong>.WAD</strong></td> <td>包含有视频、玩家水平和其他信息的DOOM游戏的大文件</td> </tr><tr> <td><strong>.WAV</strong></td> <td>Windows波形声形</td> </tr><tr> <td><strong>.WBK</strong></td> <td>Microsoft Word备份文件</td> </tr><tr> <td><strong>.WCM</strong></td> <td>WordPerfect宏</td> </tr><tr> <td><strong>.WDB</strong></td> <td>Microsoft Works数据库</td> </tr><tr> <td><strong>.WFM</strong></td> <td>Visual dBASE Windows表单</td> </tr><tr> <td><strong>.WFN</strong></td> <td>在CorelDRAW中使用的符号</td> </tr><tr> <td><strong>.WIL</strong></td> <td>WinImage文件</td> </tr><tr> <td><strong>.WIZ</strong></td> <td>Microsoft Word向导</td> </tr><tr> <td><strong>.WLL</strong></td> <td>Microsoft Word内插器</td> </tr><tr> <td><strong>.WMF</strong></td> <td>Windows元文件</td> </tr><tr> <td><strong>.WOW</strong></td> <td>Grave Composer音乐模块(MOD)文件</td> </tr><tr> <td><strong>.WP</strong></td> <td>WordPerfect文档</td> </tr><tr> <td><strong>.WPD</strong></td> <td>WordPerfect文档或演示</td> </tr><tr> <td><strong>.WPF</strong></td> <td>可字处理文档</td> </tr><tr> <td><strong>.WPG</strong></td> <td>WordPerfect图形</td> </tr><tr> <td><strong>.WPS</strong></td> <td>Microsoft Works文档</td> </tr><tr> <td><strong>.WPT</strong></td> <td>WordPerfect模板</td> </tr><tr> <td><strong>.WR1</strong></td> <td>书写器文档</td> </tr><tr> <td><strong>.WRK</strong></td> <td>Cakewalk音乐声音工程文件</td> </tr><tr> <td><strong>.WRL</strong></td> <td>虚拟现实模型</td> </tr><tr> <td><strong>.WRZ</strong></td> <td>VRML文件对象</td> </tr><tr> <td><strong>.X</strong></td> <td>AVS图像格式</td> </tr><tr> <td><strong>.XAR</strong></td> <td>CorelXARA绘画</td> </tr><tr> <td><strong>.XBM</strong></td> <td>MIME“xbitmap”图像</td> </tr><tr> <td><strong>.XI</strong></td> <td>Scream Tracker设备抽样文件</td> </tr><tr> <td><strong>.XLA</strong></td> <td>Microsoft Excel内插器</td> </tr><tr> <td><strong>.XLB</strong></td> <td>Microsoft Excel工具条</td> </tr><tr> <td><strong>.XLC</strong></td> <td>Microsoft Excel图表</td> </tr><tr> <td><strong>.XLD</strong></td> <td>Microsoft Excel对话框</td> </tr><tr> <td><strong>.XLK</strong></td> <td>Microsoft Excel备份</td> </tr><tr> <td><strong>.XLL</strong></td> <td>Microsoft Excel内插器文件</td> </tr><tr> <td><strong>.XLM</strong></td> <td>Microsoft Excel宏</td> </tr><tr> <td><strong>.XLS</strong></td> <td>Microsoft Excel工作单</td> </tr><tr> <td><strong>.XLT</strong></td> <td>Microsoft Excel模板</td> </tr><tr> <td><strong>.XLV</strong></td> <td>Microsoft Excel VBA模块</td> </tr><tr> <td><strong>.XLW</strong></td> <td>Microsoft Excel工作簿/工作区</td> </tr><tr> <td><strong>.XNK</strong></td> <td>Microsoft Exchange快捷方式文件</td> </tr><tr> <td><strong>.XPM</strong></td> <td>X位图格式</td> </tr><tr> <td><strong>.XWD</strong></td> <td>X Windows转储格式</td> </tr><tr> <td><strong>.XWF</strong></td> <td>Yamaha XG Works文件(MIDI序列)</td> </tr><tr> <td><strong>.X16</strong></td> <td>宏媒体扩展(程序扩展),16位</td> </tr><tr> <td><strong>.X32</strong></td> <td>宏媒体扩展(程序扩展),32位</td> </tr><tr> <td><strong>.YAL</strong></td> <td>Arts&amp; Letters剪贴艺术库</td> </tr><tr> <td><strong>.Z</strong></td> <td>UNIX gzip文件</td> </tr><tr> <td><strong>.ZAP</strong></td> <td>Windows软件安装配置文件</td> </tr><tr> <td><strong>.ZIP</strong></td> <td>Zip文件</td> </tr></tbody> </table> <script> const extensions = [ { ext: ".A", desc: "对象代码库文件" }, { ext: ".AAM", desc: "Authorware shocked文件" }, { ext: ".AAS", desc: "Authorware shocked包" }, { ext: ".ABF", desc: "Adobe二进制屏幕字体" }, { ext: ".ABK", desc: "CorelDRAW自动备份文件" }, { ext: ".ABS", desc: "摘要文件" }, { ext: ".ACE", desc: "Ace压缩文件格式文件" }, { ext: ".ACM", desc: "Windows系统目录文件" }, { ext: ".ACP", desc: "Microsoft Office助手预览文件" }, { ext: ".ACT", desc: "Microsoft Office助手文件" }, { ext: ".AD", desc: "After Dark屏幕保护程序" }, { ext: ".ADA", desc: "Ada源文件(非-GNAT)" }, { ext: ".ADB", desc: "Ada源文件主体(GNAT);HP100LX组织者的约定数据库" }, { ext: ".ADF", desc: "Amiga磁盘文件" }, { ext: ".ADI", desc: "AutoCAD设备无关二进制绘图仪格式" }, { ext: ".ADM", desc: "After Dark多模块屏幕保护;Windows NT策略模板" }, { ext: ".ADP", desc: "FaxWork传真调制解调器交互安装文件;Astound Dynamite文件" }, { ext: ".ADR", desc: "After Dark随机屏幕保护;Smart Address的地址簿" }, { ext: ".ADS", desc: "Ada源文件说明书(GNAT)" }, { ext: ".AFM", desc: "Adobe的字体尺度" }, { ext: ".AF2/.AF3", desc: "ABC的FlowChat文件" }, { ext: ".AI", desc: "Adobe Illustrator格式图形" }, { ext: ".AIF/.AIFF", desc: "音频互交换文件" }, { ext: ".AIFC", desc: "压缩AIF文件" }, { ext: ".AIM", desc: "AOL即时信息传送文件" }, { ext: ".AIS", desc: "ACDSee图形序列文件;Velvet Studio设备文件" }, { ext: ".AKW", desc: "RoboHELP的帮助工程中所有A-关键词" }, { ext: ".ALB", desc: "JASC Image Commander相册文件" }, { ext: ".ALL", desc: "艺术与书信库文件" }, { ext: ".AMS", desc: "Velvet Studio音乐模块(MOD)文件;Extreme的Tracker模块文件" }, { ext: ".ANC", desc: "Canon Computer调色板文件" }, { ext: ".ANI", desc: "Windows动画光标文件" }, { ext: ".ANS", desc: "ANSI文本文件" }, { ext: ".ANT", desc: "SimAnt For Windows 保存的游戏文件" }, { ext: ".API", desc: "Adobe Acrobat使用的应用程序设计接口文件" }, { ext: ".APS", desc: "Microsoft Visual C++文件" }, { ext: ".APK", desc: "安卓安装包文件" }, { ext: ".ARI", desc: "Aristotle声音文件" }, { ext: ".ARJ", desc: "Robert Jung ARJ压缩包文件" }, { ext: ".ART", desc: "Xara Studio绘画文件" }, { ext: ".ASA", desc: "Microsoft Visual InterDev文件" }, { ext: ".ASC", desc: "ASCⅡ文本文件;PGP算法加密文件" }, { ext: ".ASD", desc: "Microsoft Word自动保存文件" }, { ext: ".ASE", desc: "Velvet Studio采样文件" }, { ext: ".ASF", desc: "Microsoft高级流媒体格式文件" }, { ext: ".ASM", desc: "汇编语言源文件,Pro/E装配文件" }, { ext: ".ASO", desc: "Astound Dynamite对象文件" }, { ext: ".ASP", desc: "动态网页文件" }, { ext: ".ASV", desc: "DataCAD自动保存文件" }, { ext: ".ASX", desc: "Cheyenne备份脚本文件" }, { ext: ".ATW", desc: "Any Time Deluxe For Windows个人信息管理员文件" }, { ext: ".AU", desc: "Sun/NeXT/DEC/UNIX声音文件" }, { ext: ".AVB", desc: "Computer Associates Inoculan反病毒软件的病毒感染后文件" }, { ext: ".AVI", desc: "Microsoft Audio Video Interleave电影格式" }, { ext: ".AVR", desc: "Audio Visual Research文件格式文件" }, { ext: ".AVS", desc: "应用程序可视化格式" }, { ext: ".AWD", desc: "FaxVien文档" }, { ext: ".AWR", desc: "Telsis数字储存音频文件扩展名格式文件" }, { ext: ".Axx", desc: "ARJ压缩文件的分包序号文件" }, { ext: ".A3M/.A4M", desc: "Authorware Macintosh未打包文件" }, { ext: ".A4P", desc: "Authorware无运行时间的打包文件" }, { ext: ".A3W/.A4W/.A5W", desc: "未打包的Authorware Windows文件" }, { ext: ".BAK", desc: "备份文件" }, { ext: ".BAS", desc: "BASIC源文件" }, { ext: ".BAT", desc: "批处理文件" }, { ext: ".BDF", desc: "West Point Bridger Designer文件" }, { ext: ".BGL", desc: "Microsoft Flight Simulator视景文件" }, { ext: ".BI", desc: "二进制文件" }, { ext: ".BIF", desc: "Group Wise初始化文件" }, { ext: ".BIN", desc: "二进制文件" }, { ext: ".BK/BK$", desc: "备份版本" }, { ext: ".BKS", desc: "IBM BookManager Read书架文件" }, { ext: ".BMK", desc: "书签文件" }, { ext: ".BMP", desc: "Windows或OS/2位图文件" }, { ext: ".BOOK", desc: "Adobe FrameMaker Book文件" }, { ext: ".BRX", desc: "查看多媒体对象目录的文件" }, { ext: ".BSP", desc: "Quake图形文件" }, { ext: ".BTM", desc: "Norton应用程序使用的批处理文件" }, { ext: ".BUD", desc: "Quicken的备份磁盘" }, { ext: ".BUN", desc: "CakeWalk声音捆绑文件" }, { ext: ".BW", desc: "SGI黑白图像文件" }, { ext: ".BWV", desc: "商业波形文件" }, { ext: ".C", desc: "C代码文件" }, { ext: ".CAB", desc: "Microsoft压缩文件" }, { ext: ".CAD", desc: "Softdek的Drafix CAD文件" }, { ext: ".CAL", desc: "CALS压缩位图文件;日历计划表数据文件" }, { ext: ".CAP", desc: "压缩音乐文件格式" }, { ext: ".CAS", desc: "逗号分开的ASCⅡ文件" }, { ext: ".CB", desc: "Microsoft干净引导文件" }, { ext: ".CC", desc: "Visual dBASE用户自定义类文件" }, { ext: ".CCB", desc: "Visual Basic动态按钮配置文件" }, { ext: ".CCH", desc: "Corel图表文件" }, { ext: ".CCO", desc: "CyberChat数据文件" }, { ext: ".CCT", desc: "Macromedia Director Shockwave投影文件" }, { ext: ".CDA", desc: "CD音频轨道文件" }, { ext: ".CDF", desc: "Microsoft频道定义格式文件" }, { ext: ".CDI", desc: "Philip的高密盘交互格式" }, { ext: ".CDM", desc: "Visual dBASE自定义数据模块文件" }, { ext: ".CDR", desc: "CorelDRAW绘图文件" }, { ext: ".CDT", desc: "CorelDRAW模板文件" }, { ext: ".CDX", desc: "CorelDRAW压缩绘图文件" }, { ext: ".CFG", desc: "配置文件" }, { ext: ".CGI", desc: "公共网关接口脚本文件" }, { ext: ".CGM", desc: "计算机图形元文件" }, { ext: ".CHK", desc: "文件碎片" }, { ext: ".CHM", desc: "编译过的HTML文件" }, { ext: ".CHR", desc: "字符集(字体文件)" }, { ext: ".CIF", desc: "Adaptec CD创建器CD映像文件" }, { ext: ".CIL", desc: "Clip Gallery下载包" }, { ext: ".CLASS", desc: "Java类文件" }, { ext: ".CLL", desc: "Crick Software Clicker文件" }, { ext: ".CLP", desc: "Windows剪贴板文件" }, { ext: ".CLS", desc: "Visual Basic类文件" }, { ext: ".CMF", desc: "Corel元文件" }, { ext: ".CMV", desc: "Corel Move动画文件" }, { ext: ".CMX", desc: "Corel Presentation Exchange图像" }, { ext: ".CNF", desc: "配置文件" }, { ext: ".CNM", desc: "Windows应用程序菜单选项和安装文件" }, { ext: ".CNT", desc: "内容文件" }, { ext: ".COD", desc: "可显示机器码/汇编代码文件" }, { ext: ".COM", desc: "命令文件(程序)" }, { ext: ".CPL", desc: "控制面板扩展名,Corel颜色板" }, { ext: ".CPO", desc: "Corel打印存储文件" }, { ext: ".CPP", desc: "C++代码文件" }, { ext: ".CPR", desc: "Corel提供说明书文件" }, { ext: ".CPT", desc: "Corel照片-绘画图像" }, { ext: ".CPX", desc: "Corel Presentation Exchange压缩图形文件" }, { ext: ".CRD", desc: "Windows Cardfile文件" }, { ext: ".CRP", desc: "Corel提供的运行时介绍文件" }, { ext: ".CRT", desc: "认证文件" }, { ext: ".CSC", desc: "Corel脚本文件" }, { ext: ".CSP", desc: "PC Emcee On_Screen图像文件" }, { ext: ".CST", desc: "Macromedia Director Cast文件" }, { ext: ".CSV", desc: "逗号分隔的值文件" }, { ext: ".CTL", desc: "包含控件信息的文件" }, { ext: ".CUR", desc: "Windows光标文件" }, { ext: ".CV", desc: "Corel版本的档案文件" }, { ext: ".CXX", desc: "C++源代码文件" }, { ext: ".DAT", desc: "数据文件" }, { ext: ".DB", desc: "Borland的Paradox 7表文件" }, { ext: ".DBC", desc: "Microsoft Visual FoxPro数据库容器文件" }, { ext: ".DBF", desc: "dBASE文件" }, { ext: ".DBX", desc: "DataBearn图像" }, { ext: ".DCM", desc: "DCM模块格式文件" }, { ext: ".DCS", desc: "桌面颜色分隔文件" }, { ext: ".DCT", desc: "Microsoft Visual FoxPro数据库容器" }, { ext: ".DCU", desc: "Delphi编译单元文件" }, { ext: ".DCX", desc: "Microsoft Visual FoxPro数据库容器" }, { ext: ".DEM", desc: "数字高度模型文件" }, { ext: ".DER", desc: "认证文件" }, { ext: ".DEWF", desc: "Macintosh Sound Cap/Sound Edit录音设备格式文件" }, { ext: ".DIB", desc: "设备无关位图文件" }, { ext: ".DIC", desc: "目录文件" }, { ext: ".DIF", desc: "电子表格文件" }, { ext: ".DIG", desc: "DigiLink格式;Sound DesignerⅠ音频文件" }, { ext: ".DIR", desc: "Macromedia Director文件" }, { ext: ".DIZ", desc: "描述文件" }, { ext: ".DLG", desc: "C++对话框脚本文件" }, { ext: ".DLL", desc: "动态链接库" }, { ext: ".DLS", desc: "可下载声音文件" }, { ext: ".DMD", desc: "Visual dBASE数据模块文件" }, { ext: ".DMF", desc: "X-Trakker音乐模块(MOD)文件" }, { ext: ".DOC", desc: "Word文档" }, { ext: ".DOT", desc: "Microsoft Word文档模板" }, { ext: ".DRAW", desc: "Acorn的基于对象的矢量图像文件" }, { ext: ".DRV", desc: "驱动程序文件" }, { ext: ".DRW", desc: "Micrografx Designer/Draw;Pro/E绘画文件" }, { ext: ".DSF", desc: "Micrografx Designer VFX文件" }, { ext: ".DSG", desc: "DOOM保存的文件" }, { ext: ".DSM", desc: "Dynamic Studio音乐模块(MOD)文件" }, { ext: ".DSP", desc: "Microsoft Developer Studio工程文件" }, { ext: ".DSQ", desc: "Corel QUERY(查询)文件" }, { ext: ".DSW", desc: "Microsoft Developer Studio工作区文件" }, { ext: ".DTD", desc: "SGML文档类型定义(DTD)文件" }, { ext: ".DUN", desc: "Microsoft拔号网络导出文件" }, { ext: ".DV", desc: "数字视频文件(MIME)" }, { ext: ".DXF", desc: "绘图文件格式" }, { ext: ".DXR", desc: "Macromedia Director受保护电影文件" }, { ext: ".EDA", desc: "Ensoniq ASR磁盘映像" }, { ext: ".EDD", desc: "元素定义文档" }, { ext: ".EMD", desc: "ABT扩展模块" }, { ext: ".EMF", desc: "Windows增强元文件" }, { ext: ".EML", desc: "Microsoft Outlook Express邮件消息文件" }, { ext: ".EPHTML", desc: "Perl解释增强HTML文件" }, { ext: ".EPS", desc: "压缩的PostScript图像" }, { ext: ".EXE", desc: "可执行文件(程序)" }, { ext: ".FAV", desc: "Microsoft Outlook导航条" }, { ext: ".FAX", desc: "传真类型图像" }, { ext: ".FCD", desc: "虚拟CD-ROM" }, { ext: ".FDF", desc: "Adobe Acrobat表单文档文件" }, { ext: ".FFA/FFL/FFO/FFK", desc: "Microsoft快速查找文件" }, { ext: ".FIF", desc: "Fractal图像文件" }, { ext: ".FLA", desc: "Macromedia Flash电影文件" }, { ext: ".FLC", desc: "Autodesk FLIC动画文件" }, { ext: ".FM", desc: "Adobe FrameMaker文档文件" }, { ext: ".FML", desc: "文件镜象列表" }, { ext: ".FNG", desc: "字体组文件" }, { ext: ".FNK", desc: "Funk Tracker模块格式" }, { ext: ".FON", desc: "系统字体文件" }, { ext: ".FOT", desc: "字体相关文件" }, { ext: ".FRT", desc: "Microsoft FoxPro报表文件" }, { ext: ".FRX", desc: "Visual Basic表单文本" }, { ext: ".FTG", desc: "全文本搜索组文件" }, { ext: ".FTS", desc: "全文本搜索引文件" }, { ext: ".GAL", desc: "Corel多媒体管理器相集文件" }, { ext: ".GDB", desc: "InterBase数据库文件" }, { ext: ".GDM", desc: "铃声、口哨声和声音板模块格式" }, { ext: ".GEM", desc: "GEM元文件" }, { ext: ".GEN", desc: "Ventura产生的文本文件" }, { ext: ".GetRight", desc: "GetRight未完成的下载文件" }, { ext: ".GFI/GFX", desc: "Genigraphics图形链接表示文件" }, { ext: ".GHO", desc: "Norton克隆磁盘映像" }, { ext: ".GIF", desc: "CompuServe位图文件" }, { ext: ".GIM/GIX", desc: "Genigraphics图形链接介绍文件" }, { ext: ".GKH", desc: "Ensoniq EPS家簇磁盘映像文件" }, { ext: ".GKS", desc: "Gravis Grip Key文档" }, { ext: ".GL", desc: "动画格式文件" }, { ext: ".GNA", desc: "Genigraphics图形链接介绍文件" }, { ext: ".GNT", desc: "生成的代码文件" }, { ext: ".GNX", desc: "Genigraphics图形链接介绍文件" }, { ext: ".GRA", desc: "Microsoft Graph文件" }, { ext: ".GRF", desc: "Grapher图形文件" }, { ext: ".GRP", desc: "程序管理组文件" }, { ext: ".GO", desc: "Go语言源文件" }, { ext: ".HCOM", desc: "声音工具HCOM格式" }, { ext: ".HGL", desc: "HP图形语言绘图文件" }, { ext: ".HLP", desc: "帮助文件" }, { ext: ".HPJ", desc: "Visual Basic帮助工程" }, { ext: ".HPP", desc: "C++程序头文件" }, { ext: ".HST", desc: "历史文件" }, { ext: ".HT", desc: "HyperTerminal" }, { ext: ".HTM/HTML", desc: "超文本文档" }, { ext: ".HTT", desc: "Microsoft超文本模板" }, { ext: ".HTX", desc: "扩展HTML模板" }, { ext: ".ICB", desc: "Targa位图文件" }, { ext: ".ICC", desc: "Kodak打印机格式文件" }, { ext: ".ICL", desc: "图标库文件" }, { ext: ".ICM", desc: "图形颜色匹配配置文件" }, { ext: ".ICO", desc: "Windows图标" }, { ext: ".IDD", desc: "MIDI设备定义" }, { ext: ".IDF", desc: "MIDI设备定义" }, { ext: ".IDQ", desc: "Internet数据查询文件" }, { ext: ".IDX", desc: "数据库索引文件" }, { ext: ".IFF", desc: "交换格式文件" }, { ext: ".IGES", desc: "初始图形交换说明文件" }, { ext: ".IGF", desc: "插入系统元文件" }, { ext: ".ILBM", desc: "位图图形文件" }, { ext: ".IMA", desc: "WinImage磁盘映像文件" }, { ext: ".INF", desc: "信息文件" }, { ext: ".INI", desc: "初始化文件" }, { ext: ".INRS", desc: "INRS远程通信声频" }, { ext: ".INS", desc: "InstallShield安装脚本" }, { ext: ".INT", desc: "中间代码" }, { ext: ".IQY", desc: "Microsoft Internet查询文件" }, { ext: ".ISO", desc: "CD-ROM上的文件" }, { ext: ".IST", desc: "数字跟踪设备文件" }, { ext: ".ISU", desc: "InstallShield卸装脚本" }, { ext: ".IWC", desc: "Install Watch文档" }, { ext: ".J62", desc: "Ricoh照相机格式" }, { ext: ".JAR", desc: "Java档案文件" }, { ext: ".JAVA", desc: "Java源文件" }, { ext: ".JBF", desc: "Paint Shop Pro图像浏览文件" }, { ext: ".JFF/.JFIF/.JIF", desc: "JPEG文件" }, { ext: ".JMP", desc: "SAS的JMPDiscovery表格统计文件" }, { ext: ".JPE/.JPEG/.JPG", desc: "JPEG图形文件" }, { ext: ".JS", desc: "Javascript源文件" }, { ext: ".JSP", desc: "HTML网页" }, { ext: ".JTF", desc: "JPEG位图文件" }, { ext: ".K25", desc: "Kurzweil 2500抽样文件" }, { ext: ".KAR", desc: "卡拉OK MIDI文件" }, { ext: ".KDC", desc: "Kodak光增强器" }, { ext: ".KEY", desc: "DataCAD图标工具条文件" }, { ext: ".KFX", desc: "KoFak Group 4图像文件" }, { ext: ".KIZ", desc: "Kodak数字明信片文件" }, { ext: ".KKW", desc: "RoboHELP帮助工程索引设计器中与主题无关的K开头的所有关键字" }, { ext: ".KMP", desc: "Korg Trinity KeyMap文件" }, { ext: ".KQP", desc: "Konica照相机本地文件" }, { ext: ".LAB", desc: "Visual dBASE标签文件" }, { ext: ".LBM", desc: "Deluxe Paint位图文件" }, { ext: ".LBT/.LBX", desc: "Microsoft FoxPro标签文件" }, { ext: ".LDB", desc: "Microsoft Access加锁文件" }, { ext: ".LDL", desc: "Corel Paradox分发库" }, { ext: ".LEG", desc: "Legacy文档" }, { ext: ".LFT", desc: "3D Studio放样文件" }, { ext: ".LGO", desc: "Paintbrush的徽标文件" }, { ext: ".LHA", desc: "LZH更换文件后缀" }, { ext: ".LIB", desc: "库文件" }, { ext: ".LIN", desc: "DataCAD线型文件" }, { ext: ".LIS", desc: "输出文件" }, { ext: ".LLX", desc: "Laplink交换代理" }, { ext: ".LNK", desc: "Windows快捷方式文件" }, { ext: ".LOG", desc: "日志文件" }, { ext: ".LST", desc: "列表文件" }, { ext: ".LU", desc: "ThoughtWing库单元文件" }, { ext: ".LYR", desc: "DataCAD层文件" }, { ext: ".LZH", desc: "LH ARC压缩档案" }, { ext: ".LZS", desc: "Skyroads数据文件" }, { ext: ".M1V", desc: "MPEG相关文件" }, { ext: ".M3U", desc: "MPEG URL" }, { ext: ".MAD", desc: "Microsoft Access模块文件" }, { ext: ".MAF", desc: "Microsoft Access表单文件" }, { ext: ".MAM", desc: "Microsoft Access宏" }, { ext: ".MAP", desc: "映射文件" }, { ext: ".MAQ", desc: "Microsoft Access查询文件" }, { ext: ".MAR", desc: "Microsoft Access报表文件" }, { ext: ".MAT", desc: "Microsoft Access表" }, { ext: ".MB1", desc: "Apogee Monster Bash数据文件" }, { ext: ".MBX", desc: "Microsoft Outlook保存email格式" }, { ext: ".MCR", desc: "DataCAD键盘宏文件" }, { ext: ".MDB", desc: "Microsoft Access数据库" }, { ext: ".MDE", desc: "Microsoft Access MDE文件" }, { ext: ".MDL", desc: "音乐模块(MOD)文件" }, { ext: ".MDN", desc: "Microsoft Access空数据库模板" }, { ext: ".MDW", desc: "Microsoft Access工作组文件" }, { ext: ".MDZ", desc: "Microsoft Access向导模板文件" }, { ext: ".MIC", desc: "Microsoft Image Composer文件" }, { ext: ".MID", desc: "MIDI音乐" }, { ext: ".MIM/.MIME/.MME", desc: "多用途文件" }, { ext: ".MLI", desc: "3D Studio的材料库格式文件" }, { ext: ".MNG", desc: "多映像网络图形" }, { ext: ".MNU", desc: "菜单文件" }, { ext: ".MOD", desc: "音乐模块文件" }, { ext: ".MOV", desc: "QuickTime电影" }, { ext: ".MP2", desc: "第二层MPEG音频文件" }, { ext: ".MP3", desc: "第三层MPEG音频文件" }, { ext: ".MPA", desc: "MPEG相关文件" }, { ext: ".MPE/MPEG/MPG", desc: "MPEG动画文件"}, { ext: ".MPP", desc: "Microsoft工程文件"}, { ext: ".MPR", desc: "Microsoft FoxPro菜单" }, { ext: ".MSG", desc: "Microsoft邮件消息" }, { ext: ".MSI", desc: "Windows安装文件包" }, { ext: ".MSN", desc: "Microsoft网络文档" }, { ext: ".MSP", desc: "位图文件" }, { ext: ".MST", desc: "Windows安装器传输文件" }, { ext: ".MTM", desc: "Multi跟踪器音乐模块(MOD)文件" }, { ext: ".NAN", desc: "Nanoscope文件" }, { ext: ".NAP", desc: "NAP元文件" }, { ext: ".NCB", desc: "Microsoft Developer Studio文件" }, { ext: ".NCD", desc: "Norton改变目录" }, { ext: ".NCF", desc: "NetWare命令文件" }, { ext: ".NFF", desc: "中性文件格式" }, { ext: ".NFT", desc: "NetObject Fusion模板文件" }, { ext: ".NIL", desc: "Norton光标库文件" }, { ext: ".NIST", desc: "NIST Sphere声音" }, { ext: ".NLS", desc: "国家语言支持文件" }, { ext: ".NLU", desc: "Norton Live Update e-mail触发器文件" }, { ext: ".NTX", desc: "CA-Clipper索引文件" }, { ext: ".NWC", desc: "Noteworthy Composer歌曲文件" }, { ext: ".NWS", desc: "Microsoft Outlook Express新闻消息" }, { ext: ".OBJ", desc: "对象文件" }, { ext: ".OCX", desc: "Microsoft对象链接与嵌入定制控件" }, { ext: ".ODS", desc: "Microsoft Outlook Express邮箱文件" }, { ext: ".OFN", desc: "Microsoft Office FileNew文件" }, { ext: ".OFT", desc: "Microsoft Outlook模板" }, { ext: ".OLB", desc: "OLE对象库" }, { ext: ".OLE", desc: "OLE对象" }, { ext: ".OOGL", desc: "面向对象图形库" }, { ext: ".OPO", desc: "OPL输出可执行文件" }, { ext: ".P65", desc: "PageMaker 6.5文件" }, { ext: ".PAB", desc: "Microsoft个人地址簿" }, { ext: ".PART", desc: "Go!Zilla部分下载文件" }, { ext: ".PAS", desc: "Pascal源代码" }, { ext: ".PY", desc: "Python源代码" }, { ext: ".PYC", desc: "Python字节码文件" }, { ext: ".PYW", desc: "Python图形窗口文件" }, { ext: ".PBD", desc: "PowerBuilder动态库" }, { ext: ".PBL", desc: "PowerBuilder动态库" }, { ext: ".PBM", desc: "可导出位图" }, { ext: ".PBR", desc: "PowerBuilder资源" }, { ext: ".PCD", desc: "Kodak Photo-CD映像" }, { ext: ".PCL", desc: "打印机控制语言文件" }, { ext: ".PCM", desc: "声音文件格式" }, { ext: ".PDD", desc: "图形图像" }, { ext: ".PDF", desc: "Adobe Acrobat可导出文档格式文件" }, { ext: ".PFM", desc: "打印机字体尺度" }, { ext: ".PGL", desc: "HP绘图仪绘图文件" }, { ext: ".PGM", desc: "可输出灰度图" }, { ext: ".PH", desc: "临时文件" }, { ext: ".PHP/PHP3", desc: "包含有PHP脚本的HTML网页" }, { ext: ".PHTML", desc: "包含有PHP脚本的HTML网页" }, { ext: ".PIC", desc: "位图" }, { ext: ".PJX/PJT", desc: "Microsoft Visual FoxPro工程文件" }, { ext: ".PKG", desc: "应用程序扩展" }, { ext: ".PNG", desc: "位图" }, { ext: ".POT", desc: "Microsoft Powerpoint模块" }, { ext: ".PPA", desc: "Microsoft Powerpoint内插器" }, { ext: ".PPF", desc: "Pinnacle程序文件" }, { ext: ".PPM", desc: "位图文件" }, { ext: ".PPS", desc: "Microsoft Powerpoint幻灯片放映文件" }, { ext: ".PPT", desc: "Microsoft Powerpoint演示文稿" }, { ext: ".PRF", desc: "设置文件" }, { ext: ".PRG", desc: "程序源文件" }, { ext: ".PRJ", desc: "3D Studio工程文件" }, { ext: ".PRN", desc: "打印表格" }, { ext: ".PRT", desc: "打印格式化文件" }, { ext: ".PSD", desc: "Adobe photoshop位图文件" }, { ext: ".PSP", desc: "Paint Shop Pro图像文件" }, { ext: ".PST", desc: "Microsoft Outlook个人文件夹文件" }, { ext: ".PWZ", desc: "Microsoft Powerpoint向导" }, { ext: ".QIC", desc: "Microsoft备份文件" }, { ext: ".QIF", desc: "图像文件" }, { ext: ".QLB", desc: "Quick库" }, { ext: ".QRY", desc: "Microsoft查询文件" }, { ext: ".QTP", desc: "QuickTime优先文件" }, { ext: ".QTX", desc: "QuickTime相关图像" }, { ext: ".RA", desc: "RealAudio声音文件" }, { ext: ".RAM", desc: "RealAudio元文件" }, { ext: ".RAR", desc: "RAR压缩档案(Eugene Roshall格式)" }, { ext: ".RDF", desc: "资源描述框架文件(涉及XML和元数据)" }, { ext: ".REG", desc: "注册表文件" }, { ext: ".REP", desc: "Visual dBASE报表文件" }, { ext: ".RES", desc: "Microsoft Visual C++资源文件" }, { ext: ".RFT", desc: "可修订的表单文本(IBM的DCA一部分或文档内容框架结构一部分)" }, { ext: ".RGB/.SGI", desc: "Silicon图形RGB文件" }, { ext: ".RM", desc: "RealAudio视频文件" }, { ext: ".RMD", desc: "Microsoft RegMaid文档" }, { ext: ".RPT", desc: "Microsoft Visual Basic Crystal报表文件" }, { ext: ".RTF", desc: "Rich Text格式文档" }, { ext: ".RUL", desc: "InstallShield使用的扩展名" }, { ext: ".RVP", desc: "Microsoft Scan配置文件(MIME)" }, { ext: ".S", desc: "汇编源代码文件" }, { ext: ".SAV", desc: "游戏保存文件" }, { ext: ".SBL", desc: "Shockwave Flash对象文件" }, { ext: ".SCC", desc: "Microsoft Source Safe文件" }, { ext: ".SCF", desc: "Windows Explorer命令文件" }, { ext: ".SCP", desc: "拨号网络脚本文件" }, { ext: ".SCR", desc: "Windows屏幕保护;传真图像;脚本文件" }, { ext: ".SCT", desc: "SAS目录(DOS);Scitex CT位图;Microsoft FoxPro表单" }, { ext: ".SCX", desc: "Microsoft FoxPro表单文件" }, { ext: ".SDT", desc: "SmartDraw模板" }, { ext: ".SDV", desc: "分号分隔的值文件" }, { ext: ".SDX", desc: "由SDX压缩的MIDI抽样转储标准文件" }, { ext: ".SEP", desc: "标签图像文件格式(TIFF)位图" }, { ext: ".SFD", desc: "SoundStage声音文件数据" }, { ext: ".SFI", desc: "Sound Stage声音文件信息" }, { ext: ".SFR", desc: "Sonic Foundry Sample资源" }, { ext: ".SFX", desc: "RAR自解压文件" }, { ext: ".SGML", desc: "标准通用标签语言" }, { ext: ".SHG", desc: "热点位图" }, { ext: ".SHTML", desc: "含有服务器端包括(SSI)的HTML文件" }, { ext: ".SHW", desc: "Corel Show演示文稿" }, { ext: ".SIG", desc: "符号文件" }, { ext: ".SKA", desc: "PGP秘钥" }, { ext: ".SKL", desc: "Macromedia导演者资源文件" }, { ext: ".SL", desc: "PACT的保存布局扩展名" }, { ext: ".SO", desc: "Linux的共享库" }, { ext: ".SPL", desc: "Shockwave Flash对象;DigiTrakker抽样" }, { ext: ".SQC", desc: "结构化查询语言(SQR)普通代码文件" }, { ext: ".SQR", desc: "结构化查询语言(SQR)程序文件" }, { ext: ".STR", desc: "屏幕保护程序文件" }, { ext: ".SWA", desc: "在Macromedia导演文件(MP3文件)中的Shockwave声音文件" }, { ext: ".SWF", desc: "Shockwave Flash对象" }, { ext: ".SYS", desc: "系统文件" }, { ext: ".SYW", desc: "Yamaha SY系列波形文件" }, { ext: ".TAZ", desc: "UNIX gzip/tape档案" }, { ext: ".TGA", desc: "Targa位图" }, { ext: ".THEME", desc: "Windows桌面主题文件" }, { ext: ".THN", desc: "Graphics WorkShop for Windows速写" }, { ext: ".TIF/.TIFF", desc: "标签图像文件格式(TIFF)位图" }, { ext: ".TIG", desc: "虎形文件,美国政府用于分发地图" }, { ext: ".TLB", desc: "OLE类型库" }, { ext: ".TMP", desc: "Windows临时文件" }, { ext: ".TOL", desc: "Kodak照片增强器" }, { ext: ".TPL", desc: "CakeWalk声音模板文件;DataCAD模板文件" }, { ext: ".TRM", desc: "终端文件" }, { ext: ".TRN", desc: "MKS源完整性工程用法日志文件" }, { ext: ".TTF", desc: "TrueType字体文件" }, { ext: ".TXT", desc: "ASCⅡ文本格式的声音数据" }, { ext: ".TXW", desc: "Yamaha TX16W波形文件" }, { ext: ".UDF", desc: "Windows NT/2000唯一性数据库文件" }, { ext: ".ULT", desc: "Ultra Tracker音乐模块(MOD)文件" }, { ext: ".URL", desc: "Internet快捷方式文件" }, { ext: ".USE", desc: "MKS源完整性文件" }, { ext: ".UWF", desc: "Ultra racker波形文件" }, { ext: ".VBP", desc: "Microsoft Visual Basic工程文件" }, { ext: ".VBS", desc: "Microsoft Visual Basic脚本语言" }, { ext: ".VBW", desc: "Microsoft Visual Basic工作区文件" }, { ext: ".VBX", desc: "Microsoft Visual Basic用户定制控件" }, { ext: ".VCT/.VCX", desc: "Microsoft FoxPro类库" }, { ext: ".VDA", desc: "Targa位图" }, { ext: ".VIR", desc: "Norton Anti-Virus或其他杀毒产品用于标识被病毒感染的文件" }, { ext: ".VIV", desc: "VivoActive Player流视频文件" }, { ext: ".VSD", desc: "Visio绘画文件(流程图或图解)" }, { ext: ".VSL", desc: "下载列表文件(GetRight)" }, { ext: ".VSS", desc: "Visio模板文件" }, { ext: ".VST", desc: "Targa位图" }, { ext: ".VSW", desc: "Visio工作区文件" }, { ext: ".VXD", desc: "Microsoft Windows虚拟设备驱动程序" }, { ext: ".VQF", desc: "Yamaha Sound-VQ文件(可能出现标准)" }, { ext: ".W3L", desc: "W3Launch文件" }, { ext: ".WAB", desc: "Microsoft Outlook文件" }, { ext: ".WAD", desc: "包含有视频、玩家水平和其他信息的DOOM游戏的大文件" }, { ext: ".WAV", desc: "Windows波形声形" }, { ext: ".WBK", desc: "Microsoft Word备份文件" }, { ext: ".WCM", desc: "WordPerfect宏" }, { ext: ".WDB", desc: "Microsoft Works数据库" }, { ext: ".WFM", desc: "Visual dBASE Windows表单" }, { ext: ".WFN", desc: "在CorelDRAW中使用的符号" }, { ext: ".WIL", desc: "WinImage文件" }, { ext: ".WIZ", desc: "Microsoft Word向导" }, { ext: ".WLL", desc: "Microsoft Word内插器" }, { ext: ".WMF", desc: "Windows元文件" }, { ext: ".WOW", desc: "Grave Composer音乐模块(MOD)文件" }, { ext: ".WP", desc: "WordPerfect文档" }, { ext: ".WPD", desc: "WordPerfect文档或演示" }, { ext: ".WPF", desc: "可字处理文档" }, { ext: ".WPG", desc: "WordPerfect图形" }, { ext: ".WPS", desc: "Microsoft Works文档" }, { ext: ".WPT", desc: "WordPerfect模板" }, { ext: ".WR1", desc: "书写器文档" }, { ext: ".WRK", desc: "Cakewalk音乐声音工程文件" }, { ext: ".WRL", desc: "虚拟现实模型" }, { ext: ".WRZ", desc: "VRML文件对象" }, { ext: ".X", desc: "AVS图像格式" }, { ext: ".XAR", desc: "CorelXARA绘画" }, { ext: ".XBM", desc: "MIME“xbitmap”图像" }, { ext: ".XI", desc: "Scream Tracker设备抽样文件" }, { ext: ".XLA", desc: "Microsoft Excel内插器" }, { ext: ".XLB", desc: "Microsoft Excel工具条" }, { ext: ".XLC", desc: "Microsoft Excel图表" }, { ext: ".XLD", desc: "Microsoft Excel对话框" }, { ext: ".XLK", desc: "Microsoft Excel备份" }, { ext: ".XLL", desc: "Microsoft Excel内插器文件" }, { ext: ".XLM", desc: "Microsoft Excel宏" }, { ext: ".XLS", desc: "Microsoft Excel工作单" }, { ext: ".XLT", desc: "Microsoft Excel模板" }, { ext: ".XLV", desc: "Microsoft Excel VBA模块" }, { ext: ".XLW", desc: "Microsoft Excel工作簿/工作区" }, { ext: ".XNK", desc: "Microsoft Exchange快捷方式文件" }, { ext: ".XPM", desc: "X位图格式" }, { ext: ".XWD", desc: "X Windows转储格式" }, { ext: ".XWF", desc: "Yamaha XG Works文件(MIDI序列)" }, { ext: ".X16", desc: "宏媒体扩展(程序扩展),16位" }, { ext: ".X32", desc: "宏媒体扩展(程序扩展),32位" }, { ext: ".YAL", desc: "Arts& Letters剪贴艺术库" }, { ext: ".Z", desc: "UNIX gzip文件" }, { ext: ".ZAP", desc: "Windows软件安装配置文件" }, { ext: ".ZIP", desc: "Zip文件" } ]; function renderTable(data) { const tbody = document.getElementById('tableBody'); tbody.innerHTML = ''; if (data.length === 0) { tbody.innerHTML = '<tr><td colspan="2" class="no-results">未找到匹配的扩展名</td></tr>'; return; } data.forEach(item => { const row = document.createElement('tr'); row.innerHTML = ` <td><strong>${item.ext}</strong></td> <td>${item.desc}</td> `; tbody.appendChild(row); }); } document.getElementById('searchInput').addEventListener('input', function(e) { const keyword = e.target.value.toLowerCase(); const results = extensions.filter(item => item.ext.toLowerCase().includes(keyword) || item.desc.toLowerCase().includes(keyword) ); renderTable(results); }); renderTable(extensions); </script> <footer> <p align="center">Copyright © 2025 NAXCloud. All rights reserved.</p> </footer> </body></html>
2301_76221273/exse
index.html
HTML
apache-2.0
109,719
<!DOCTYPE html> <html> <head> <meta name="keywords" content="心流,人间" /> <meta name="description" content="过度探究精神世界可能带来危险,一旦越过某个实际的界限,人生就可能滑向虚无,因此人们应该热爱某些事物,以便在世间有所牵挂,形成一种拉力,将你留在世界中。"/> <title>《在人间》</title> </head> <body>这种世界只有一种成功,就是能用自己喜欢的方式度过自己的一生。从玄学的角度说,并不是说你想做什么就做什么,而是你知道一切都是剧情的安排,并愿意全然的去接受剧情体验剧情。你不会去抗拒任何一段好或不好的剧情,来什么就体验什么,在体验中保持一份觉知和清醒,尽量做到自己的心不受牵扯,尽量练习和保持内心如如不动的境界。你会越来越发现这个世界就是一场戏,是一个局,我们需要做的就是借假修真无为而为。在这梦幻泡影的人生中,始终保持一种体验和观察,脱离社会惯性和个人习气的活着,最终才能达到无所挂碍的涅槃境界。</body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-26-day01/day01.html
HTML
unknown
1,156
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>周周帅哥6</title> </head> <body> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-26-day01/hello.html
HTML
unknown
268
! <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta name="keywords" content="zzzzzzzz,xxxx"/> <meta name="description" content="zxxxzxzxxzxz" /> <title>daaaaaaaa</title> </head> <body> zzzzzzzzzzzasd </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-26-day01/text.html
HTML
unknown
282
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <meta name="新闻" content="周鑫"/> <meta descriptions="zxzxzx" content="zxxzzx"/> </head> <body> <h1>广袤乡村气象新(坚定信心 开局起步)</h1> <hr> <div>2023年02月19日 08:24 <strong><em><ins>人民日报</ins></em></strong></div> <hr> <div> <p>春回大地,万象更新。</p> <p>黄淮平原,返青期麦苗长势喜人。“今年种了1800亩,一多半是种子粮。天气回暖,管理要跟上,争取每亩再增收50斤。”春日晴好,江苏省徐州市单集镇邢楼村种粮大户潘贵忙着检修机具</p> <p>荆楚大地,农家乐升腾起烟火气。“基础设施短板加快补齐,脱贫村吃上旅游饭,日子越过越红火。”湖北省广水市城郊街道油榨桥村党支部书记尚贞猛说,乡村旅游带动村民持续增收,村集体经济收入增加达80余万元。</p> </div> <div> <h4>粮仓稳,产业兴,农业更加高质高效</h4> <P>中国要强,农业必须强。</P> <p>习近平总书记强调:“保障粮食和重要农产品稳定安全供给始终是建设农业强国的头等大事”“产业振兴是乡村振兴的重中之重”。</p> <p>一粒种,万担粮。入春以来,南繁基地又开始新一轮忙碌。中国农业大学作物育种海南基地,一垄垄玉米长势正旺,科研人员抓紧给玉米套袋、授粉。来自全国数百家农业科研机构的科技人员汇聚三亚,利用海南的光热条件开展南繁科技研究。新中国成立以来育成的农作物新品种,超过70%经历过南繁育种。</p> <p>“我们的番茄卖相好、品质佳,一斤能卖10多元。奥秘就藏在管理中。”在河北省廊坊市安次区现代农业产业示范园里,技术员夏洪涛打开手机上的“大棚云管家”设置温湿度范围,通过棚内环境监测系统和水肥一体化系统,对番茄、豆角等蔬菜进行精准管理。</p> </div> <div> <h4>拓渠道,增内力,农民更加富裕富足</h4> <P>农业农村工作,说一千道一万,增加农民收入是关键。</P> <P>习近平总书记指出:“要坚持把增加农民收入作为‘三农’工作的中心任务,千方百计拓宽农民增收致富渠道。”</P> <p>各地区各部门把促进农民增收摆在重要位置,多措并举,加强帮扶,挖掘潜力。国家统计局统计数据显示,2022年,我国农村居民人均可支配收入达到20133元,首次迈上2万元台阶。城乡居民收入比由上年的2.50降至2.45,城乡居民收入相对差距继续缩小。在去年面对诸多超预期因素冲击的情况下,这份成绩单格外沉甸甸。</p> </div> <br> <br> <p>(本报记者高云才、朱隽、顾仲阳、王浩、常钦、郁静娴、李晓晴、<del>千俞老师</del>)</p> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-27-day02/news.html
HTML
unknown
3,169
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta chaset="UTF-8"/> <meta name="新闻" content="新闻"/> <meta decripton="新闻" content="新闻"/> <title>新闻首页</title> </head> <body> <h2>新闻首页</h2> <dl> <dt><a href="http://www.baidu.com" target="_blank">新闻</a></dt> <dd><a href="http://www.baidu.com" target="_blank">军事</a></dd> <dd><a href="http://www.baidu.com" target="_blank">国内</a></dd> <dd><a href="http://www.baidu.com" target="_blank">国际</a></dd> </dl> <dl> <dt><a href="http://www.baidu.com" target="_blank">财经</a></dt> <dd><a href="#" target="_blank">股票</a></dd> <dd><a href="#" target="_blank">基金</a></dd> <dd><a href="#" target="_blank">外汇</a></dd> </dl> <dl> <dt><a href="http://www.baidu.com" target="_blank">科技</a></dt> <dd><a href="#" target="_blank">手机</a></dd> <dd><a href="#" target="_blank">探索</a></dd> <dd><a href="#" target="_blank">众测</a></dd> </dl> <dl> <dt><a href="http://www.baidu.com" target="_blank">体育</a></dt> <dd><a href="#" target="_blank">NBA</a></dd> <dd><a href="#" target="_blank">英超</a></dd> <dd><a href="#" target="_blank">中超</a></dd> </dl> <P>推荐阅读&gt;&gt;<a href="./news2.html" target="_blank">大数据看奋进的中国节奏</a></P> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-27-day02/news2/index.html
HTML
unknown
1,613
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta name="大数据" content="大数据"/> <meta description="大数据" content="大数据"/> <title>新闻详情</title> </head> <body> <h1>大数据看奋进的中国节奏</h1> <div id="1"> <p><strong>ChatGPT</strong>从<ins>2022年底</ins>火到现在,在全球范围内掀起热潮,风头甚至盖过了元宇宙。</p> <p>近日,投资咨询机构瑞银发布的一项最新研究报告显示,仅仅发布两个月,<strong>ChatGPT</strong>月活跃用户已达1亿,这是历史上增长速度最快的应用。跨越这个节点,Instagram用了2.5年,TikTok用了9个月。</p> <p>1月12日,在美国一场活动上,曾担任微软董事长的比尔·盖茨表示,他不认为Web3有那么重要,也不认为元宇宙本身是革命性的,但是人工智能却是颇具颠覆性的。当被问及如何看待<strong>ChatGPT</strong>时,他说,“这让我能一窥未来。整个平台的方法和创新速度都令我印象深刻。” </p> </div> <br> <div> <h3>ChatGPT掀起新一轮AI浪潮</h3> <hr> <p>ChatGPT是美国科技公司OpenAI开发的生成式人工智能聊天机器人,由埃隆·马斯克(ElonMusk)和山姆·阿尔特曼(SamAltman)在2015年共同创立,并得到了微软等投资者的支持。</p> <p>自2022年11月推出后,ChatGPT仅用60天月活过亿,被《财富》认为是划时代的产品。更重要的是,以ChatGPT为代表的AIGC,正在人工智能领域掀起AI商业化的新一轮浪潮。 </p> <P>美国消费者新闻与商业频道(CNBC)报道称,ChatGPT的出色表现使其成为了最受欢迎的AI程序。截至今年1月,ChatGPT在推出仅两个月后就积累了1亿月活跃用户,成为史上用户增长最快的消费者应用程序。在1月31日,ChatGPT的网站访问量还达到创纪录的2800万次,较一个月前增长165%</P> <a href="./image/1.png" target="_blank"><img src="./image/1.png" title="点击查看大图"></a> <p>美股研究分析平台SeekingAlpha撰文指出,虽然2023年仅过了1个多月,但已经证明AI将主导企业战略和投资者注意力。科技巨头正在将更多的资源投入到AI新兴领域——尽管在这些领域中尚未找到立足之地,但巨头们几乎表现出一种“生怕错过”的状态。</p> <P>作为OpenAI公司的主要投资者之一,微软已加大对AI业务的投资。CNBC称,微软在1月23日宣布与OpenAI达成一项持续数年、价值数十亿美元的投资。微软拒绝透露具体的金额,但美国新闻网站Semafor爆料称,投资总额可能达到100亿美元以上。</P> <P>据美国Axios新闻网报道,脸书母公司Meta已在AI方面投入大量资金,但该公司最近两个生成式AI的演示并不成功。作为ChatGPT竞品的聊天机器人Blenderbot因其低质量的输出内容遭到批评,专注于学术领域的机器人Galactica则因准确性低下饱受非议。</P> <p>不仅如此,MetaCEO马克·扎克伯格似乎更热衷于元宇宙项目的研发,他表示:“两大技术浪潮正在推动我们的技术路线图,现在是AI,从长远来看是元宇宙。”</p> <a href="https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png"target="_blank"><img src="https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png" title="查看百度大图"></a> <p>苹果公司CEO蒂姆·库克在财报电话会议上也对AI的发展表示出兴趣,称这是苹果的“主要关注点”。“我们看到,这个领域的巨大潜力几乎可以影响我们所做的一切,它将影响我们的每一种产品和服务。”库克说,他计划进一步将AI纳入公司。</p> </div> <div> <h4>点击量排行榜</h4> <ol> <li><a href="http://www.baidu.com" target="_blank">中韩造船巅峰对决:关键就在这颗“皇冠上的明珠”</a></li> <li><a href="http://www.baidu.com" target="_blank">合肥师范学院回应陈宏友在中学演讲涉及不当内容:当晚就已停课处理”</a></li> <li><a href="http://www.baidu.com" target="_blank">每日新增阳性5000例以上,新一波病毒又要来了吗?</a></li> <li><a href="http://www.baidu.com" target="_blank">外交部发言人介绍中美接触情况</a></li> <li><a href="http://www.baidu.com" target="_blank">麦克朗,2023扣篮王:可能不仅拯救了今年的扣篮大赛</a></li> <li><a href="http://www.baidu.com" target="_blank">乌克兰宣布延长战时状态 中使馆:请国内人员暂勿来乌</a></li> </ol> </div> <div> <h4>其他新闻</h4> <ul> <li><a href="http://www.baidu.com">江西上栗两民警一辅警查酒驾时被刺 官方:3人因公牺牲 嫌疑人已归案</a></li> <li><a href="http://www.baidu.com">女孩表白男生被拒后“动手”,扑倒在地上抱紧不让走:你是我的了</a></li> <li><a href="http://www.baidu.com">浙江杭州一小区突发燃气爆炸,现场满地碎片一片狼藉</a></li> <li><a href="http://www.baidu.com">男子为女友打架入狱12年,出狱得知女友嫁好兄弟痛哭:看清2个人</a></li> <li><a href="http://www.baidu.com">38岁秃头男子和23岁漂亮美女恋爱,两人身高颜值引争议:我输哪了</a></li> <li><a href="http://www.baidu.com">夫妻经熟人介绍相识,在双方父母催促下结婚,婚后两人如同陌生人</a></li> </div> <div> <p><a href="./index.html">返回首页</a> | <a href="#">返回顶部 </a>|<a href="#1">跳转至主体内容</a></p> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-27-day02/news2/news2.html
HTML
unknown
5,999
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta name="大数据" content="大数据"/> <meta description="大数据" content="大数据"/> <title>新闻详情</title> <link rel="stylesheet" href="https://csdn-z.oss-cn-shanghai.aliyuncs.com/a.css"> </head> <body> <iframe class="g" frameborder="no" border="0" width="280" height="220" src="//music.163.com/outchain/player?type=0&id=12225351807&auto=1&height=430"></iframe> <p class="a">你好</p> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-27-day02/news2.html
HTML
unknown
532
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8>"> <meta name="biaodang" content="表单"> <meta description="biaodnag" content="表单"> <title>注册账号</title> </head> <body> <form align="center" action="http://www.baidu.com" target="_blank" method="get" name="注册账号"> <caption>注册账号</caption> <br> <div> <label for="yonhuming">用户名:</label> <input id="yonhuming" type="text" placeholder="请输入用户名"> </div> <br> <div> <label for="mima">密码:</label> <input id="mima" type="password" placeholder="请输入密码"> </div> <br> <div> <label for="zaiciquereng">确认密码</label> <input id="zaiciquereng" type="password" placeholder="请再次输入密码"> </div> <br> <div> <label>性别:</label> <input name="xingbie" type="radio" checked="checked">男 &nbsp; &nbsp; &nbsp; <input name="xingbie" type="radio">女 </div> <br> <div> <label>生日:</label> <select> <option value="2000">2000年</option> <option value="2001">2001年</option> <option value="2001">2002年</option> <option value="2003" selected="selected">2003年</option> </select> <select> <option>01月</option> <option>02月</option> <option selected="selected">03月</option> </select> <select> <option>10日</option> <option selected="selected">11月</option> </select> </div> <br> <div> <label>所在地:</label> <select> <opion>重庆</opion> <option>广东</option> <option selected="selected">福建</option> </select> <select> <option>从化区</option> <option>古田县</option> <option selected="selected">宁德市</option> </select> </div> <br> <div> <label for="dianhua">电话:</label> <input id="dianhua" type="text" placeholder="请输入电话"> </div> <div> <P>可通过该手机号码快速寻找密码<br> 中国大陆以外手机号码<a href="http://www.baidu.com" target="_blank">点击这里</a></p> </div> <div> <input type="submit" value="注册"> </div> <br> <div> <input type="checkbox" checked="checked">同意开通QQ空间 <br> <input type="checkbox" checked="checked">同意条款 </div> </form> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-28-day03/biaodang.html
HTML
unknown
3,259
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="biaodang" content="bd"> <meta description="bg" content="bd"> </head> <body> <table align="center" width="400"> <caption>注册账号</caption> <tbody> <tr> <td><label for="yonhuming">用户名:</label></td> <td><input id="yonhuming" type="text" placeholder="请输入用户名"></td> </tr> <tr> <td><label for="mima">密码:</label></td> <td> <input id="mima" type="password" placeholder="请输入密码"></td> </tr> <tr> <td><label for="zaiciquereng">确认密码</label></td> <td><input id="zaiciquereng" type="password" placeholder="请再次输入密码"></td> </tr> <tr> <td> <label>性别:</label></td> <td> <input name="xingbie" type="radio" checked="checked">男 &nbsp; &nbsp; &nbsp; <input name="xingbie" type="radio">女</td> </tr> <tr> <td><label>生日:</label></td> <td><select> <option value="2000">2000年</option> <option value="2001">2001年</option> <option value="2001">2002年</option> <option value="2003" selected="selected">2003年</option> </select> <select> <option>01月</option> <option>02月</option> <option selected="selected">03月</option> </select> <select> <option>10日</option> <option selected="selected">11月</option> </select></td> </tr> <tr> <td><label>所在地:</label></td> <td><select> <opion>重庆</opion> <option>广东</option> <option selected="selected">福建</option> </select> <select> <option>从化区</option> <option>古田县</option> <option selected="selected">宁德市</option> </select></td> </tr> <tr> <td><label for="dianhua">电话:</label></td> <td> <input id="dianhua" type="text" placeholder="请输入电话"></td> </tr> <tr> <td>&nbsp</td> <td>可通过该手机号码快速寻找密码<br> 中国大陆以外手机号码<a href="http://www.baidu.com" target="_blank">点击这里</a></td> </tr> <tr> <td>&nbsp</td> <td><input type="submit" value="注册"></td> </tr> <tr> <td>&nbsp</td> <td><input type="checkbox" checked="checked">同意开通QQ空间 <br> <input type="checkbox" checked="checked">同意条款</td> </tr> </tbody> </table> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-28-day03/biaoge+biaodang.html
HTML
unknown
3,634
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta chaset="UTF-8"> <meta name="成绩单" content="成绩单"> <meta description="成绩单" content="成绩单"> <title>学生考试成绩单</title> </head> <body> <table align="center" border="1" cellspacing="0"> <caption>学生考试成绩单</caption> <thead> <tr> <th>姓名</th> <th>语文</th> <th>数学</th> <th>英语</th> </tr> </thead> <tbody> <tr> <td>张三</td> <td>89</td> <td>92</td> <td>87</td> </tr> <tr> <td>李四</td> <td>93</td> <td>86</td> <td>80</td> </tr> <tr> <td>王五</td> <td>85</td> <td>86</td> <td>90</td> </tr> </tbody> <tfoot> <tr> <td rowspan="2">博客信息</td> <td colspan="3">您好,欢迎访问pan_jumbiao的博客</td> </tr> <tr> <td colspan="3">博客地址:https://blong.csdn.net/pan_junbiao </td> </tr> </tfoot> </table> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-28-day03/table-2.html
HTML
unknown
1,572
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta chaset="UTF-8"> <meta name="表格" content="表格"> <meta description="表格" content="表格"> <title>学生信息</title> </head> <body> <table align="center" border="1" cellspacing="0"> <caption>学生成绩信息表格</caption> <thead> <tr> <th colspan="3">学生信息</th> <th colspan="2">成绩</th> </tr> <tr> <th>性名</th> <th>性别</th> <th>专业</th> <th>课程</th> <th>分数</th> </tr> </thead> <tbody> <tr> <td>小张</td> <td>男</td> <td rowspan="2">计算机</td> <td rowspan="2">java开发</td> <td>99</td> </tr> <tr> <td>小王</td> <td>女</td> <td>98</td> </tr> </tbody> </table> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-28-day03/table1.html
HTML
unknown
1,256
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="首页" content="首页"> <meta description="首页" content="首页"> <title>新闻首页</title> <style> h2 { font-size : 40px; } a { font-size : 30px; } </style> </head> <body> <h2>新闻首页</h2> <div> <dl> <dt><a href="http://www.baidu.com" target="_blank">新闻</a></dt> <dd><a href="http://www.baidu.com" target="_blank">军事</a></dd> <dd><a href="http://www.baidu.com" target="_blank">国内</a></dd> <dd><a href="http://www.baidu.com" target="_blank">国际</a></dd> <dt><a href="http://www.baidu.com" target="_blank">财经</a></dt> <dd><a href="http://www.baidu.com" target="_blank">股票</a></dd> <dd><a href="http://www.baidu.com" target="_blank">基金</a></dd> <dd><a href="http://www.baidu.com" target="_blank">外汇</a></dd> <dt><a href="http://www.baidu.com" target="_blank">科技</a></dt> <dd><a href="http://www.baidu.com" target="_blank">手机</a></dd> <dd><a href="http://www.baidu.com" target="_blank">探索</a></dd> <dd><a href="http://www.baidu.com" target="_blank">众测</a></dd> <dt><a href="http://www.baidu.com" target="_blank">体育</a></dt> <dd><a href="http://www.baidu.com" target="_blank">NBA</a></dd> <dd><a href="http://www.baidu.com" target="_blank">英超</a></dd> <dd><a href="http://www.baidu.com" target="_blank">中超</a></dd> </dl> </div> <p>推荐阅读&gt;&gt;<a href="./news.html" target="_blank">大数据看奋进的中国节奏</a></p> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-29-day04/page/index.html
HTML
unknown
1,948
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta chaset="UTF-8"> <meta name="新闻" content="新闻"> <meta description="新闻" content="新闻"> <style> * { font-size: 22px; } h1 { font-weight: lighter; font-size: 50px; } .cuti{ font-weight: bolder; } p { font: 28px "Microsoft Yahei",sans-serif; } #kaiti{ font-family:"KaiTi"; } .xieti{ font-style:italic; } </style> <title>新闻详情</title> </head> <body> <div> <h1>大数据看奋进的中国节奏</h1> <p><span class="cuti">ChatGPT</span>从<ins>2022年底</ins>火到现在,在全球范围内掀起热潮,风头甚至盖过了元宇宙。</p> <P>近日,投资咨询机构瑞银发布的一项最新研究报告显示,仅仅发布两个月,<span class="cuti">ChatGPT</span>月活跃用户已达1亿,这是历史上增长速度最快的应用。跨越这个节点,Instagram用了2.5年,TikTok用了9个月。</P> <p>1月12日,在美国一场活动上,曾担任微软董事长的比尔·盖茨表示,他不认为Web3有那么重要,也不认为元宇宙本身是革命性的,但是人工智能却是颇具颠覆性的。当被问及如何看待<span calss="cuti">ChatGPT</span>时,他说,“这让我能一窥未来。整个平台的方法和创新速度都令我印象深刻。” </p> <br> <h3 id="kaiti">ChatGPT掀起新一轮AI浪潮</h3> <hr> </div> <div> <p id="zhuti">ChatGPT是美国科技公司<span class="cuti xieti">OpenAI</span>开发的生成式人工智能聊天机器人,由埃隆·马斯克(ElonMusk)和山姆·阿尔特曼(SamAltman)在2015年共同创立,并得到了微软等投资者的支持。</p> <P>自2022年11月推出后,ChatGPT仅用60天月活过亿,被《财富》认为是划时代的产品。更重要的是,以ChatGPT为代表的AIGC,正在人工智能领域掀起AI商业化的新一轮浪潮。</P> <P>美国消费者新闻与商业频道(CNBC)报道称,ChatGPT的出色表现使其成为了最受欢迎的AI程序。截至今年1月,ChatGPT在推出仅两个月后就积累了1亿月活跃用户,成为史上用户增长最快的消费者应用程序。在1月31日,ChatGPT的网站访问量还达到创纪录的2800万次,较一个月前增长165%。</P> <a href="../images/1.png" target="_blank"><img src="../images/1.png" title="点击查看大图"> </a> <p>美股研究分析平台SeekingAlpha撰文指出,虽然2023年仅过了1个多月,但已经证明AI将主导企业战略和投资者注意力。科技巨头正在将更多的资源投入到AI新兴领域——尽管在这些领域中尚未找到立足之地,但巨头们几乎表现出一种“生怕错过”的状态。</p> <P>作为OpenAI公司的主要投资者之一,微软已加大对AI业务的投资。CNBC称,微软在1月23日宣布与OpenAI达成一项持续数年、价值数十亿美元的投资。微软拒绝透露具体的金额,但美国新闻网站Semafor爆料称,投资总额可能达到100亿美元以上。</P> <P>据美国Axios新闻网报道,脸书母公司Meta已在AI方面投入大量资金,但该公司最近两个生成式AI的演示并不成功。作为ChatGPT竞品的聊天机器人Blenderbot因其低质量的输出内容遭到批评,专注于学术领域的机器人Galactica则因准确性低下饱受非议。</P> <p>不仅如此,MetaCEO马克·扎克伯格似乎更热衷于元宇宙项目的研发,他表示:“两大技术浪潮正在推动我们的技术路线图,现在是AI,从长远来看是元宇宙。”</p> <a href="https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png" target="_blank"><img src="https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png" title="百度"></a> <p>苹果公司CEO蒂姆·库克在财报电话会议上也对AI的发展表示出兴趣,称这是苹果的“主要关注点”。“我们看到,这个领域的巨大潜力几乎可以影响我们所做的一切,它将影响我们的每一种产品和服务。”库克说,他计划进一步将AI纳入公司。</p> </div> <h4>点击量排行榜</h4> <ol> <li><a href="http://www.baidu.com" target="_blank">“中韩造船巅峰对决:关键就在这颗“皇冠上的明珠”</a></li> <li><a href="http://www.baidu.com" target="_blank">合肥师范学院回应陈宏友在中学演讲涉及不当内容:当晚就已停课处理</a></li> <li><a href="http://www.baidu.com" target="_blank">每日新增阳性5000例以上,新一波病毒又要来了吗?</a></li> <li><a href="http://www.baidu.com" target="_blank">外交部发言人介绍中美接触情况</a></li> <li><a href="http://www.baidu.com" target="_blank">麦克朗,2023扣篮王:可能不仅拯救了今年的扣篮大赛</a></li> <li><a href="http://www.baidu.com" target="_blank">乌克兰宣布延长战时状态 中使馆:请国内人员暂勿来乌</a></li> </ol> <h4>其他新闻</h4> <ul> <li><a href="http://www.baidu.com" target="_blank">江西上栗两民警一辅警查酒驾时被刺 官方:3人因公牺牲 嫌疑人已归案</a></li> <li><a href="http://www.baidu.com" target="_blank">女孩表白男生被拒后“动手”,扑倒在地上抱紧不让走:你是我的了</a></li> <li><a href="http://www.baidu.com" target="_blank">浙江杭州一小区突发燃气爆炸,现场满地碎片一片狼藉</a></li> <li><a href="http://www.baidu.com" target="_blank">男子为女友打架入狱12年,出狱得知女友嫁好兄弟痛哭:看清2个人</a></li> <li><a href="http://www.baidu.com" target="_blank">38岁秃头男子和23岁漂亮美女恋爱,两人身高颜值引争议:我输哪了</a></li> <li><a href="http://www.baidu.com" target="_blank">夫妻经熟人介绍相识,在双方父母催促下结婚,婚后两人如同陌生人</a></li> </ul> <p><a href="./index.html">返回首页</a> | <a href="#">返回顶部</a> | <a href="#zhuti">跳转至主体内容</a></p> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-29-day04/page/news.html
HTML
unknown
6,630
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="首页" content="首页"> <meta description="首页" content="首页"> <title>新闻详情</title> <style> #datetime { font-size:16px; color:#a6a6a6; } .text-center { text-align: center; } p{ font: 20px / 40px "Microsoft YaHei", "Heiti SC", tahoma, arial, "Hiragino Sans GB", "\5B8B\4F53", sans-serif; text-indent:2em; letter-spacing:2px } .text-wight { font-weight:bolder; } .address { font-size: 53px; color: #FA3939; font-style: italic; } .top { text-decoration: none; color: rgb(250, 57, 57); font-size: 22px; } </style> </head> <body> <h2 class="text-center">儿科等候区电子屏走红,告别全员“梓涵”时代,22后能松口气了</h2> <div class="text-center" style="line-height:45px"><span id="datetime">2025-02-16 13:07</span><span>·</span><span class="address">来自辽宁</span></div> <hr> <p>名字往往被赋予更深刻的含义,既饱含家长对学生的期盼与爱意,也代表着自己在世界上留下痕迹,而名字也关乎着学生的未来,所以家长为学生取个适当的好名字也很重要。</p> <p>每一代人都有每一代人的坚持,不同时代的名字也并相同,比如60后、70后常用的建军、爱国,80后更多的是秀、芳、辉、伟,而90后也变得更加个性,尤其是00后涌现出诸多的梓涵、子轩等,也让人不禁感慨:<span class="text-wight">想不重名太难了!</span ></p> <div class="text-center"><a href="./images/1.png" target="_balnk"> <img src="./images/1.png" title="点击查看大图" width="600"></div> </a> <p>很多人都调侃00后全员“梓涵”,还将其变成了“绕口令”,<span class="text-wight">比如梓涵和子涵不小心撞到了子轩和梓轩,老师也分不清楚是谁是谁</span>,但随着90后家长对学生名字的更加重视,全员“梓涵”时代也终于告别了!</p> <p><span class="text-wight">儿科等候区电子屏走红,告别全员“梓涵”时代,22后能松口气了!</span></p> <p>网络时代下,人们生活水平逐步提升的同时,思想也更加的新颖、先进,尤其是年轻家长也对教育有着更高的追求,<span class="text-wight">而网友晒出儿科等候区的电子屏走红,告别全员“梓涵”时代,22后也能松口气了!</span></p> <div class="text-center"><a href="./images/2.png" target="_blank"><img src="./images/2.png" title="点击查看大图" width="600"></a></div> <p>名字是学生一生的“代号”,若是名字过于普通、重复,甚至是千篇一律的话,那为人家长也会感到不舒服,<span class="text-wight">而看儿科等候区电子屏上的学生名字,比如秉之、锦辰、屹川等,都更加的有寓意,读起来也给人更好的感觉</span>,不会显得那么直白普通。</p> <hr> <div class=" text-center" ><a class="top" href="#">返回顶部</a></div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-30-day05/anli1/index.html
HTML
unknown
3,497
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta cahrset="UTF-8"> <meta name="新闻" content="新闻"> <meta description="新闻" content="新闻"> <title>新闻</title> <style> .text-center{ text-align:center; } .title { font-size: 26px; line-height:40px; } .subtitle { color:#999; font-size: 12px; } .subtitle .red { color:#B60C0D; } .subtitle>a { color:#999 } a { text-decoration: none; } .img-decs { color:#666; font-size: 12px; line-height: 20px; } .detail-p { text-indent: 2em; letter-spacing: 2px; line-height: 32px; font-size: 16px; } .border { border: 1px dashed; } .text-right{ text-align:right; } .keywords { font-size: 14px; } .keywords>a { color:#0454a7; } .keywords>span { font-weight:bolder; } .subititle>a:hover { color: #315efb; } .keywords a:hover { color: #b60c0c; } </style> </head> <body> <h3 class="text-center title">最美逆行 除夕夜青岛这名医生奔赴疫情一线</h3> <div class="text-center subtitle" > <span>2028年01月25日 01:00</span> <span><a class="red" href="#">新浪新闻综合</a></span> <span>微博</span> <a href="#">我有话说(<span class="red">7,370</span>人参与)</a> <a href="#">收藏本文</a> </div> <hr> <div class="text-center"><a href="./images/1.png" target="_blanl"><img src="./images/1.png" title="点击查看大图"></a></div> <p class="text-center img-decs">最美逆行!除夕夜,青岛这名医生奔赴疫情一线,向她致敬!</p> <p class="detail-p">“你这傻孩子,医院那么多医生咋就非你去不可?好好在家过个年不行么!”面对父亲的“质问”,秦文只是笑笑没说话。作为一名青大附院院感科医生,她知道这场源发于武汉的疫情意味着什么,如果连医生都选择逃避,那只会让更多人的健康失去保护;但作为女儿,她也明白父亲的话并非真埋怨她傻,毕竟哪个做父母的愿意看见自己的孩子冒险?</p> <div class="border"> <p class="detail-p">&nbsp;&nbsp;疫情新闻资讯:#疫情#大年三十接到通知:武汉需要你。“其实疫情爆发的时候我就有心理准备,但是没想到会这么突然。”</p> <p class="detail-p text-right">2028-01-30 12:54 来自UC浏览器 转发(349) | 收藏 | 评论(50) </p> </div> <P class="detail-p">作为青大附院院感科的医生,秦文一直密切关注着这场疫情,而作为一名医疗工作者,她也明白自己的使命,“一旦情况需要,我可以马上去武汉!”。不同于其他科室,院感科的主要职责是保证医院及医护人员免受病毒感染,尤其是面对新型病毒,由于对病毒习性、耐药性等指标的不确定,预防工作就会显得极其重要。</P> <p class="detail-p">秦文说,这个问题家人们问过她很多遍,作为感染防护的专业人员,秦文曾经在国家卫生健康委医政医管局借调,主要就是负责感染防护类的工作。此次武汉爆发疫情,除了医疗类的各种物资,最缺的就是从事感染防护医护人员,看似是一道选择题,但是对于秦文来说,这道必答题的答案只有一个。</p> <div class="keywords"> <span>文章关键词:</span> <a href="#">疫情</a> <a href="#">除夕夜</a> <a href="#">致敬</a> <a href="#">青岛</a> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-3-30-day05/anli2/news.html
HTML
unknown
4,322
.text-center { text-align:center; font-size: 30px; color: red; }
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-1-day06/test.css
CSS
unknown
76
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="1" content="1"> <meta description="1" content="1"> <title>test</title> <style> .one{ font-size: 20px; line-height: 1.5; } .one>p { font-size: 50px; } .two{ font-size: 20px; line-height: 150%; } .two>p { font-size: 50px; } </style> </head> <body> <div class="one"> <p>小Z1</p> </div> <div class="two"> <p>小Z2</p> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-1-day06/test1.html
HTML
unknown
723
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="测试" content="测试"> <meta description="测试" content="测试"> <title>测试</title> <link rel="stylesheet" href="./test.css"> <style> .text-right{ text-align:right; color:green; font-size:50px; } </style> </head> <body> <div class="text-center"> <p>这是一个链接式</p> <span class="text-right"> <p>这是一个链接式+嵌入式,遵循就近原则</p> <p style="text-align:left;color:blue;font-size:70px;">这是一个链接式+嵌入式+行内式,也遵循就近原则</p> </span> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-1-day06/test2.html
HTML
unknown
830
<!DOCTYPE html> <htm> <head> <meta charset="UTF-8"> <meta name="测试" content="测试"> <meta description="测试" content="测试"> <title>测试</title> <style> div { color:green !important } .p-color { color: blue; } </style> </head> <body> <div style="color:red;"> <p>我是测试1</p> <p class="p-color">我是测试2</p> </div> </body> </htm>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-1-day06/test3.html
HTML
unknown
535
* { margin: 0; padding: 0; } body { font-family: "Microsoft YaHei", "Heiti SC", tahoma, arial, "Hiragino Sans GB", "宋体", sans-serif; } a { color: white; text-decoration: none; } ul { list-style: none; } .auto-center { width: 1000px; margin-left: auto; margin-right: auto; } .full-center { min-width: 1000px; } .pull-left { float: left; } .pull-right { float: right; } .clearfix::after { content: ''; display: block; clear: both; }
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-10-day13/css/common.css
CSS
unknown
502
.bg-backward { width: 60px; height: 60px; background: url('../images/css_sprites.png') -187px -10px; } .bg-cart { width: 25px; height: 25px; background: url('../images/css_sprites.png') -10px -183px; } .bg-envelope { width: 26px; height: 20px; background: url('../images/css_sprites.png') -10px -228px; } .bg-dribble { width: 20px; height: 21px; background: url('../images/css_sprites.png') -267px -109px; } .bg-facebook { width: 11px; height: 20px; background: url('../images/css_sprites.png') -10px -268px; } .bg-forward { width: 60px; height: 60px; background: url('../images/css_sprites.png') -187px -90px; } .bg-logo { width: 157px; height: 153px; background: url('../images/css_sprites.png') -10px -10px; } .cart { width: 13px; height: 20px; background: url('../images/css_sprites.png') -267px -188px; } .bg-msn { width: 16px; height: 16px; background: url('../images/css_sprites.png') -100px -228px; } .bg-phone { width: 21px; height: 29px; background: url('../images/css_sprites.png') -267px -10px; } .bg-rss { width: 16px; height: 16px; background: url('../images/css_sprites.png') -136px -228px; } .bg-telephone { width: 18px; height: 30px; background: url('../images/css_sprites.png') -267px -59px; } .bg-slider { width: 48px; height: 9px; background: url('../images/css_sprites.png') -55px -183px; } .bg-vimeo { width: 21px; height: 18px; background: url('../images/css_sprites.png') -267px -150px; } .bg-twitter { width: 24px; height: 16px; background: url('../images/css_sprites.png') -56px -228px; } .bg-founder-team { width: 13px; height: 20px; background: url('../images/css_sprites.png') -267px -188px; }
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-10-day13/css/sprites.css
CSS
unknown
1,783
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="keywords" content="商城首页"> <meta name="description" content="商城首页"> <title>商城首页</title> <link rel="stylesheet" href="./css/common.css"> <link rel="stylesheet" href="./css/sprites.css"> <style> .header { background-color: #2a2b2c; font-size: 14px; } .header .item { display: inline-block; line-height: 44px; margin-left: 40px; } .header .item>* { vertical-align: middle; } .header .icon { display: inline-block; } .banner { background-color: #35c3d9; } .banner>.auto-center { position: relative; height: 500px; } .banner .logo { width: 180px; height: 106px; background: url("./images/1.png") center / cover no-repeat; box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1); } .banner .nav { box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1); } .banner .nav a{ display: inline-block; width: 103px; text-align: center; line-height: 106px; } .banner .nav>li { float: left; } .banner .clothes { position: absolute; bottom: 18px; left: 0; } .banner .title { position: absolute; width: 413px; bottom: 141px; right: 0; font-size: 60px; font-weight: normal; color: white; text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.4); text-align: center; } .banner .backward, .banner .forward{ position: absolute; top: 50%; margin-top: -30px; } .banner .backward { left: -128px; } .banner .forward { right: -128px; } .big-title { margin-top: 30px; } .big-title>.pull-left { padding-left: 49px; font-weight: normal; color: #434343; font-size: 60px; } .big-title>.pull-right { width: 175px; line-height: 73px; background-color: #35c3d9; font-size: 60px; text-align: center; margin-right: 30px; } .category { margin-top: 30px; width: 1050px; font-size: 36px; color: #ffffff; } .category>.pull-left { position: relative; width: 300px; height: 150px; margin-left: 25px; margin-right: 25px; } .category>.pull-left>span { position: absolute; line-height: 40px; left: 24px; top: 50%; margin-top: -40px; } </style> </head> <body> <div class="header full-center"> <div class="auto-center clearfix"> <div class="pull-right"> <a class="item" href="#"> <span>结账</span> </a> <a class="item" href="#"> <span class="icon bg-founder-team"></span> <span>我的账户</span> </a> <a class="item" href="#"> <span class="icon bg-cart"></span> <span>购物车(3)</span> </a> </div> </div> </div> <div class="banner full-center"> <div class="auto-center clearfix"> <a class="logo pull-left" href="#"> </a> <ul class="nav pull-right clearfix"> <li> <a href="#">主页</a> </li> <li> <a href="#">新闻</a> </li> <li> <a href="#">产品</a> </li> <li> <a href="#">特征</a> </li> <li> <a href="#">联系人</a> </li> </ul> <img class="clothes" src="./images/2.png"> <h2 class="title">查看我们最新的时装</h2> <img class="backward" src="./images/backward.png" height="60"> <img class="forward" src="./images/forward.png" height="60"> </div> </div> <div class="big-title auto-center clearfix"> <h1 class="pull-left">查看我们独特的时尚</h1> <a class="pull-right" href="#">方法</a> </div> <div class="category auto-center clearfix"> <div class="pull-left" style="background: #35c3d9 url(./images/3.png) 90% center no-repeat;"> <span>出售<br>60%</span> </div> <div class="pull-left" style="background: #91b900 url(./images/4.png) 90% center no-repeat;"> <span>自由<br>航运的</span> </div> <div class="pull-left" style="background: #f356b3 url(./images/5.png) 90% center no-repeat;"> <span>24/7<br>支持</span> </div> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-10-day13/index.html
HTML
unknown
6,085
<!DOCTYPE html> <html lang="zh-CN"> <meta charset="UTF-8"> <meta name="keywords" content="首页"> <meta name="description" content="首页"> <title>首页</title> <link rel="stylesheet" href="./css/common.css"> <style> .full-center { height: 100px; background-color: #35c3d9; } .auto-center { height: 100px; background-color: red; overflow: hidden; } .full-center>.auto-center { height: 80px; background-color: blue; overflow: hidden; } </style> <body> <div class="full-center"> <div class="auto-center"> 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 </div> </div> <div class="auto-center"> 222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222 </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-10-day13/test.html
HTML
unknown
1,234
* { margin: 0; padding: 0; } body { font-family: "Microsoft YaHei", "Heiti SC", tahoma, arial, "Hiragino Sans GB", "宋体", sans-serif; } a { color: white; text-decoration: none; } ul { list-style: none; } .auto-center { width: 1000px; margin-left: auto; margin-right: auto; } .full-center { min-width: 1000px; } .pull-left { float: left; } .pull-right { float: right; } .clearfix::after { content: ''; display: block; clear: both; } .text-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .text-left { text-align: left; } .text-right { text-align: right; }
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-11(12)-day14/css/common.css
CSS
unknown
676
.bg-backward { width: 60px; height: 60px; background: url('../images/css_sprites.png') -187px -10px; } .bg-cart { width: 25px; height: 25px; background: url('../images/css_sprites.png') -10px -183px; } .bg-envelope { width: 26px; height: 20px; background: url('../images/css_sprites.png') -10px -228px; } .bg-dribble { width: 20px; height: 21px; background: url('../images/css_sprites.png') -267px -109px; } .bg-facebook { width: 11px; height: 20px; background: url('../images/css_sprites.png') -10px -268px; } .bg-forward { width: 60px; height: 60px; background: url('../images/css_sprites.png') -187px -90px; } .bg-logo { width: 157px; height: 153px; background: url('../images/css_sprites.png') -10px -10px; } .cart { width: 13px; height: 20px; background: url('../images/css_sprites.png') -267px -188px; } .bg-msn { width: 16px; height: 16px; background: url('../images/css_sprites.png') -100px -228px; } .bg-phone { width: 21px; height: 29px; background: url('../images/css_sprites.png') -267px -10px; } .bg-rss { width: 16px; height: 16px; background: url('../images/css_sprites.png') -136px -228px; } .bg-telephone { width: 18px; height: 30px; background: url('../images/css_sprites.png') -267px -59px; } .bg-slider { width: 48px; height: 9px; background: url('../images/css_sprites.png') -55px -183px; } .bg-vimeo { width: 21px; height: 18px; background: url('../images/css_sprites.png') -267px -150px; } .bg-twitter { width: 24px; height: 16px; background: url('../images/css_sprites.png') -56px -228px; } .bg-founder-team { width: 13px; height: 20px; background: url('../images/css_sprites.png') -267px -188px; } .bg-dribble { width: 20px; height: 21px; background: url('../images/css_sprites2.png') -10px -10px; } .bg-msn { width: 16px; height: 16px; background: url('../images/css_sprites2.png') -51px -51px; } .bg-twitter { width: 24px; height: 16px; background: url('../images/css_sprites2.png') -50px -10px; } .bg-vimeo { width: 21px; height: 18px; background: url('../images/css_sprites2.png') -10px -51px; } .bg-facebook { width: 11px; height: 20px; background: url('../images/css_sprites2.png') -94px -46px; } .bg-rss { width: 16px; height: 16px; background: url('../images/css_sprites2.png') -94px -10px; } .bg-envelope { width: 26px; height: 20px; background: url('../images/css_sprites3.png') -51px -10px; } .bg-phone { width: 21px; height: 29px; background: url('../images/css_sprites3.png') -10px -10px; } .bg-telephone { width: 18px; height: 30px; background: url('../images/css_sprites3.png') -10px -59px; }
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-11(12)-day14/css/sprites.css
CSS
unknown
2,781
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="keywords" content="商城首页"> <meta name="description" content="商城首页"> <title>商城首页</title> <link rel="stylesheet" href="./css/common.css"> <link rel="stylesheet" href="./css/sprites.css"> <style> .header,.copy{ background-color: #2a2b2c; font-size: 14px; } .header .item { display: inline-block; line-height: 44px; margin-left: 40px; } .header .item>* { vertical-align: middle; } .header .icon { display: inline-block; } .banner { background-color: #35c3d9; } .banner>.auto-center { position: relative; height: 500px; } .banner .logo { width: 180px; height: 106px; background: url("./images/1.png") center / cover no-repeat; box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1); } .banner .nav { box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1); } .banner .nav a{ display: inline-block; width: 103px; text-align: center; line-height: 106px; } .nav>li { float: left; } .banner .clothes { position: absolute; bottom: 18px; left: 0; } .banner .title { position: absolute; width: 413px; bottom: 141px; right: 0; font-size: 60px; font-weight: normal; color: white; text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.4); text-align: center; } .banner .backward, .banner .forward{ position: absolute; top: 50%; margin-top: -30px; } .banner .backward { left: -128px; } .banner .forward { right: -128px; } .big-title { margin-top: 30px; } .big-title>.pull-left { padding-left: 49px; font-weight: normal; color: #434343; font-size: 60px; } .big-title>.pull-right { width: 175px; line-height: 73px; background-color: #35c3d9; font-size: 60px; text-align: center; margin-right: 30px; } .category { margin-top: 30px; width: 1050px; font-size: 36px; color: #ffffff; } .category>.pull-left { position: relative; width: 300px; height: 150px; margin-left: 25px; margin-right: 25px; } .category>.pull-left>span { position: absolute; line-height: 40px; left: 24px; top: 50%; margin-top: -40px; } .products, .brands { margin-top: 50px; } .products .title, .brands .title{ position: relative; padding-bottom: 26px; border-bottom: 1px solid #e5e4e4; font-size: 30px; color:#1e1e20; } .brands .title { border-bottom: none; } .products .title-btn, .brands .title-btn{ color: white; background-color: #35c4da; padding: 0 28px; margin-left: 30px; } .products h3 { font-size: inherit; } .products .bottom-icon { position: absolute; left: 0; bottom: -10px; width: 60px; height: 20px; background: #35c4da url(./images/6.png) center / 80% no-repeat; } .products .product-list { margin-top: 30px; width: 1068px; margin-left: -34px; font-size: 0; } .products .product-list>li { display: inline-block; width: 288px; margin: 0 34px 44px; font-size: 24px; border: 1px solid #e7e7e7; box-sizing: border-box; color: #858585; } .products .img-box { padding: 19px 38px; border-bottom: 1px solid #e5e4e4; } .products .img-box > .img { display: block; height: 210px; background-color: black; } .products .desc { display: block; padding: 13px 16px 0; font-size: 24px; color: #858585; } .products .action { padding: 22px 21px 28px; } .products .price, .products .add-cart-btn { display: inline-block; vertical-align: middle; } .products .price { font-size: 30px; } .products .add-cart-btn { color: white; background-color: #35c4da; padding: 9px 6px; font-size: 18px; border-radius: 5px; } .fotter { box-shadow: 0px -3px 15px 0px rgba(0,0,0,0.1); margin-top: 65px; } .footer .column { float: left; padding-top: 34px; width: 250px; box-sizing: border-box; font-size: 13px; } .footer .title { font-size: 24px; color: #858585; line-height: 50px; } .footer .desc { padding: 10px 0; } .footer .icons { letter-spacing: 10px; } .footer .icons>span { display: inline-block; vertical-align: middle; } .footer .column { float: left; padding-top: 34px; width: 250px; box-sizing: border-box; font-size: 13px; } .footer .title { font-size: 24px; color: #858585; line-height: 50px; } .footer .date-list>li { padding: 15px 0; border-bottom: 1px dashed #e5e4e4; } .footer .concat-list>li { line-height: 40px; } .footer .icon { display: inline-block; vertical-align: middle; } .footer .input-row { margin-top: 10px; } .footer .input { display: block; width: 100%; outline: none; border: none; line-height: 36px; font-size: 20px; padding-left: 18px; border-bottom: 1px solid #ccc; background-color: #fafafa; box-sizing: border-box; } .footer .submit { background-color: #35c4da; padding: 12px 38px; outline: none; border: none; color: white; } .bottom { display: inline-block; padding: 13px 13px 1px 4px; font-size: 14px; line-height: 50px; box-shadow: 0px 1px 0px 0px } .bottom>span { line-height: 13px; margin-right: 15px; } .copy { color:white; /* width: 1400px; */ /* height: 27px; */ } </style> </head> <body> <div class="header full-center"> <div> <div class="auto-center clearfix"> <div class="pull-right"> <a class="item" href="#"> <span>结账</span> </a> <a class="item" href="#"> <span class="icon bg-founder-team"></span> <span>我的账户</span> </a> <a class="item" href="#"> <span class="icon bg-cart"></span> <span>购物车(3)</span> </a> </div> </div> </div> </div> <div class="banner full-center"> <div class="auto-center clearfix"> <a class="logo pull-left" href="#"> </a> <ul class="nav pull-right clearfix "> <li> <a href="#">主页</a> </li> <li> <a href="#">新闻</a> </li> <li> <a href="#">产品</a> </li> <li> <a href="#">特征</a> </li> <li> <a href="#">联系人</a> </li> </ul> <img class="clothes" src="./images/2.png"> <h2 class="title">查看我们最新的时装</h2> <img class="backward" src="./images/backward.png" height="60"> <img class="forward" src="./images/forward.png" height="60"> </div> </div> <div class="big-title auto-center clearfix"> <h1 class="pull-left">查看我们独特的时尚</h1> <a class="pull-right" href="#">方法</a> </div> <div class="category auto-center clearfix"> <div class="pull-left" style="background: #35c3d9 url(./images/3.png) 90% center no-repeat;"> <span>出售<br>60%</span> </div> <div class="pull-left" style="background: #91b900 url(./images/4.png) 90% center no-repeat;"> <span>自由<br>航运的</span> </div> <div class="pull-left" style="background: #f356b3 url(./images/5.png) 90% center no-repeat;"> <span>24/7<br>支持</span> </div> </div> <div class="products auto-center"> <div class="title"> <h3> <span>特色</span> <span class="title-btn">商品</span> </h3> <div class="bottom-icon"></div> </div> <ul class="product-list"> <li> <div class="img-box"> <div class="img"></div> </div> <a class="desc text-ellipsis" href="#">女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤</a> <div class="clearfix action"> <span class="price pull-left">¥35.99</span> <span class="add-cart-btn pull-right">加入购物车</span> </div> </li> <li> <div class="img-box"> <div class="img"></div> </div> <a class="desc text-ellipsis" href="#">女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤</a> <div class="clearfix action"> <span class="price pull-left">¥35.99</span> <span class="add-cart-btn pull-right">加入购物车</span> </div> </li> <li> <div class="img-box"> <div class="img"></div> </div> <a class="desc text-ellipsis" href="#">女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤</a> <div class="clearfix action"> <span class="price pull-left">¥35.99</span> <span class="add-cart-btn pull-right">加入购物车</span> </div> </li> </ul> </div> <div> <div class="products auto-center"> <div class="title"> <h3> <span>最新上架的</span> <span class="title-btn">商品</span> </h3> <div class="bottom-icon"></div> </div> <ul class="product-list"> <li> <div class="img-box"> <div class="img"></div> </div> <a class="desc text-ellipsis" href="#">女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤</a> <div class="clearfix action"> <span class="price pull-left">¥35.99</span> <span class="add-cart-btn pull-right">加入购物车</span> </div> </li> <li> <div class="img-box"> <div class="img"></div> </div> <a class="desc text-ellipsis" href="#">女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤</a> <div class="clearfix action"> <span class="price pull-left">¥35.99</span> <span class="add-cart-btn pull-right">加入购物车</span> </div> </li> <li> <div class="img-box"> <div class="img"></div> </div> <a class="desc text-ellipsis" href="#">女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤</a> <div class="clearfix action"> <span class="price pull-left">¥35.99</span> <span class="add-cart-btn pull-right">加入购物车</span> </div> </li> <li> <div class="img-box"> <div class="img"></div> </div> <a class="desc text-ellipsis" href="#">女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤</a> <div class="clearfix action"> <span class="price pull-left">¥35.99</span> <span class="add-cart-btn pull-right">加入购物车</span> </div> </li> <li> <div class="img-box"> <div class="img"></div> </div> <a class="desc text-ellipsis" href="#">女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤</a> <div class="clearfix action"> <span class="price pull-left">¥35.99</span> <span class="add-cart-btn pull-right">加入购物车</span> </div> </li> <li> <div class="img-box"> <div class="img"></div> </div> <a class="desc text-ellipsis" href="#">女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤</a> <div class="clearfix action"> <span class="price pull-left">¥35.99</span> <span class="add-cart-btn pull-right">加入购物车</span> </div> </li> <li> <div class="img-box"> <div class="img"></div> </div> <a class="desc text-ellipsis" href="#">女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤</a> <div class="clearfix action"> <span class="price pull-left">¥35.99</span> <span class="add-cart-btn pull-right">加入购物车</span> </div> </li> <li> <div class="img-box"> <div class="img"></div> </div> <a class="desc text-ellipsis" href="#">女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤女式T恤</a> <div class="clearfix action"> <span class="price pull-left">¥35.99</span> <span class="add-cart-btn pull-right">加入购物车</span> </div> </li> </ul> </div> <div class="brands auto-center"> <div class="title"> <h3> <span>主要的</span> <span class="title-btn">品牌</span> </h3> </div> <div class="clearfix"> <a class="pull-left" href="#"> <img src="./images/brand1.png" height="131"> </a> <a class="pull-left" href="#"> <img src="./images/brand2.png" height="131"> </a> <a class="pull-left" href="#"> <img src="./images/brand3.png" height="131"> </a> <a class="pull-left" href="#"> <img src="./images/brand4.png" height="131"> </a> <a class="pull-left" href="#"> <img src="./images/brand5.png" height="131"> </a> <a class="pull-left" href="#"> <img src="./images/brand6.png" height="131"> </a> </div> </div> <div class="footer full-center"> <div class="auto-center clearfix"> <div class="column"> <h4 class="title">关于我们的点点滴滴</h4> <p class="desc">但让我们想想。<br>没有一个生命是来自国外的精英儿童。<br>所以让他受苦吧。<br>他很荣幸能帮助他。</p> <h4 class="title">跟着我们</h4> <div class="icons"> <span class="bg-facebook"></span> <span class="bg-twitter"></span> <span class="bg-rss"></span> <span class="bg-vimeo"></span> <span class="bg-dribble"></span> <span class="bg-msn"></span> </div> </div> <div class="column"> <h4 class="title">档案</h4> <ul class="date-list"> <li>2012年3月</li> <li>2012年3月</li> <li>2012年3月</li> <li>2012年3月</li> </ul> </div> <div class="column"> <h4 class="title">联系我们</h4> <ul class="concat-list"> <li> <span class="icon bg-envelope"></span> <span>info@premiumcoding.com</span> </li> <li> <span class="icon bg-phone"></span> <span>800 756 156</span> </li> <li> <span class="icon bg-telephone"></span> <span>+386408007561</span> </li> </ul> </div> <div class="column"> <h4 class="title">签署新闻稿</h4> <form action="#" method="post"> <div class="input-row"> <input class="input" type="text" name="name" placeholder="名字"> </div> <div class="input-row"> <input class="input" type="text" name="email1" placeholder="电子邮件"> </div> <div class="input-row"> <input class="submit" type="submit" value="订阅"> </div> </form> </div> </div> </div> <div class="copy full-center"> <div class="auto-center clearfix"> <div class= "bottom pull-right"> Elegantica &copy;2012 by PremiumCoding | All Rights Reserved </div> <div class= "bottom pull-left"> <span>主页</span> <span>投资组合</span> <span>网站地图</span> <span>联系人</span> </div> </div> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-11(12)-day14/index.html
HTML
unknown
24,874
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="首页" content="首页"> <meta description="首页" content="首页"> <title>手机列表</title> <style> * { margin: 0; padding: 0; } ul, ol { list-style: none; } .mobile-list { width: 1030px; margin: 50px auto 0; text-align: center; } .mobile-list>li { box-sizing: border-box; width: 250px; display: inline-block; border: 1px solid; } .mobile-list .title{ font-size: 14px; font-weight: 400; line-height: 42px; } .mobile-list .desc { font-size: 12px; color: #B0B2B9; } .mobile-list .price { font-size: 12px; color: #444; line-height: 28px; } .mobile-list .num { color: red; } </style> </head> <body> <ul class="mobile-list"> <li> <div><img src="./images/1.webp" width="200"></div> <h3 class="title">小米10 青春版 5G</h3> <div class="desc">50倍潜望式变焦/轻薄5G手机</div> <div class="price"><span class="num">2099</span>元起</div> </li> <li> <div><img src="./images/1.webp" width="200"></div> <h3 class="title">小米10 青春版 5G</h3> <div class="desc">50倍潜望式变焦/轻薄5G手机</div> <div class="price"><span class="num">2099</span>元起</div> </li> <li> <div><img src="./images/1.webp" width="200"></div> <h3 class="title">小米10 青春版 5G</h3> <div class="desc">50倍潜望式变焦/轻薄5G手机</div> <div class="price"><span class="num">2099</span>元起</div> </li> <li> <div><img src="./images/1.webp" width="200"></div> <h3 class="title">小米10 青春版 5G</h3> <div class="desc">50倍潜望式变焦/轻薄5G手机</div> <div class="price"><span class="num">2099</span>元起</div> </li> </ul> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-2-day07/index.html
HTML
unknown
2,589
<!DOCTYPE html> <html> <head> <meta chaset="UTF-8"> <meta name="测试1" content="测试1"> <meta desciption="测试1" content="测试1"> <title>测试1</title> <style> div { text-align:center; font-size:50px; } .none { display:none; } .hidden { visibility:hidden; } </style> </head> <body> <div> <p><span>姓名</span> <span class="none">学号</span> <span>班级</span> <span class="hidden">性别</span> <span>入学年份</span> </p> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-2-day07/test1.html
HTML
unknown
765
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="测试2" content="测试2"> <meta description="测试2" content="测试2"> <title>测试2</title> <style> * { padding:0; margin:0; } h1 { margin-bottom:80px; } div { padding-top:50px; } </style> </head> <body> <h1>我是一个标题</h1> <div>我是一个div</div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-2-day07/test2.html
HTML
unknown
561
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="测试3" content="测试3"> <meta description="测试3" content="测试3"> <title>测试2</title> <style> * { margin: 0; padding: 0; } .father { width: 200px; height:200px; background-color: blue; /* border-top: 1px solid; */ /* padding-top: 1px; */ overflow: hidden; } .son { margin-top: 20px; width: 100px; height: 100px; background-color: green; } </style> </head> <body> <div class="father"> <div class="son"></div> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-2-day07/test3.html
HTML
unknown
857
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UFT-8"> <meta name="animal" content="animal"> <meta description="animal" content="animal"> <title>animal</title> <style> * { padding: 0; margin: 0; } .box { width: 880px; margin: 30px auto 0; padding: 50px 10px; border-top: 3px solid rgb(94, 184, 94); } ul { list-style: none; } .title { padding-bottom: 10px; margin-bottom: 20px; border-bottom: 2px solid rgb(94, 184, 94); font-size: 20px; } p { display: inline-block; width: 580px; margin-left: 50px; font-size: 14px; text-indent: 2em; } .text-mult-ellipsis { display: -webkit-inline-box!important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } div { margin-bottom:20px; } </style> </head> <body> <div class="box"> <ul> <li> <h3 class="title">猫头鹰 (owl)</h3> <div> <img src="../image/1.jpg" width="180"> <p class="text-mult-ellipsis">鸮形目(Strigiformes)中的鸟被叫做猫头鹰,总数超过130余种。在除南极洲以外所有的大洲都有分布。大部分的种为夜行性肉食性动物,食物以鼠类为主,也吃昆虫、小鸟、蜥蜴、鱼等动物。该目鸟类头宽大,嘴短而粗壮前端成钩状,头部正面的羽毛排列成面盘.</p> </div> </li> <li> <h3 class="title">羊</h3> <div> <img src="../image/4.jpg" width="180"> <p class="text-mult-ellipsis">羊是羊亚科的统称,哺乳纲、偶蹄目、牛科、羊亚科,是人类的家畜之一。有毛的四腿反刍动物,是羊毛的主要来源。毛色主要是白色。我国主要饲养山羊和绵羊。</p> </div> </li> <li> <h3 class="title">北极熊</h3> <div> <img src="../image/3.jpg" width="180"> <p class="text-mult-ellipsis">北极熊(拉丁学名:Ursus maritimus (Phipps, 1774),是熊科熊属的一种动物,是世界上最大的陆地食肉动物 [1] ,又名白熊。皮肤为黑色,由于毛发透明故外观上通常为白色,</p> </div> </li> <li> <h3 class="title">猴子</h3> <div> <img src="../image/2.jpg" width="180"> <p class="text-mult-ellipsis">猴子。杂食性。以水果为主 不放过唾手可得的肉食。是三种类人猿灵长目动物的成员,灵长目是动物界的种群,猴子一般大脑发达,眼眶朝向前方,眶间距窄,手和脚的趾(指)分开,大拇指灵活,多数能与其他原猴亚目和猿猴亚目。</p> </div> </li> </ul> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-3-day08/anli1/anli1.html
HTML
unknown
3,580
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="shouye" content="shouye"> <meta description="shouye" content="shouye"> <title>首页</title> <style> * { padding: 0; margin: 0; } ul { list-style: none; } .box { width: 600px; margin: 30px auto 0; font-size: 0; } .box>li { display: inline-block; width: 300px; font-size: 14px; padding: 10px 0; } .one::before { content: "1"; } .two::before { content: "2"; } .three::before { content: "3"; } .four::before { content: "4"; } .five::before { content: "5"; } .six::before { content: "6"; } .one::after, .three::after { border: 1px solid blue; color: blue; font-weight: bolder; display:inline-block; text-align: center; line-height: 30px; } .one::after { content: "新"; font-size: 20px; width: 30px; } .three::after { content: "哈啊哈哈"; font-size:15px; width: 70px; } .two::after { content: "热"; border: 1px solid red; color: red; font-weight: bolder; } a { color: black; text-decoration: none; } </style> </head> <body> <ul class="box"> <li class="one"> <a href="#">高福称北京疫情可能要前推一个月</a> </li> <li class="four"> <a href="#">白百何方否认新恋情</a> </li> <li class="two"> <a href="#">北京新发地市场商户回浙江后确诊</a> </li> <li class="five"> <a href="#">男童在确诊患者被子上玩感染</a> </li> <li class="three"> <a href="#">涉事教师承认曾掌掴坠楼小学生</a> </li> <li class="six"> <a href="#">110万买奔驰越野车高速熄火5次</a> </li> </ul> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-3-day08/anli2.html
HTML
unknown
2,737
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="首页" content="首页"> <meta description="首页" content="首页"> <title>首页</title> <style> * { padding: 0; margin: 0; } .auto-center { width: 1000px; margin-left: auto; margin-right: auto; } .full-center { min-width: 1000px; } .clearfix::after { content: ''; display: block; clear: both; } .header { background-color: #000079; } .top { background-color: red; height: 100px; } .banner { background-color: #003E3E; height: 300px; } .container-one>.left { width: 200px; background-color: #613030; height: 500px; float: left; } .container-one>.right { background-color:#336666; margin-left: 200px; height: 300px; } .main { background-color: #467500; margin-top: 10px; } .container-two>li { float:left; width: 250px; height: 150px; box-sizing: border-box; border: 1px dashed #ccc; background-color:#CAFFFF; } ul { list-style: none; } .container-three>.left,.container-three>.right { width: 200px; height: 300px } .container-three>.left { float: left; background-color: #F9F900; } .container-three>.right { float: right; background-color: #A5A552; } .container-three>.middle { margin-left: 200px; margin-right: 200px; height: 100px; background-color: #5CADAD; } .footer { margin-top: 20px; background-color: #642100; height: 200px; } .container-two { margin-top: 10px; } .container-three { margin-top: 10px; } </style> </head> <body> <div class="full-center header"> <div class="auto-center top"></div> </div> <div class="full-center banner"></div> <div class="auto-center main "> <div class="container-one clearfix"> <div class="left"></div> <div class="right"></div> </div> <ul class="container-two clearfix"> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> </ul> <div class="container-three clearfix"> <div class="left"></div> <div class="right"></div> <div class="middle"></div> </div> <div class="container-three clearfix"> <div class="left"></div> <div class="right"></div> <div class="middle"></div> </div> </div> <div class="full-center footer"> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-4-day09/anli1.html
HTML
unknown
3,786
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>定位</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } ul { list-style: none; } body { font: bolder 25px "Microsoft YaHei","Heiti SC",tahoma,arial,"Hiragino Sans GB","\5B8B\4F53",sans-serif; color: white; } .auto-center { width: 1000px; margin-left: auto; margin-right: auto; } .full-center { min-width: 1000px; } .text-center { text-align: center; } .clearfix::after { content: ''; display: block; clear: both; } .top { background-color: #000079; } .top>.auto-center { line-height: 100px; background-color: #EA0000; } .banner { background-color: #003E3E; line-height: 300px; } .main { margin-top: 20px; background-color: #467500; } /*基于浮动实现两栏布局,左边200px,右侧自动填充剩余空间*/ .content-one { position: relative; height: 500px; } .content-one>.left { width: 200px; background-color: #613030; line-height: 500px; /* float: left; */ position: absolute; } .content-one>.right { /* 思考,right为绝对定位是否可以实现两栏布局? */ margin-left: 200px; background-color: #336666; line-height: 300px; } /*基于浮动实现栏栅布局*/ .content-tow { margin-top: 10px; } .content-tow>.list-item { float: left; width: 250px; height: 150px; box-sizing: border-box; background-color: #CAFFFF; text-align: center; line-height: 150px; color: black; border: 1px dashed #ccc; } /* 基于浮动实现三栏布局,左固定200px,右固定250px,中间自适应宽度(填充剩余空间) 注意:中间一栏必须放到最后 */ .content-three { margin-top: 20px; position: relative; height: 300px; } .content-three>.left { position: absolute; width: 200px; left: 0; top: 0; /* float: left; */ line-height: 300px; background-color: #F9F900; } .content-three>.right { position: absolute; width: 250px; right: 0; top: 0; /* float: right; */ line-height: 300px; background-color: #A5A552; } .content-three>.middle { background-color: #5CADAD; margin-left: 200px; margin-right: 250px; } /* 基于浮动实现三栏布局,左固定200px,右固定250px,中间自适应宽度(填充剩余空间) 使用父级外边距实现 */ .content-four { margin-top: 20px; padding-left: 200px; padding-right: 250px; } .content-four>.left { width: 200px; float: left; line-height: 300px; background-color: #F9F900; margin-left: -200px; } .content-four>.right { width: 250px; float: right; line-height: 300px; background-color: #A5A552; margin-right: -250px; } .content-four>.middle { background-color: #5CADAD; } .footer { margin-top: 20px; background-color: #642100; line-height: 200px; } .fixed-ad { position: fixed; width: 100px; height: 300px; right: 20px; top: 50%; margin-top: -150px; background-color: #4D0000; } .other { margin-top: 30px; background-color: #FF60AF; border: 1px dashed #ccc; position: relative; } .other .bottom { position: absolute; bottom: -10px; left: 20px; right: 20px; background-color: #B15BFF; } </style> </head> <body> <div class="top"> <div class="auto-center text-center">top</div> </div> <div class="banner text-center full-center"> banner </div> <div class="main auto-center"> <div class="content-one"> <div class="left text-center"> left </div> <div class="right text-center"> right </div> </div> <ul class="content-tow clearfix"> <li class="list-item">list-item1</li> <li class="list-item">list-item2</li> <li class="list-item">list-item3</li> <li class="list-item">list-item4</li> <li class="list-item">list-item5</li> <li class="list-item">list-item6</li> <li class="list-item">list-item7</li> <li class="list-item">list-item8</li> </ul> <div class="content-three clearfix"> <div class="left text-center"> left </div> <div class="right text-center"> right </div> <div class="middle text-center"> middle </div> </div> <div class="content-four clearfix"> <div class="left text-center"> left </div> <div class="right text-center"> right </div> <div class="middle text-center"> middle </div> </div> </div> <div class="other auto-center"> <div>content</div> <div>content</div> <div>content</div> <div>content</div> <div>content</div> <div class="bottom text-center">title</div> </div> <div class="footer text-center full-center"> footer </div> <div class="fixed-ad text-center">ad</div> <div style="position: fixed; top: 200px; left: 50%; margin-left: 500px; width: 50px; height: 150px; background-color: #ccc;">版心固定</div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-5-day10/anli1.html
HTML
unknown
6,721
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="首页" content="首页"> <meta description="首页" content="首页"> <title>首页</title> <style> * { padding: 0; margin: 0; } .auto-center { width: 1000px; margin-left: auto; margin-right: auto; } .banner { margin-top: 30px; background-color: #35c3d9; padding: 20px 0; } .full-center { min-width: 1000px; } .banner .auto-center { position: relative; } .banner .title { position: absolute; right: 20px; top: 50%; width: 344px; line-height: 80px; margin-top: -80px; color: white; font-size: 56px; text-align: center; } .banner .backward, .banner .forward { position: absolute; top: 50%; margin-top: -30px } .banner .backward { left: -80px; } .banner .forward { right: -80px; } </style> </head> <body> <div class="banner full-center auto-center"> <div class=""> <img src="./images/2.png"> <span class="title">查看我们最新时装</span> <img class="backward" src="./images/1.png"> <img class="forward" src="./images/3.png"> </div> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-5-day10/anli2.html
HTML
unknown
1,786
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>背景</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } ul { list-style: none; } body { font: bolder 25px "Microsoft YaHei","Heiti SC",tahoma,arial,"Hiragino Sans GB","\5B8B\4F53",sans-serif; color: white; } .auto-center { width: 1000px; margin-left: auto; margin-right: auto; } .full-center { min-width: 1000px; } .text-center { text-align: center; } .clearfix::after { content: ''; display: block; clear: both; } .top { background: #000079 url("https://img2.baidu.com/it/u=1403977252,4044276651&fm=253&fmt=auto&app=138&f=JPEG?w=679&h=500")left top /cover no-repeat; } .top>.auto-center { line-height: 100px; background-color: rgba(0,0,0,.5); } .banner { background: #003E3E url("https://img0.baidu.com/it/u=1811701003,4165153230&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800") center /cover no-repeat; line-height: 300px; } .main { margin-top: 20px; background: #467500 url("./images/1.png"); } /*基于浮动实现两栏布局,左边200px,右侧自动填充剩余空间*/ .content-one { position: relative; height: 500px; } .content-one>.left { width: 200px; background-color: #613030; line-height: 500px; /* float: left; */ position: absolute; } .content-one>.right { /* 思考,right为绝对定位是否可以实现两栏布局? */ margin-left: 200px; background-color: #336666; line-height: 300px; } /*基于浮动实现栏栅布局*/ .content-tow { margin-top: 10px; } .content-tow>.list-item { float: left; width: 250px; height: 150px; box-sizing: border-box; background-color: #CAFFFF; background-size: contain; background-position: center; background-repeat: no-repeat; text-align: center; line-height: 150px; color: black; border: 1px dashed #ccc; } /* 基于浮动实现三栏布局,左固定200px,右固定250px,中间自适应宽度(填充剩余空间) 注意:中间一栏必须放到最后 */ .content-three { margin-top: 20px; position: relative; height: 300px; } .content-three>.left { position: absolute; width: 200px; left: 0; top: 0; /* float: left; */ line-height: 300px; background-color: #F9F900; } .content-three>.right { position: absolute; width: 250px; right: 0; top: 0; /* float: right; */ line-height: 300px; background-color: #A5A552; } .content-three>.middle { background-color: #5CADAD; margin-left: 200px; margin-right: 250px; } /* 基于浮动实现三栏布局,左固定200px,右固定250px,中间自适应宽度(填充剩余空间) 使用父级外边距实现 */ .content-four { margin-top: 20px; padding-left: 200px; padding-right: 250px; } .content-four>.left { width: 200px; float: left; line-height: 300px; background-color: #F9F900; margin-left: -200px; } .content-four>.right { width: 250px; float: right; line-height: 300px; background-color: #A5A552; margin-right: -250px; } .content-four>.middle { background-color: #5CADAD; } .footer { margin-top: 20px; background-color: #642100; line-height: 200px; } .fixed-ad { position: fixed; width: 100px; height: 300px; right: 20px; top: 50%; margin-top: -150px; background: #4D0000 url("https://tpc.googlesyndication.com/simgad/17371016686948028154?sqp=4sqPyQQ7QjkqNxABHQAAtEIgASgBMAk4A0DwkwlYAWBfcAKAAQGIAQGdAQAAgD-oAQGwAYCt4gS4AV_FAS2ynT4&rs=AOga4qnNb_psIDjzxDXDvxySskllK06_2Q") center/cover no-repeat; } .other { margin-top: 30px; background-color: #FF60AF; border: 1px dashed #ccc; position: relative; } .other .bottom { position: absolute; bottom: -10px; left: 20px; right: 20px; background-color: #B15BFF; } </style> </head> <body> <div class="top full-center"> <div class="auto-center text-center">top</div> </div> <div class="banner text-center full-center"> banner </div> <div class="main auto-center"> <div class="content-one"> <div class="left text-center"> left </div> <div class="right text-center"> right </div> </div> <ul class="content-tow clearfix"> <li class="list-item" style="background-image: url(https://tse4-mm.cn.bing.net/th/id/OIP-C.1MOvhYr7-PNCCFY1w5yIzAHaEo?rs=1&pid=ImgDetMain)">list-item1</li> <li class="list-item" style="background-image: url(https://pic4.zhimg.com/v2-5290caf1f5c8c270e6da56b0361c9e1b_r.jpg)">list-item2</li> <li class="list-item" style="background-image: url(https://tse3-mm.cn.bing.net/th/id/OIP-C.neU_lyZXZpazGKjZXAlGywHaEK?rs=1&pid=ImgDetMain)">list-item3</li> <li class="list-item" style="background-image: url(./images/2.png)">list-item4</li> <li class="list-item" style="background-image: url(https://ts1.cn.mm.bing.net/th/id/R-C.31df3a5a2d8462228734f95d459883e2?rik=7EE6TeWDk%2f%2bctQ&riu=http%3a%2f%2fwww.quazero.com%2fuploads%2fallimg%2f140303%2f1-140303214331.jpg&ehk=SpI7mz%2byLqOkT8BL79jcd3iCtQYNFlBHQzbtF1p0vuQ%3d&risl=&pid=ImgRaw&r=0)">list-item5</li> <li class="list-item" style="background-image: url(https://img1.pconline.com.cn/piclib/200807/22/batch/1/5836/1216741512734nnouustae4.jpg)">list-item6</li> <li class="list-item" style="background-image: url(https://www.euweb.cn/wp-content/uploads/2016/12/302636-106.jpg)">list-item7</li> <li class="list-item" style="background-image: url(https://n.sinaimg.cn/sinacn10116/600/w1920h1080/20190326/2c30-hutwezf6832339.jpg)">list-item8</li> </ul> <div class="content-three clearfix"> <div class="left text-center"> left </div> <div class="right text-center"> right </div> <div class="middle text-center"> middle </div> </div> <div class="content-four clearfix"> <div class="left text-center"> left </div> <div class="right text-center"> right </div> <div class="middle text-center"> middle </div> </div> </div> <div class="other auto-center"> <div>content</div> <div>content</div> <div>content</div> <div>content</div> <div>content</div> <div class="bottom text-center">title</div> </div> <div class="footer text-center full-center"> footer </div> <div class="fixed-ad text-center">ad</div> <div style="position: fixed; top: 200px; left: 50%; margin-left: 500px; width: 50px; height: 150px; background-color: #ccc;">版心固定</div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-6-day11/anli1.html
HTML
unknown
8,327
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="shouye" content="shouye"> <meta description="shouye" content="shouye"> <title>首页</title> <style> * { padding: 0; margin: 0; } ol { width: 600px; font-size: 0; margin: 30px auto; } ol>li { width: 300px; font-size: 14px; padding: 10px 0; } ol>li,span { display: inline-block; } span,a { text-align: center; } a { color: black; text-decoration: none; } a:hover { color: blue; } .sprites { background-image: url("./images/3.png"); background-repeat: no-repeat; } .one1,.two2,.three3,.qita { width: 20px; height: 20px; } .xin,.re { width: 16px; height: 16px; } .one1 { background-position-x: -10px; background-position-y: -10px; } .qita { background-position-x: -50px; background-position-y: -50px; } .xin { background-position-x: -90px; background-position-y: -46px; } .three3 { background-position-x: -10px; background-position-y: -50px; } .two2 { background-position-x: -50px; background-position-y: -10px; } .re { background-position-x: -90px; background-position-y: -10px; } </style> </head> <body> <ol> <li> <span class="sprites one1">1</span> <a href="#">高福称北京疫情可能要前推一个月</a> <span class="sprites re"></span> </li> <li> <span class="sprites qita">4</span> <a href="#">白百何方否认新恋情</a> </li> <li> <span class="sprites two2">2</span> <a href="#">北京新发地市场商户回浙江后确诊</a> <span class="sprites xin"></span> </li> <li> <span class="sprites qita">5</span> <a href="#">男童在确诊患者被子上玩感染</a> </li> <li> <span class="sprites three3">3</span> <a href="#">涉事教师承认曾掌掴坠楼小学生</a> </li> <li> <span class="sprites qita">6</span> <a href="#">110万买奔驰越野车高速熄火5次</a> </li> </ul> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-6-day11/anli2.html
HTML
unknown
3,166
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="三角形" content="三角形"> <meta description="三角形" content="三角形"> <title>三角形</title> <style> .btn { position: relative; width: 100px; height: 50px; background-color: black; color: white; margin: 30px auto 0; line-height: 50px; text-align: center; } .tips { position: absolute; width: 300px; height: 50px; left: 50%; background-color: blue; margin-left: -150px; top: 60px; color: white } .tips::after { content:''; position: absolute; width: 0; height: 0; line-height: 0; font-size: 0; border: 10px solid transparent; border-bottom-color: red; left: 50%; margin-left: -10px; bottom: 50.5px; } .btn:hover .tips { display: block; } .btn .tips { display: none; } </style> </head> <body> <div class="btn"> 查看 <div class="tips">我想学习前端知识</div> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-8-day12/anli1.html
HTML
unknown
1,571
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="图片" content="图片"> <meta description="图片" content="图片"> <title>图片</title> <style> * { margin: 0; padding: 0; } div { width: 300px; margin: 30px auto 0; background-color: blue; } .method1 { display: block; } .method2 { /* vertical-align: top; vertical-align: middle; */ vertical-align: bottom; } </style> </head> <body> <div> <img src="./images/1.jpg" height="50px"> </div> <div> <img class="method1 " src="./images/1.jpg" height="50px"> </div> <div> <img class="method2 " src="./images/1.jpg" height="50px"> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-8-day12/anli2.html
HTML
unknown
1,034
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="计数器" content="计数器"> <meta description="计数器" content="计数器"> <title>计数器</title> <style> * { margin: 0; padding: 0; } ul { list-style: none; } body { counter-reset: month; } .box { counter-reset: day; width: 300px; margin: 30px auto 0; } .month { text-align: center; } .month::after { counter-increment: month; content: '第 'counter(month)'月'; } .day>li { float: left; width: 50px; height: 50px; text-align: center; line-height: 50px; } .day>li::after { counter-increment: day; content: counter(day); } .clearfix::after { content: ''; display: block; clear: both; } </style> </head> <body> <div class="box"> <h3 class="month"></h3> <ul class="day clearfix"> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> </ul> </div> <div class="box"> <h3 class="month"></h3> <ul class="day clearfix"> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> </ul> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-8-day12/anli3.html
HTML
unknown
2,103
/* Logo 字体 */ @font-face { font-family: "iconfont logo"; src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834'); src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') format('embedded-opentype'), url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'), url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'), url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') format('svg'); } .logo { font-family: "iconfont logo"; font-size: 160px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* tabs */ .nav-tabs { position: relative; } .nav-tabs .nav-more { position: absolute; right: 0; bottom: 0; height: 42px; line-height: 42px; color: #666; } #tabs { border-bottom: 1px solid #eee; } #tabs li { cursor: pointer; width: 100px; height: 40px; line-height: 40px; text-align: center; font-size: 16px; border-bottom: 2px solid transparent; position: relative; z-index: 1; margin-bottom: -1px; color: #666; } #tabs .active { border-bottom-color: #f00; color: #222; } .tab-container .content { display: none; } /* 页面布局 */ .main { padding: 30px 100px; width: 960px; margin: 0 auto; } .main .logo { color: #333; text-align: left; margin-bottom: 30px; line-height: 1; height: 110px; margin-top: -50px; overflow: hidden; *zoom: 1; } .main .logo a { font-size: 160px; color: #333; } .helps { margin-top: 40px; } .helps pre { padding: 20px; margin: 10px 0; border: solid 1px #e7e1cd; background-color: #fffdef; overflow: auto; } .icon_lists { width: 100% !important; overflow: hidden; *zoom: 1; } .icon_lists li { width: 100px; margin-bottom: 10px; margin-right: 20px; text-align: center; list-style: none !important; cursor: default; } .icon_lists li .code-name { line-height: 1.2; } .icon_lists .icon { display: block; height: 100px; line-height: 100px; font-size: 42px; margin: 10px auto; color: #333; -webkit-transition: font-size 0.25s linear, width 0.25s linear; -moz-transition: font-size 0.25s linear, width 0.25s linear; transition: font-size 0.25s linear, width 0.25s linear; } .icon_lists .icon:hover { font-size: 100px; } .icon_lists .svg-icon { /* 通过设置 font-size 来改变图标大小 */ width: 1em; /* 图标和文字相邻时,垂直对齐 */ vertical-align: -0.15em; /* 通过设置 color 来改变 SVG 的颜色/fill */ fill: currentColor; /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示 normalize.css 中也包含这行 */ overflow: hidden; } .icon_lists li .name, .icon_lists li .code-name { color: #666; } /* markdown 样式 */ .markdown { color: #666; font-size: 14px; line-height: 1.8; } .highlight { line-height: 1.5; } .markdown img { vertical-align: middle; max-width: 100%; } .markdown h1 { color: #404040; font-weight: 500; line-height: 40px; margin-bottom: 24px; } .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { color: #404040; margin: 1.6em 0 0.6em 0; font-weight: 500; clear: both; } .markdown h1 { font-size: 28px; } .markdown h2 { font-size: 22px; } .markdown h3 { font-size: 16px; } .markdown h4 { font-size: 14px; } .markdown h5 { font-size: 12px; } .markdown h6 { font-size: 12px; } .markdown hr { height: 1px; border: 0; background: #e9e9e9; margin: 16px 0; clear: both; } .markdown p { margin: 1em 0; } .markdown>p, .markdown>blockquote, .markdown>.highlight, .markdown>ol, .markdown>ul { width: 80%; } .markdown ul>li { list-style: circle; } .markdown>ul li, .markdown blockquote ul>li { margin-left: 20px; padding-left: 4px; } .markdown>ul li p, .markdown>ol li p { margin: 0.6em 0; } .markdown ol>li { list-style: decimal; } .markdown>ol li, .markdown blockquote ol>li { margin-left: 20px; padding-left: 4px; } .markdown code { margin: 0 3px; padding: 0 5px; background: #eee; border-radius: 3px; } .markdown strong, .markdown b { font-weight: 600; } .markdown>table { border-collapse: collapse; border-spacing: 0px; empty-cells: show; border: 1px solid #e9e9e9; width: 95%; margin-bottom: 24px; } .markdown>table th { white-space: nowrap; color: #333; font-weight: 600; } .markdown>table th, .markdown>table td { border: 1px solid #e9e9e9; padding: 8px 16px; text-align: left; } .markdown>table th { background: #F7F7F7; } .markdown blockquote { font-size: 90%; color: #999; border-left: 4px solid #e9e9e9; padding-left: 0.8em; margin: 1em 0; } .markdown blockquote p { margin: 0; } .markdown .anchor { opacity: 0; transition: opacity 0.3s ease; margin-left: 8px; } .markdown .waiting { color: #ccc; } .markdown h1:hover .anchor, .markdown h2:hover .anchor, .markdown h3:hover .anchor, .markdown h4:hover .anchor, .markdown h5:hover .anchor, .markdown h6:hover .anchor { opacity: 1; display: inline-block; } .markdown>br, .markdown>p>br { clear: both; } .hljs { display: block; background: white; padding: 0.5em; color: #333333; overflow-x: auto; } .hljs-comment, .hljs-meta { color: #969896; } .hljs-string, .hljs-variable, .hljs-template-variable, .hljs-strong, .hljs-emphasis, .hljs-quote { color: #df5000; } .hljs-keyword, .hljs-selector-tag, .hljs-type { color: #a71d5d; } .hljs-literal, .hljs-symbol, .hljs-bullet, .hljs-attribute { color: #0086b3; } .hljs-section, .hljs-name { color: #63a35c; } .hljs-tag { color: #333333; } .hljs-title, .hljs-attr, .hljs-selector-id, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo { color: #795da3; } .hljs-addition { color: #55a532; background-color: #eaffea; } .hljs-deletion { color: #bd2c00; background-color: #ffecec; } .hljs-link { text-decoration: underline; } /* 代码高亮 */ /* PrismJS 1.15.0 https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */ /** * prism.js default theme for JavaScript, CSS and HTML * Based on dabblet (http://dabblet.com) * @author Lea Verou */ code[class*="language-"], pre[class*="language-"] { color: black; background: none; text-shadow: 0 1px white; font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; word-wrap: normal; line-height: 1.5; -moz-tab-size: 4; -o-tab-size: 4; tab-size: 4; -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; } pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection { text-shadow: none; background: #b3d4fc; } pre[class*="language-"]::selection, pre[class*="language-"] ::selection, code[class*="language-"]::selection, code[class*="language-"] ::selection { text-shadow: none; background: #b3d4fc; } @media print { code[class*="language-"], pre[class*="language-"] { text-shadow: none; } } /* Code blocks */ pre[class*="language-"] { padding: 1em; margin: .5em 0; overflow: auto; } :not(pre)>code[class*="language-"], pre[class*="language-"] { background: #f5f2f0; } /* Inline code */ :not(pre)>code[class*="language-"] { padding: .1em; border-radius: .3em; white-space: normal; } .token.comment, .token.prolog, .token.doctype, .token.cdata { color: slategray; } .token.punctuation { color: #999; } .namespace { opacity: .7; } .token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: #905; } .token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #690; } .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { color: #9a6e3a; background: hsla(0, 0%, 100%, .5); } .token.atrule, .token.attr-value, .token.keyword { color: #07a; } .token.function, .token.class-name { color: #DD4A68; } .token.regex, .token.important, .token.variable { color: #e90; } .token.important, .token.bold { font-weight: bold; } .token.italic { font-style: italic; } .token.entity { cursor: help; }
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-8-day12/anli4/font_4500581_ib98uqz2c6/demo.css
CSS
unknown
8,429
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>iconfont Demo</title> <link rel="shortcut icon" href="//img.alicdn.com/imgextra/i4/O1CN01Z5paLz1O0zuCC7osS_!!6000000001644-55-tps-83-82.svg" type="image/x-icon"/> <link rel="icon" type="image/svg+xml" href="//img.alicdn.com/imgextra/i4/O1CN01Z5paLz1O0zuCC7osS_!!6000000001644-55-tps-83-82.svg"/> <link rel="stylesheet" href="https://g.alicdn.com/thx/cube/1.3.2/cube.min.css"> <link rel="stylesheet" href="demo.css"> <link rel="stylesheet" href="iconfont.css"> <script src="iconfont.js"></script> <!-- jQuery --> <script src="https://a1.alicdn.com/oss/uploads/2018/12/26/7bfddb60-08e8-11e9-9b04-53e73bb6408b.js"></script> <!-- 代码高亮 --> <script src="https://a1.alicdn.com/oss/uploads/2018/12/26/a3f714d0-08e6-11e9-8a15-ebf944d7534c.js"></script> <style> .main .logo { margin-top: 0; height: auto; } .main .logo a { display: flex; align-items: center; } .main .logo .sub-title { margin-left: 0.5em; font-size: 22px; color: #fff; background: linear-gradient(-45deg, #3967FF, #B500FE); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } </style> </head> <body> <div class="main"> <h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" target="_blank"> <img width="200" src="https://img.alicdn.com/imgextra/i3/O1CN01Mn65HV1FfSEzR6DKv_!!6000000000514-55-tps-228-59.svg"> </a></h1> <div class="nav-tabs"> <ul id="tabs" class="dib-box"> <li class="dib active"><span>Unicode</span></li> <li class="dib"><span>Font class</span></li> <li class="dib"><span>Symbol</span></li> </ul> <a href="https://www.iconfont.cn/manage/index?manage_type=myprojects&projectId=4500581" target="_blank" class="nav-more">查看项目</a> </div> <div class="tab-container"> <div class="content unicode" style="display: block;"> <ul class="icon_lists dib-box"> <li class="dib"> <span class="icon iconfont">&#xe622;</span> <div class="name">购物车</div> <div class="code-name">&amp;#xe622;</div> </li> <li class="dib"> <span class="icon iconfont">&#xe61d;</span> <div class="name">我的</div> <div class="code-name">&amp;#xe61d;</div> </li> <li class="dib"> <span class="icon iconfont">&#xe616;</span> <div class="name">分类</div> <div class="code-name">&amp;#xe616;</div> </li> <li class="dib"> <span class="icon iconfont">&#xe6e2;</span> <div class="name">首页</div> <div class="code-name">&amp;#xe6e2;</div> </li> </ul> <div class="article markdown"> <h2 id="unicode-">Unicode 引用</h2> <hr> <p>Unicode 是字体在网页端最原始的应用方式,特点是:</p> <ul> <li>支持按字体的方式去动态调整图标大小,颜色等等。</li> <li>默认情况下不支持多色,直接添加多色图标会自动去色。</li> </ul> <blockquote> <p>注意:新版 iconfont 支持两种方式引用多色图标:SVG symbol 引用方式和彩色字体图标模式。(使用彩色字体图标需要在「编辑项目」中开启「彩色」选项后并重新生成。)</p> </blockquote> <p>Unicode 使用步骤如下:</p> <h3 id="-font-face">第一步:拷贝项目下面生成的 <code>@font-face</code></h3> <pre><code class="language-css" >@font-face { font-family: 'iconfont'; src: url('iconfont.eot?t=1712650731738'); /* IE9 */ src: url('iconfont.eot?t=1712650731738#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('iconfont.woff2?t=1712650731738') format('woff2'), url('iconfont.woff?t=1712650731738') format('woff'), url('iconfont.ttf?t=1712650731738') format('truetype'), url('iconfont.svg?t=1712650731738#iconfont') format('svg'); } </code></pre> <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3> <pre><code class="language-css" >.iconfont { font-family: "iconfont" !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } </code></pre> <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3> <pre> <code class="language-html" >&lt;span class="iconfont"&gt;&amp;#x33;&lt;/span&gt; </code></pre> <blockquote> <p>"iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p> </blockquote> </div> </div> <div class="content font-class"> <ul class="icon_lists dib-box"> <li class="dib"> <span class="icon iconfont icon-gouwuche"></span> <div class="name"> 购物车 </div> <div class="code-name">.icon-gouwuche </div> </li> <li class="dib"> <span class="icon iconfont icon-wode"></span> <div class="name"> 我的 </div> <div class="code-name">.icon-wode </div> </li> <li class="dib"> <span class="icon iconfont icon-fenlei"></span> <div class="name"> 分类 </div> <div class="code-name">.icon-fenlei </div> </li> <li class="dib"> <span class="icon iconfont icon-shouye"></span> <div class="name"> 首页 </div> <div class="code-name">.icon-shouye </div> </li> </ul> <div class="article markdown"> <h2 id="font-class-">font-class 引用</h2> <hr> <p>font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。</p> <p>与 Unicode 使用方式相比,具有如下特点:</p> <ul> <li>相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。</li> <li>因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。</li> </ul> <p>使用步骤如下:</p> <h3 id="-fontclass-">第一步:引入项目下面生成的 fontclass 代码:</h3> <pre><code class="language-html">&lt;link rel="stylesheet" href="./iconfont.css"&gt; </code></pre> <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3> <pre><code class="language-html">&lt;span class="iconfont icon-xxx"&gt;&lt;/span&gt; </code></pre> <blockquote> <p>" iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p> </blockquote> </div> </div> <div class="content symbol"> <ul class="icon_lists dib-box"> <li class="dib"> <svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icon-gouwuche"></use> </svg> <div class="name">购物车</div> <div class="code-name">#icon-gouwuche</div> </li> <li class="dib"> <svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icon-wode"></use> </svg> <div class="name">我的</div> <div class="code-name">#icon-wode</div> </li> <li class="dib"> <svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icon-fenlei"></use> </svg> <div class="name">分类</div> <div class="code-name">#icon-fenlei</div> </li> <li class="dib"> <svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icon-shouye"></use> </svg> <div class="name">首页</div> <div class="code-name">#icon-shouye</div> </li> </ul> <div class="article markdown"> <h2 id="symbol-">Symbol 引用</h2> <hr> <p>这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a> 这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:</p> <ul> <li>支持多色图标了,不再受单色限制。</li> <li>通过一些技巧,支持像字体那样,通过 <code>font-size</code>, <code>color</code> 来调整样式。</li> <li>兼容性较差,支持 IE9+,及现代浏览器。</li> <li>浏览器渲染 SVG 的性能一般,还不如 png。</li> </ul> <p>使用步骤如下:</p> <h3 id="-symbol-">第一步:引入项目下面生成的 symbol 代码:</h3> <pre><code class="language-html">&lt;script src="./iconfont.js"&gt;&lt;/script&gt; </code></pre> <h3 id="-css-">第二步:加入通用 CSS 代码(引入一次就行):</h3> <pre><code class="language-html">&lt;style&gt; .icon { width: 1em; height: 1em; vertical-align: -0.15em; fill: currentColor; overflow: hidden; } &lt;/style&gt; </code></pre> <h3 id="-">第三步:挑选相应图标并获取类名,应用于页面:</h3> <pre><code class="language-html">&lt;svg class="icon" aria-hidden="true"&gt; &lt;use xlink:href="#icon-xxx"&gt;&lt;/use&gt; &lt;/svg&gt; </code></pre> </div> </div> </div> </div> <script> $(document).ready(function () { $('.tab-container .content:first').show() $('#tabs li').click(function (e) { var tabContent = $('.tab-container .content') var index = $(this).index() if ($(this).hasClass('active')) { return } else { $('#tabs li').removeClass('active') $(this).addClass('active') tabContent.hide().eq(index).fadeIn() } }) }) </script> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-8-day12/anli4/font_4500581_ib98uqz2c6/demo_index.html
HTML
unknown
10,717
@font-face { font-family: "iconfont"; /* Project id 4500581 */ src: url('iconfont.eot?t=1712650731738'); /* IE9 */ src: url('iconfont.eot?t=1712650731738#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('iconfont.woff2?t=1712650731738') format('woff2'), url('iconfont.woff?t=1712650731738') format('woff'), url('iconfont.ttf?t=1712650731738') format('truetype'), url('iconfont.svg?t=1712650731738#iconfont') format('svg'); } .iconfont { font-family: "iconfont" !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-gouwuche:before { content: "\e622"; } .icon-wode:before { content: "\e61d"; } .icon-fenlei:before { content: "\e616"; } .icon-shouye:before { content: "\e6e2"; }
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-8-day12/anli4/font_4500581_ib98uqz2c6/iconfont.css
CSS
unknown
817
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="字体图标" content="字体图标"> <meta description="字体图标" content="字体图标"> <title>字体图标</title> <link rel="stylesheet" href="./iconfont/iconfont.css"> <style> * { padding: 0; margin: 0; } .fotter { position: fixed; bottom: 0; left: 0; right: 0; height: 50px; } </style> </head> <body> <div class="fotter"> <span class="iconfont" style="color:blue;">&#xe622;</span> <span class="iconfont">&#xe61d;</span> <span class="iconfont">&#xe616;</span> <span class="iconfont">&#xe6e2;</span> <span class="iconfont">&#xe892;</span> <span class="iconfont icon-gouwuche" style="color:blue;"></span> <span class="iconfont icon-wode"></span> <span class="iconfont icon-fenlei"></span> <span class="iconfont icon-shouye"></span> <span class="iconfont icon-shezhi"></span> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-8-day12/anli4.html
HTML
unknown
1,260
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="字体图标" content="字体图标"> <meta description="字体图标" content="字体图标"> <title>字体图标</title> <link rel="stylesheet" href="./iconfont/iconfont.css"> <style> * { padding: 0; margin: 0; } a { text-decoration: none; color: black; } a:hover { color: red; } .fotter { position: fixed; bottom: 0; left: 0; right: 0; height: 100px; font-size: 0; box-shadow: 0 0 10px #ccc; } .fotter .item { width: 25%; display: inline-block; font-size: 18px; text-align: center; cursor: pointer; margin-top: 15px; } .iconfont { font-size: 50px; } </style> </head> <body> <div class="fotter"> <a class="item"> <div class="iconfont icon-shouye"></div> <div>首页</div> </a> <a class="item"> <div class="iconfont icon-fenlei"></div> <div>分类</div> </a> <a class="item"> <div class="iconfont icon-gouwuche"></div> <div>购物车</div> </a> <a class="item"> <div class="iconfont icon-wode"></div> <div>我的</div> </a> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-8-day12/anli5.html
HTML
unknown
1,835
/* Logo 字体 */ @font-face { font-family: "iconfont logo"; src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834'); src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') format('embedded-opentype'), url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'), url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'), url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') format('svg'); } .logo { font-family: "iconfont logo"; font-size: 160px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* tabs */ .nav-tabs { position: relative; } .nav-tabs .nav-more { position: absolute; right: 0; bottom: 0; height: 42px; line-height: 42px; color: #666; } #tabs { border-bottom: 1px solid #eee; } #tabs li { cursor: pointer; width: 100px; height: 40px; line-height: 40px; text-align: center; font-size: 16px; border-bottom: 2px solid transparent; position: relative; z-index: 1; margin-bottom: -1px; color: #666; } #tabs .active { border-bottom-color: #f00; color: #222; } .tab-container .content { display: none; } /* 页面布局 */ .main { padding: 30px 100px; width: 960px; margin: 0 auto; } .main .logo { color: #333; text-align: left; margin-bottom: 30px; line-height: 1; height: 110px; margin-top: -50px; overflow: hidden; *zoom: 1; } .main .logo a { font-size: 160px; color: #333; } .helps { margin-top: 40px; } .helps pre { padding: 20px; margin: 10px 0; border: solid 1px #e7e1cd; background-color: #fffdef; overflow: auto; } .icon_lists { width: 100% !important; overflow: hidden; *zoom: 1; } .icon_lists li { width: 100px; margin-bottom: 10px; margin-right: 20px; text-align: center; list-style: none !important; cursor: default; } .icon_lists li .code-name { line-height: 1.2; } .icon_lists .icon { display: block; height: 100px; line-height: 100px; font-size: 42px; margin: 10px auto; color: #333; -webkit-transition: font-size 0.25s linear, width 0.25s linear; -moz-transition: font-size 0.25s linear, width 0.25s linear; transition: font-size 0.25s linear, width 0.25s linear; } .icon_lists .icon:hover { font-size: 100px; } .icon_lists .svg-icon { /* 通过设置 font-size 来改变图标大小 */ width: 1em; /* 图标和文字相邻时,垂直对齐 */ vertical-align: -0.15em; /* 通过设置 color 来改变 SVG 的颜色/fill */ fill: currentColor; /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示 normalize.css 中也包含这行 */ overflow: hidden; } .icon_lists li .name, .icon_lists li .code-name { color: #666; } /* markdown 样式 */ .markdown { color: #666; font-size: 14px; line-height: 1.8; } .highlight { line-height: 1.5; } .markdown img { vertical-align: middle; max-width: 100%; } .markdown h1 { color: #404040; font-weight: 500; line-height: 40px; margin-bottom: 24px; } .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { color: #404040; margin: 1.6em 0 0.6em 0; font-weight: 500; clear: both; } .markdown h1 { font-size: 28px; } .markdown h2 { font-size: 22px; } .markdown h3 { font-size: 16px; } .markdown h4 { font-size: 14px; } .markdown h5 { font-size: 12px; } .markdown h6 { font-size: 12px; } .markdown hr { height: 1px; border: 0; background: #e9e9e9; margin: 16px 0; clear: both; } .markdown p { margin: 1em 0; } .markdown>p, .markdown>blockquote, .markdown>.highlight, .markdown>ol, .markdown>ul { width: 80%; } .markdown ul>li { list-style: circle; } .markdown>ul li, .markdown blockquote ul>li { margin-left: 20px; padding-left: 4px; } .markdown>ul li p, .markdown>ol li p { margin: 0.6em 0; } .markdown ol>li { list-style: decimal; } .markdown>ol li, .markdown blockquote ol>li { margin-left: 20px; padding-left: 4px; } .markdown code { margin: 0 3px; padding: 0 5px; background: #eee; border-radius: 3px; } .markdown strong, .markdown b { font-weight: 600; } .markdown>table { border-collapse: collapse; border-spacing: 0px; empty-cells: show; border: 1px solid #e9e9e9; width: 95%; margin-bottom: 24px; } .markdown>table th { white-space: nowrap; color: #333; font-weight: 600; } .markdown>table th, .markdown>table td { border: 1px solid #e9e9e9; padding: 8px 16px; text-align: left; } .markdown>table th { background: #F7F7F7; } .markdown blockquote { font-size: 90%; color: #999; border-left: 4px solid #e9e9e9; padding-left: 0.8em; margin: 1em 0; } .markdown blockquote p { margin: 0; } .markdown .anchor { opacity: 0; transition: opacity 0.3s ease; margin-left: 8px; } .markdown .waiting { color: #ccc; } .markdown h1:hover .anchor, .markdown h2:hover .anchor, .markdown h3:hover .anchor, .markdown h4:hover .anchor, .markdown h5:hover .anchor, .markdown h6:hover .anchor { opacity: 1; display: inline-block; } .markdown>br, .markdown>p>br { clear: both; } .hljs { display: block; background: white; padding: 0.5em; color: #333333; overflow-x: auto; } .hljs-comment, .hljs-meta { color: #969896; } .hljs-string, .hljs-variable, .hljs-template-variable, .hljs-strong, .hljs-emphasis, .hljs-quote { color: #df5000; } .hljs-keyword, .hljs-selector-tag, .hljs-type { color: #a71d5d; } .hljs-literal, .hljs-symbol, .hljs-bullet, .hljs-attribute { color: #0086b3; } .hljs-section, .hljs-name { color: #63a35c; } .hljs-tag { color: #333333; } .hljs-title, .hljs-attr, .hljs-selector-id, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo { color: #795da3; } .hljs-addition { color: #55a532; background-color: #eaffea; } .hljs-deletion { color: #bd2c00; background-color: #ffecec; } .hljs-link { text-decoration: underline; } /* 代码高亮 */ /* PrismJS 1.15.0 https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */ /** * prism.js default theme for JavaScript, CSS and HTML * Based on dabblet (http://dabblet.com) * @author Lea Verou */ code[class*="language-"], pre[class*="language-"] { color: black; background: none; text-shadow: 0 1px white; font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; word-wrap: normal; line-height: 1.5; -moz-tab-size: 4; -o-tab-size: 4; tab-size: 4; -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; } pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection { text-shadow: none; background: #b3d4fc; } pre[class*="language-"]::selection, pre[class*="language-"] ::selection, code[class*="language-"]::selection, code[class*="language-"] ::selection { text-shadow: none; background: #b3d4fc; } @media print { code[class*="language-"], pre[class*="language-"] { text-shadow: none; } } /* Code blocks */ pre[class*="language-"] { padding: 1em; margin: .5em 0; overflow: auto; } :not(pre)>code[class*="language-"], pre[class*="language-"] { background: #f5f2f0; } /* Inline code */ :not(pre)>code[class*="language-"] { padding: .1em; border-radius: .3em; white-space: normal; } .token.comment, .token.prolog, .token.doctype, .token.cdata { color: slategray; } .token.punctuation { color: #999; } .namespace { opacity: .7; } .token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: #905; } .token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #690; } .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { color: #9a6e3a; background: hsla(0, 0%, 100%, .5); } .token.atrule, .token.attr-value, .token.keyword { color: #07a; } .token.function, .token.class-name { color: #DD4A68; } .token.regex, .token.important, .token.variable { color: #e90; } .token.important, .token.bold { font-weight: bold; } .token.italic { font-style: italic; } .token.entity { cursor: help; }
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-8-day12/iconfont/font_4500581_o4jntno2iqk/demo.css
CSS
unknown
8,429
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>iconfont Demo</title> <link rel="shortcut icon" href="//img.alicdn.com/imgextra/i4/O1CN01Z5paLz1O0zuCC7osS_!!6000000001644-55-tps-83-82.svg" type="image/x-icon"/> <link rel="icon" type="image/svg+xml" href="//img.alicdn.com/imgextra/i4/O1CN01Z5paLz1O0zuCC7osS_!!6000000001644-55-tps-83-82.svg"/> <link rel="stylesheet" href="https://g.alicdn.com/thx/cube/1.3.2/cube.min.css"> <link rel="stylesheet" href="demo.css"> <link rel="stylesheet" href="iconfont.css"> <script src="iconfont.js"></script> <!-- jQuery --> <script src="https://a1.alicdn.com/oss/uploads/2018/12/26/7bfddb60-08e8-11e9-9b04-53e73bb6408b.js"></script> <!-- 代码高亮 --> <script src="https://a1.alicdn.com/oss/uploads/2018/12/26/a3f714d0-08e6-11e9-8a15-ebf944d7534c.js"></script> <style> .main .logo { margin-top: 0; height: auto; } .main .logo a { display: flex; align-items: center; } .main .logo .sub-title { margin-left: 0.5em; font-size: 22px; color: #fff; background: linear-gradient(-45deg, #3967FF, #B500FE); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } </style> </head> <body> <div class="main"> <h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" target="_blank"> <img width="200" src="https://img.alicdn.com/imgextra/i3/O1CN01Mn65HV1FfSEzR6DKv_!!6000000000514-55-tps-228-59.svg"> </a></h1> <div class="nav-tabs"> <ul id="tabs" class="dib-box"> <li class="dib active"><span>Unicode</span></li> <li class="dib"><span>Font class</span></li> <li class="dib"><span>Symbol</span></li> </ul> <a href="https://www.iconfont.cn/manage/index?manage_type=myprojects&projectId=4500581" target="_blank" class="nav-more">查看项目</a> </div> <div class="tab-container"> <div class="content unicode" style="display: block;"> <ul class="icon_lists dib-box"> <li class="dib"> <span class="icon iconfont">&#xe892;</span> <div class="name">设置</div> <div class="code-name">&amp;#xe892;</div> </li> <li class="dib"> <span class="icon iconfont">&#xe622;</span> <div class="name">购物车</div> <div class="code-name">&amp;#xe622;</div> </li> <li class="dib"> <span class="icon iconfont">&#xe61d;</span> <div class="name">我的</div> <div class="code-name">&amp;#xe61d;</div> </li> <li class="dib"> <span class="icon iconfont">&#xe616;</span> <div class="name">分类</div> <div class="code-name">&amp;#xe616;</div> </li> <li class="dib"> <span class="icon iconfont">&#xe6e2;</span> <div class="name">首页</div> <div class="code-name">&amp;#xe6e2;</div> </li> </ul> <div class="article markdown"> <h2 id="unicode-">Unicode 引用</h2> <hr> <p>Unicode 是字体在网页端最原始的应用方式,特点是:</p> <ul> <li>支持按字体的方式去动态调整图标大小,颜色等等。</li> <li>默认情况下不支持多色,直接添加多色图标会自动去色。</li> </ul> <blockquote> <p>注意:新版 iconfont 支持两种方式引用多色图标:SVG symbol 引用方式和彩色字体图标模式。(使用彩色字体图标需要在「编辑项目」中开启「彩色」选项后并重新生成。)</p> </blockquote> <p>Unicode 使用步骤如下:</p> <h3 id="-font-face">第一步:拷贝项目下面生成的 <code>@font-face</code></h3> <pre><code class="language-css" >@font-face { font-family: 'iconfont'; src: url('iconfont.eot?t=1712655513151'); /* IE9 */ src: url('iconfont.eot?t=1712655513151#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('iconfont.woff2?t=1712655513151') format('woff2'), url('iconfont.woff?t=1712655513151') format('woff'), url('iconfont.ttf?t=1712655513151') format('truetype'), url('iconfont.svg?t=1712655513151#iconfont') format('svg'); } </code></pre> <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3> <pre><code class="language-css" >.iconfont { font-family: "iconfont" !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } </code></pre> <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3> <pre> <code class="language-html" >&lt;span class="iconfont"&gt;&amp;#x33;&lt;/span&gt; </code></pre> <blockquote> <p>"iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p> </blockquote> </div> </div> <div class="content font-class"> <ul class="icon_lists dib-box"> <li class="dib"> <span class="icon iconfont icon-shezhi"></span> <div class="name"> 设置 </div> <div class="code-name">.icon-shezhi </div> </li> <li class="dib"> <span class="icon iconfont icon-gouwuche"></span> <div class="name"> 购物车 </div> <div class="code-name">.icon-gouwuche </div> </li> <li class="dib"> <span class="icon iconfont icon-wode"></span> <div class="name"> 我的 </div> <div class="code-name">.icon-wode </div> </li> <li class="dib"> <span class="icon iconfont icon-fenlei"></span> <div class="name"> 分类 </div> <div class="code-name">.icon-fenlei </div> </li> <li class="dib"> <span class="icon iconfont icon-shouye"></span> <div class="name"> 首页 </div> <div class="code-name">.icon-shouye </div> </li> </ul> <div class="article markdown"> <h2 id="font-class-">font-class 引用</h2> <hr> <p>font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。</p> <p>与 Unicode 使用方式相比,具有如下特点:</p> <ul> <li>相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。</li> <li>因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。</li> </ul> <p>使用步骤如下:</p> <h3 id="-fontclass-">第一步:引入项目下面生成的 fontclass 代码:</h3> <pre><code class="language-html">&lt;link rel="stylesheet" href="./iconfont.css"&gt; </code></pre> <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3> <pre><code class="language-html">&lt;span class="iconfont icon-xxx"&gt;&lt;/span&gt; </code></pre> <blockquote> <p>" iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p> </blockquote> </div> </div> <div class="content symbol"> <ul class="icon_lists dib-box"> <li class="dib"> <svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icon-shezhi"></use> </svg> <div class="name">设置</div> <div class="code-name">#icon-shezhi</div> </li> <li class="dib"> <svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icon-gouwuche"></use> </svg> <div class="name">购物车</div> <div class="code-name">#icon-gouwuche</div> </li> <li class="dib"> <svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icon-wode"></use> </svg> <div class="name">我的</div> <div class="code-name">#icon-wode</div> </li> <li class="dib"> <svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icon-fenlei"></use> </svg> <div class="name">分类</div> <div class="code-name">#icon-fenlei</div> </li> <li class="dib"> <svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icon-shouye"></use> </svg> <div class="name">首页</div> <div class="code-name">#icon-shouye</div> </li> </ul> <div class="article markdown"> <h2 id="symbol-">Symbol 引用</h2> <hr> <p>这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a> 这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:</p> <ul> <li>支持多色图标了,不再受单色限制。</li> <li>通过一些技巧,支持像字体那样,通过 <code>font-size</code>, <code>color</code> 来调整样式。</li> <li>兼容性较差,支持 IE9+,及现代浏览器。</li> <li>浏览器渲染 SVG 的性能一般,还不如 png。</li> </ul> <p>使用步骤如下:</p> <h3 id="-symbol-">第一步:引入项目下面生成的 symbol 代码:</h3> <pre><code class="language-html">&lt;script src="./iconfont.js"&gt;&lt;/script&gt; </code></pre> <h3 id="-css-">第二步:加入通用 CSS 代码(引入一次就行):</h3> <pre><code class="language-html">&lt;style&gt; .icon { width: 1em; height: 1em; vertical-align: -0.15em; fill: currentColor; overflow: hidden; } &lt;/style&gt; </code></pre> <h3 id="-">第三步:挑选相应图标并获取类名,应用于页面:</h3> <pre><code class="language-html">&lt;svg class="icon" aria-hidden="true"&gt; &lt;use xlink:href="#icon-xxx"&gt;&lt;/use&gt; &lt;/svg&gt; </code></pre> </div> </div> </div> </div> <script> $(document).ready(function () { $('.tab-container .content:first').show() $('#tabs li').click(function (e) { var tabContent = $('.tab-container .content') var index = $(this).index() if ($(this).hasClass('active')) { return } else { $('#tabs li').removeClass('active') $(this).addClass('active') tabContent.hide().eq(index).fadeIn() } }) }) </script> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-8-day12/iconfont/font_4500581_o4jntno2iqk/demo_index.html
HTML
unknown
11,497
@font-face { font-family: "iconfont"; /* Project id 4500581 */ src: url('iconfont.eot?t=1712655513151'); /* IE9 */ src: url('iconfont.eot?t=1712655513151#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('iconfont.woff2?t=1712655513151') format('woff2'), url('iconfont.woff?t=1712655513151') format('woff'), url('iconfont.ttf?t=1712655513151') format('truetype'), url('iconfont.svg?t=1712655513151#iconfont') format('svg'); } .iconfont { font-family: "iconfont" !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-shezhi:before { content: "\e892"; } .icon-gouwuche:before { content: "\e622"; } .icon-wode:before { content: "\e61d"; } .icon-fenlei:before { content: "\e616"; } .icon-shouye:before { content: "\e6e2"; }
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-8-day12/iconfont/font_4500581_o4jntno2iqk/iconfont.css
CSS
unknown
862
@font-face { font-family: "MyIconfont"; /* Project id 4500581 */ src: url('iconfont.eot?t=1712650731738'); /* IE9 */ src: url('iconfont.eot?t=1712650731738#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('iconfont.woff2?t=1712650731738') format('woff2'), url('iconfont.woff?t=1712650731738') format('woff'), url('iconfont.ttf?t=1712650731738') format('truetype'), url('iconfont.svg?t=1712650731738#iconfont') format('svg'); } .iconfont { font-family: "MyIconfont" !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-shezhi:before { content: "\e892"; } .icon-gouwuche:before { content: "\e622"; } .icon-wode:before { content: "\e61d"; } .icon-fenlei:before { content: "\e616"; } .icon-shouye:before { content: "\e6e2"; }
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-4-8-day12/iconfont/iconfont.css
CSS
unknown
892
.icon-cart { width: 25px; height: 25px; background: url('../images/css_sprites.png') -10px -10px; } .icon-dribble { width: 20px; height: 21px; background: url('../images/css_sprites.png') -123px -50px; } .icon-envelope { width: 26px; height: 20px; background: url('../images/css_sprites.png') -123px -10px; } .icon-slider { width: 48px; height: 9px; background: url('../images/css_sprites.png') -55px -10px; } .icon-facebook { width: 11px; height: 20px; background: url('../images/css_sprites.png') -10px -140px; } .icon-founder-team { width: 13px; height: 20px; background: url('../images/css_sprites.png') -169px -48px; } .icon-msn { width: 16px; height: 16px; background: url('../images/css_sprites.png') -169px -88px; } .icon-phone { width: 21px; height: 29px; background: url('../images/css_sprites.png') -10px -55px; } .icon-rss { width: 16px; height: 16px; background: url('../images/css_sprites.png') -54px -104px; } .icon-telephone { width: 18px; height: 30px; background: url('../images/css_sprites.png') -55px -39px; } .icon-twitter { width: 24px; height: 16px; background: url('../images/css_sprites.png') -10px -104px; } .icon-vimeo { width: 21px; height: 18px; background: url('../images/css_sprites.png') -169px -10px; }
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-21-day15/css/icon.css
CSS
unknown
1,342
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="keywords" content="首页"> <meta name="description" content="首页"> <title>flex容器练习</title> <link rel="stylesheet" href="./css/icon.css"> <style> *{ margin: 0; padding: 0; } ul{ list-style:none; } a{ color:white; text-decoration: none; } a:hover{ color:yellow; } .full-center{ min-width: 1000px; } .auto-center { width :1000px; margin-left: auto; margin-right: auto; } .flex-box{ display: flex; } .flex-vcenter{ align-items: center; } .header { background-color: #2a2b2c; } .header>.auto-center{ display: flex; justify-content: flex-end; height: 40px; } .header a { margin-left: 20px; } .nav{ margin-top: 30px; } .nav>.title{ display: flex; justify-content: space-between; font-size: 60px; align-items: center; } .btn-around { padding: 10px; background-color: #35c3d9; color: white; } .nav .nav-list{ display: flex; justify-content: space-between; height: 150px; margin-top: 20px; color:white; font-size: 36px; } .nav .nav-list>li{ display: flex; justify-content: space-between; width: 300px; align-items: center; padding: 20px; box-sizing: border-box; } .product{ margin-top:30px; } .product>.title{ font-size: 30px; line-height: 35px; border-bottom: 1px solid black; padding-bottom: 20px; } .product .product-list{ display: flex; flex-wrap: wrap; margin-top: 20px; justify-content: space-between; } .product .product-list .img{ height:250px; background: url("./images/9b36895d3cdd73c5.png") center/cover no-repeat; } .product .product-list .desc{ line-height: 36px; color:#858585; } .product .product-list::after{ content: ''; width: 288px; } .product .product-list .bottom{ display: flex; justify-content: space-between; align-items: center; } .product .product-list .price{ font-size: 30px; color: #858585; } .product .product-list>li{ width: 288px; height: 380px; box-sizing: border-box; border:1px solid #e5e4e4; margin-bottom: 10px; padding: 20px; } </style> </head> <body> <!-- 顶部黑色栏部分 --> <div class="header full-center"> <div class="auto-center"> <a class="flex-box flex-vcenter" href="#">结账</a> <a class="flex-box flex-vcenter" href="#"> <span class="icon-founder-team"></span> <span>我的账户</span> </a> <a class="flex-box flex-vcenter" href="#"> <span class="icon-cart"></span> <span>购物车(3)</span> </a> </div> </div> <!-- 第二部分 --> <div class="nav auto-center"> <div class="title"> <span>查看我们独特的时尚</span> <span class="btn-around">方法</span> </div> <ul class="nav-list"> <li style="background-color: #35c3d9"> <span>出售<br>60%</span> <img src="./images/discount.png"> </li> <li style="background-color: #91b900"> <span>自由<br>航运的</span> <img src="./images/gift.png"> </li> <li style="background-color: #f356b3"> <span>24/7<br>支持</span> <img src="./images/headphones.png"> </li> </ul> </div> <!-- 第三部分 --> <div class="product auto-center"> <p class="title">特色商品</p> <ul class="product-list"> <li> <div class="img"></div> <div class="desc">女式T恤</div> <div class="bottom"> <span class="price">¥35.99</span> <span class="add-cart btn-around">加入购物车</span> </div> </li> <li> <div class="img"></div> <div class="desc">女式T恤</div> <div class="bottom"> <span class="price">¥35.99</span> <span class="add-cart btn-around">加入购物车</span> </div> </li> <li> <div class="img"></div> <div class="desc">女式T恤</div> <div class="bottom"> <span class="price">¥35.99</span> <span class="add-cart btn-around">加入购物车</span> </div> </li> <li> <div class="img"></div> <div class="desc">女式T恤</div> <div class="bottom"> <span class="price">¥35.99</span> <span class="add-cart btn-around">加入购物车</span> </div> </li> <li> <div class="img"></div> <div class="desc">女式T恤</div> <div class="bottom"> <span class="price">¥35.99</span> <span class="add-cart btn-around">加入购物车</span> </div> </li> </ul> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-21-day15/index.html
HTML
unknown
6,232
.icon { background-image: url('../images/ctrip.png'); /* background-size: 104px; */ background-repeat: no-repeat; } /* 酒店 */ .icon-hotel { width: 86px; height: 86px; /* background-position: 0 -127px; */ background-position: 0 -250px; } /* 风景名胜 */ .icon-scenic{ width: 86px; height: 86px; background-position: 0 -360px; } /* 旅游 */ .icon-tour{ width: 86px; height: 86px; background-position: 0 -470px; } /* 飞机票 */ .icon-ticket { width: 86px; height: 86px; background-position: 0 -580px; }
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-22-day16/css/icon2.css
CSS
unknown
572
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="keywords" content="酒店"> <meta name="description" content="酒店"> <title>酒店</title> <link rel="stylesheet" href="./css/icon2.css"> <style> * { margin: 0; padding: 0; } a { color:white; text-decoration: none; } a:hover{ color:yellow; } .flex-box{ display: flex; } .flex-column{ flex-direction: column; } .box{ width: 800px; margin: 30px auto 0; border: 1px solid black; } .box .ad{ display: block; width:100%; } .box .nav{ padding: 10px; } .box .nav-inner{ color:white; background-color:#ff697a; } .box .border-top-bottom{ border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; } .box .col{ flex: 1; } .box .border-left-right { border-left: 1px solid #ccc; border-right: 1px solid #ccc; } .box .border-bottom{ border-bottom: 1px solid #ccc; } .icon-item { justify-content: center; align-items: center; padding: 20px 0; } .box .item{ display: flex; justify-content: center; align-items: center; flex: 1; } </style> </head> <body> <div class="box"> <img class="ad" src="./images/banner.jpg"> <div class="nav "> <div class="nav-inner"> <div class="flex-box border-top-bottom"> <div class="col"> <a class="flex-box flex-column icon-item" href="#"> <span>酒店</span> <span class="icon icon-hotel"></span> </a> </div> <div class="col flex-box flex-column border-left-right"> <a class="item border-bottom" href="#">酒店</a> <a class="item border-bottom" href="#">酒店</a> <a class="item border-bottom" href="#">酒店</a> </div> <div class="col flex-box flex-column border-left-right"> <a class="item border-bottom" href="#">酒店</a> <a class="item border-bottom" href="#">酒店</a> </div> </div> <div class="flex-box border-top-bottom"> <div class="col"> <a class="flex-box flex-column icon-item" href="#"> <span>酒店</span> <span class="icon icon-hotel"></span> </a> </div> <div class="col flex-box flex-column border-left-right"> <a class="item border-bottom" href="#">酒店</a> <a class="item border-bottom" href="#">酒店</a> <a class="item border-bottom" href="#">酒店</a> </div> <div class="col flex-box flex-column border-left-right"> <a class="item border-bottom" href="#">酒店</a> <a class="item border-bottom" href="#">酒店</a> </div> </div><div class="flex-box border-top-bottom"> <div class="col"> <a class="flex-box flex-column icon-item" href="#"> <span>酒店</span> <span class="icon icon-hotel"></span> </a> </div> <div class="col flex-box flex-column border-left-right"> <a class="item border-bottom" href="#">酒店</a> <a class="item border-bottom" href="#">酒店</a> <a class="item border-bottom" href="#">酒店</a> </div> <div class="col flex-box flex-column border-left-right"> <a class="item border-bottom" href="#">酒店</a> <a class="item border-bottom" href="#">酒店</a> </div> </div> </div> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-22-day16/demo.html
HTML
unknown
4,699
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta> <title>Document</title> <style> .flex { display: flex; width: 200px; height: 100px; } .left { flex: 3 2 50px; background: red; } .right { flex: 2 1 20px; background: blue; } </style> </head> <body> <div class="flex"> <div class="left"></div> <div class="right"></div> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-22-day16/test.html
HTML
unknown
483
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="keywords" content="淘宝"> <meta name="description" content="淘宝"> <title>淘宝</title> <style> *{ margin: 0; padding: 0; } a{ color: blue; text-decoration: none; } .box{ width: 1000px; margin: 30px auto 0; display: flex; flex-wrap: wrap; } .box a{ display: flex; justify-content: center; align-items: center; width: 200px; height: 75px; border-right:1px dashed #ccc ; border-bottom: 1px dashed #ccc ; box-sizing: border-box; } /*清空最右侧5 10 15虚线边框*/ .box a:nth-child(5n+5){ border-right: none; } /*清空第三排底部虚线边框*/ .box a:nth-last-child(-n+5){ border-bottom: none; } /* .box a:nth-last-child(6)~a { border-bottom: none; } */ </style> </head> <body> <div class="box"> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> <a href="#"><img src="./image/tb.png"></a> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-23-day17/demo.html
HTML
unknown
1,964
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta> <title>圆角</title> <style> * { margin: 0; padding: 0; } .box { background-color: yellow; width: 100px; height: 100px; margin: 30px auto 0; border: 1px solid black; border-top-left-radius: 50px; border-top-left-radius:50px 100px; border-top-left-radius: 50%; border-radius: 20px / 30px; border-radius: 50%; border-radius: 50% / 20%; } </style> </head> <body> <div class="box"></div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-24-day18/CSS3-rounded-corners.html
HTML
unknown
699
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> <style> * { margin: 0; padding: 0; } .box { width: 100px; color: hsl(333, 0%, 0%); margin: 100px auto 100px; } .box p:first-child{ border: 1px solid black; } .box p:nth-child(2){ margin: 30px auto 0; word-wrap: break-word; border: 1px solid red; } .box p:nth-child(3){ margin: 30px auto 0; word-break: break-all; border: 1px solid green; } </style> </head> <body> <div class="box"> <P>今天分享的经典金句是:I know someone in the world is waiting for me, although I've no idea of who he is. But I feel happy every day for this.欢迎访问:https://www.sohu.com/a/634706287_121124028 </P> <P>今天分享的经典金句是:I know someone in the world is waiting for me, although I've no idea of who he is. But I feel happy every day for this.欢迎访问:https://www.sohu.com/a/634706287_121124028 </P> <P>今天分享的经典金句是:I know someone in the world is waiting for me, although I've no idea of who he is. But I feel happy every day for this.欢迎访问:https://www.sohu.com/a/634706287_121124028 </P> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-24-day18/CSS3-text.html
HTML
unknown
1,451
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> <style> form { border: 1px solid red; padding: 20px; } .form-row { width: 300px; border: 1px solid green; } .form-row>input { width: calc(100% - 0.5em); } </style> </head> <body> <form action="#"> <div class="form-row"> <label for="username">用户名</label> <input id="username" type="text"> </div> </form> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-24-day18/calc.html
HTML
unknown
579
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> * { margin: 0; padding: 0; } .box { width: 1000px; margin: 30px auto 0; border: 1px solid black; display: flex; } .box .column { width: calc(100% / 3 - (10px + 10px + 20px) * 2); height: 100px; border: 10px solid red; padding: 0 10px; margin: 0 20px; } </style> </head> <body> <div class="box"> <div class="column"></div> <div class="column"></div> <div class="column"></div> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-24-day18/calc2.html
HTML
unknown
729
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> <style> * { margin: 0; padding: 0; } .box { width: 500px; height: 200px; margin: 30px auto 0; border: 1px solid black; background-image: repeating-linear-gradient(red, yellow 10%, green 20%); background-image: linear-gradient(red, yellow); background-image: linear-gradient(to right, red, yellow); background-image: linear-gradient(to bottom right, red, yellow); background-image: linear-gradient(-90deg, red, yellow); background-image: linear-gradient(0deg, red, yellow); background-image: linear-gradient(90deg, red, yellow); background-image: linear-gradient(1200deg, red, yellow); background-image: linear-gradient(-120deg, red, yellow); background-image: linear-gradient(-90deg, red, yellow); background-image: radial-gradient(circle, red, yellow, green); background-image: radial-gradient(red 5%, yellow 15%, green 60%); background-image: radial-gradient(red, yellow, green); } .box2 { width: 500px; height: 500px; margin: 30px auto 0; border: 1px solid black; background-image: radial-gradient(circle, red 5%, yellow 15%, green 60%); } </style> </head> <body> <div class="box2"></div> <div class="box"></div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-24-day18/gradients.html
HTML
unknown
1,570
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> <style> * { margin: 0; padding: 0; } :root {/*:root相当于html标签选择器*/ --width: 500px; --family: "华文楷体","Heiti SC",tahoma,arial,"Hiragino Sans GB","\5B8B\4F53",sans-serif; --padding: 30px auto 0; --size:30px; } .auto-center { width: var(--width, 100px); height: var(--wwwww, 500px); font-family: var(--family, "Microsoft YaHei", sans-serif); margin: 30px auto 0; border: 1px solid red; padding: var(--padding, 15px 10px 7px); font-size: var(--size); } </style> </head> <body> <div class="auto-center">你好你好你好</div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-24-day18/var.html
HTML
unknown
863
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>零食</title> </head> <style> *{ margin: 0; padding: 0; } ul{ list-style: none; } :root{ --width:1000px; } .box{ width: var(--width); margin: 30px auto 0; border:1px solid black; } .food-list { display: flex; flex-wrap: wrap; padding: 0 calc((var(--width) - 200*4px) / 10) calc((var(--width) - 200*4px) / 10); } .food-list>li { position: relative; width: 200px; height:200px; background: url(./images/food1.webp) center / cover no-repeat; margin: calc((var(--width) - 200*4px)/10) calc((var(--width) - 200*4px) / 10) 0; } .food-list .mask { position:absolute; left:0; right:0; top:0; bottom: 0; background-color: rgba(0, 0, 0, .5); display: flex; flex-direction: column; justify-content: space-between; color: white; padding: 10px; transform: scale(0); transition: transform 0.3s linear 0.1s; } .food-list>li:hover .mask{ transform: scale(1); } .food-list .title { font-size: 20px; padding: 10px 0; } .food-list .desc, .food-list .price { display: flex; justify-content: space-between; padding: 10px 0; } .food-list .desc { font-size: 18px; } .food-list .price { font-size: 14px; } </style> <body> <div class="box"> <ul class="food-list"> <li> <div class="mask"> <div class="title">【N上新口味】稻香村绿豆冰糕桂花味网红零食抹茶</div> <div class="desc"> <span>天猫超市</span> <span>北京</span> </div> <div class="price"> <span>¥39.90</span> <span>69人付款</span> </div> </div> </li> <li> <div class="mask"> <div class="title">【N上新口味】稻香村绿豆冰糕桂花味网红零食抹茶</div> <div class="desc"> <span>天猫超市</span> <span>北京</span> </div> <div class="price"> <span>¥39.90</span> <span>69人付款</span> </div> </div></li> <li> <div class="mask"> <div class="title">【N上新口味】稻香村绿豆冰糕桂花味网红零食抹茶</div> <div class="desc"> <span>天猫超市</span> <span>北京</span> </div> <div class="price"> <span>¥39.90</span> <span>69人付款</span> </div> </div></li> <li> <div class="mask"> <div class="title">【N上新口味】稻香村绿豆冰糕桂花味网红零食抹茶</div> <div class="desc"> <span>天猫超市</span> <span>北京</span> </div> <div class="price"> <span>¥39.90</span> <span>69人付款</span> </div> </div></li> <li> <div class="mask"> <div class="title">【N上新口味】稻香村绿豆冰糕桂花味网红零食抹茶</div> <div class="desc"> <span>天猫超市</span> <span>北京</span> </div> <div class="price"> <span>¥39.90</span> <span>69人付款</span> </div> </div></li> <li> <div class="mask"> <div class="title">【N上新口味】稻香村绿豆冰糕桂花味网红零食抹茶</div> <div class="desc"> <span>天猫超市</span> <span>北京</span> </div> <div class="price"> <span>¥39.90</span> <span>69人付款</span> </div> </div></li> <li> <div class="mask"> <div class="title">【N上新口味】稻香村绿豆冰糕桂花味网红零食抹茶</div> <div class="desc"> <span>天猫超市</span> <span>北京</span> </div> <div class="price"> <span>¥39.90</span> <span>69人付款</span> </div> </div></li> </ul> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-25-day19/food.html
HTML
unknown
5,031
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>坦克</title> </head> <style> *{ margin: 0; padding: 0; } .box{ position: relative; width: 1000px; height:400px; margin: 30px auto 0; border: 1px solid black; } div[class^="tank"]{ position: absolute; } .tank { left:0; bottom:0; width: 400px; height:150px; border:1px dashed red; transition:all 3s linear; } .tank-head{ top:0; left:80px; width:200px; height:100px; background-image: repeating-linear-gradient(green, #222 10%, green 10%); border-radius: 50%; } .tank-bullet { top:50%; right:-80px; width: 100px; height:20px; background-color:rgb(4, 46, 3) ; z-index:-1; transform: translateY(-50%) scale(0.5); transition: all .5s linear; transform-origin: 0 0; } .tank-body { top: 70px; left: 0; width: 350px; height: 80px; background-image: repeating-linear-gradient(green, #222 10%, green 10%); border-radius: 50px 50px 20px 20px; } .tank-foot{ display: flex; justify-content: space-around; left:0; bottom:0; width:340px; height:40px; border-radius:20px; background-color: white; border:5px dashed rgba(0, 22, 0, .8); } .tank-foot>span{ width: 40px; height:40px; border-radius:50%; background-image:repeating-linear-gradient(blue ,#222 10%, green 30%); transition: all 3s linear; } .box:active .tank{ transform:translateX(600px); } .box:active .tank-foot>span { transform: rotate(3600deg) } .tank:hover .tank-bullet { transform: translateY(-50%) scale(1) rotate(-20deg); background-color: red; } </style> <body> <div class="box"> <div class="tank"> <div class="tank-head"> <div class="tank-bullet"></div> </div> <div class="tank-body"></div> <div class="tank-foot"> <span></span> <span></span> <span></span> <span></span> <span></span> </div> </div> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-25-day19/tank.html
HTML
unknown
2,597
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> .flex { display: flex; } .box1 { width: 100px; height: 100px; background-color: red; transform: translateX(50px); } .box2 { width: 100px; height: 100px; background-color: green; } </style> </head> <body> <div class="flex"> <div class="box1"></div> <div class="box2"></div> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-25-day19/test.html
HTML
unknown
658
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>骰子</title> <style> *{ margin: 0; padding: 0; } .box{ display: flex; justify-content: center; align-items: center; width: 500px; height:500px; margin:30px auto 0; border:1px solid black; } .dice { position: relative; width: 300px; height: 300px; transform-style: preserve-3d; transition: all 72s linear; } .dice:hover { transform: rotateX(3600deg) rotateY(3600deg); } .dice div { position: absolute; left:0; right: 0; top: 0; bottom: 0; color: white; font-size: 50px; display: flex; justify-content: center; align-items: center; } .dice div:first-child{ background-color: red; transform: translateZ(150px); } .dice div:nth-child(2){ background-color: green; transform: translateZ(-150px); } .dice div:nth-child(3){ background-color: blue; transform: rotateX(90deg) translateZ(150px); } .dice div:nth-child(4){ background-color: orange; transform: rotateY(90deg) translateZ(150px); } .dice div:nth-child(5){ background-color: pink; transform: rotateX(90deg) translateZ(-150px); } .dice div:nth-child(6){ background-color: black; transform: rotateY(90deg) translateZ(-150px); } </style> </head> <body> <div class="box"> <div class="dice"> <div class="one">1</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> <div>6</div> </div> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-26-day20/dice.html
HTML
unknown
1,830
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>太阳</title> <style> * { margin: 0; padding: 0; } .box { position: relative; width: 500px; height: 500px; margin: 30px auto 0; background-color: #21223a; } .sun { position: absolute; width: 150px; height: 150px; left: 50%; top: 50%; transform: translate(-50%, -50%); background-color: #fffaa9; border-radius: 50%; box-shadow: 0 0 60px #ffcfa9, 0 0 100px #b9a018; } .sun .eye { position: absolute; top: 50px; width: 48px; height: 36px; background-color: #ffcfa9; border-radius: 50%; animation: animate-move 1s linear infinite alternate; } .sun .left-eye { left: 30px; } .sun .right-eye { left: 90px; } .sun .eye-inner { position: absolute; width: 48px; height: 36px; top: 5px; left: 0; background-color: #fffaa9; border-radius: 50%; } .sun .eye::before, .sun .eye::after { content: ''; position: absolute; /*自动变成block,表现形式为行内块*/ top: 0; width: 6px; height: 18px; background-color: #ffcfa9; border-radius: 50%; z-index: -1; } .sun .left-eye::before, .sun .left-eye::after { left: 0; } .sun .left-eye::before { transform: translate(3px, 0) rotate(-45deg); } .sun .left-eye::after { transform: translate(10px, -6px) rotate(-45deg); } .sun .right-eye::before, .sun .right-eye::after { right: 0; } .sun .right-eye::before { transform: translate(-3px, 0) rotate(45deg); } .sun .right-eye::after { transform: translate(-10px, -6px) rotate(45deg); } .sun .rays { position: absolute; left: 0; right: 0; top: 0; bottom: 0; animation: animate-rotate 2s linear infinite alternate; } .sun .rays:hover { animation-play-state: paused; } .sun .beam { position: absolute; width: 40px; height: 110px; opacity: 0.03; background-image: linear-gradient(0deg, rgba(255, 255, 255, 0), #ffcfa9 40%, #ffcfa9); } .sun .beam:nth-of-type(odd) { width: 30px; } .beam:nth-of-type(1) { transform: translate(-40px, -40px) rotate(120deg); } .beam:nth-of-type(2) { transform: translate(24px, -80px) rotate(163deg); } .beam:nth-of-type(3) { transform: translate(90px, -80px) rotate(190deg); } .beam:nth-of-type(4) { transform: translate(155px, -40px) rotate(230deg); } .beam:nth-of-type(5) { transform: translate(170px, 40px) rotate(280deg); } .beam:nth-of-type(6) { transform: translate(130px, 100px) rotate(310deg); } .beam:nth-of-type(7) { transform: translate(51px, 128px) rotate(358deg); } .beam:nth-of-type(8) { transform: translate(170px, 40px) rotate(280deg); } .beam:nth-of-type(9) { transform: translate(-26px, 95px) rotate(406deg); } .beam:nth-of-type(10) { transform: translate(-64px, 28px) rotate(452deg); } .earth { position: absolute; left: 100px; top: 100px; width: 30px; height: 30px; background-color: #6fd4dd; border-radius: 50%; transform-origin: 150px 150px; animation: animate-rotate 5s linear infinite; } @keyframes animate-rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } } @keyframes animate-move { from { transform: translate(-6px); } 50% { transform: translate(0); } 100% { transform: translate(6px); } } </style> </head> <body> <h1 class="animate__rubberBand">吱吱吱吱在</h1> <div class="box"> <div class="sun"> <div class="eye left-eye"> <div class="eye-inner"></div> </div> <div class="eye right-eye"> <div class="eye-inner"></div> </div> <div class="rays"> <div class="beam"></div> <div class="beam"></div> <div class="beam"></div> <div class="beam"></div> <div class="beam"></div> <div class="beam"></div> <div class="beam"></div> <div class="beam"></div> <div class="beam"></div> <div class="beam"></div> </div> </div> <div class="earth"></div> </div> </body> </html>
2201_75539691/qd-project-shizhibo
第一阶段:HTML和CSS3/2024-7-27-day21/demo1.html
HTML
unknown
5,581